Catch InstanceNotFound exceptions for V2 API deferred delete

Adds handling of InstanceNotFound exceptions in the V2 API
deferred delete and translate them to HTTPNotFound rather
than letting them propagate up causing a traceback in the
nova log.

Co-Authored-By: Michael Still <mikal@stillhq.com>

Change-Id: I3d434f28313ae633bdcb9cef82a7b8b0020b5722
Closes-Bug: 1270803
Catch InstanceNotFound exceptions for V2 API floating_ips

Adds handling of InstanceNotFound exceptions in the V2 API
floating_ips extension and translate them to HTTPNotFound rather
than letting them propogate and causing a traceback in the logs

Co-Authored-By: Michael Still <mikal@stillhq.com>

Change-Id: Idc1a5b2e6b8cb9778d032e5e1fc8112a65fc225c
Closes-Bug: 1271047
Updated from global requirements

Change-Id: I29f162341acdfd8ef960e3921048421d15fbdf2c
Update vm_mode when rebuilding instance with new image

Rebuilds can be made with a totally different image than what the instance
was originally built with. If an image change also changes from HVM to PV
mode, then vm_mode needs to updated on the instance as well. This also
applies to os_type, architecture and auto_disk_config.

Change-Id: I82f4580f0aab30dd3c1fa4cfc0ca76cc81d487e4
Closes-bug: 1296818
Disable oslo.messaging debug logs

oslo.messaging debug logs are too verbose, turn them off. This patch
drops nova-conductor logs in the gate down from 7MB to under 300K.

Cherry-Pick from oslo-incubator since we are in feature freeze:
Ia12c003dae196e2220a5f6ea768758a75f2ede23 and
Icc61964c6a2b002ac1c8566f174e6a5230674c75

Change-Id: Idac5f652d196252819f0aab6101f9c6804ff8168
Do not add current tenant to private flavor access

Avoid adding the current tenant to the flavor access list when
a private flavor is created. In ordeir to add tenants to the
flavor access list we should use the add_tenant api.

Tempest has to be updated accordingly:
https://review.openstack.org/81551

Documentation has to be updated as well:
https://review.openstack.org/82175

Partially (just for the V2 API rather than V2 and V3)
reverts commit 6ba248635b70860a44e486e7739efa4cc6612ce6

Fixes unittest which was added in the original commit so it checks
for the behaviour we have now rather than the behaviour after the
backwards incompatible change which is being reverted.

Change-Id: I731081b6df0d96df1bc1763d214d28c62bbbb51c
Closes-Bug: #1286297
VMware: fix booting from volume

Instances that are boot from volume can be disk_format of None.
This change allows for that.

Change-Id: Id83083096460cb2e4a5367c8df15daa9f788292c
Closes-bug: 1296874
Imported Translations from Transifex

Change-Id: I8ae613b1f3d4166e329f7b844965e507b9121596
Change libvirt close callback to use green thread

The native thread that calls the close callback is being
used to update a host's status, potentially causing threading
issues, since it involves operations that should only be
performed by green threads. This change fixes the issue
by limiting the native thread's interaction to adding data
to a queue and leaving the remaining work for
a green thread.

Closes-Bug: #1290487
Closes-Bug: #1293641

Change-Id: I59c14da15e4655dc4bf21d4de3d509472b146f7a
Updated Setting up Developer Environment for Ubuntu

I saw that there are a few libraries which are required but not
mentioned in the docs.

Change-Id: I47036bb85c1b4c617f14d7534c204df474439513
Fix availability-zone option miss when creates an instance

In test_availability_zone.py the availability-zone option is
used as 'availability_zone' which should be modified to
'os-availability-zone:availability_zone'.

Change-Id: I765d07b699ecb425dadccb22af834b11f52ff5b0
Closes-Bug: #1270811
Merge "VMware: fix booting from volume"
Merge "Disable oslo.messaging debug logs"
Merge "Update vm_mode when rebuilding instance with new image"
Merge "Updated from global requirements"
Tell pip to install packages it sees globally

Use pip's option to force installation of packages so that
local copies are installed in the virtualenv, even if they
are present in the global site-packages directory. This
ensures that the latest packages are installed, and that
all of the oslo libraries from namespace packages are
installed in a consistent way, making it possible to run
unit tests on a system where devstack was run previously.

Change-Id: If5c4e12956f2c7be6530c5c9a57fdfb1da8e710c
fix the extension of README in etc/nova

the file is a text file, not a conf file, this change prevents
accidental parsing (and erroring) when setting config_dir=etc/nova

Change-Id: I35c35e812736908858aad235fb173beaf74f74bb
Merge "Tell pip to install packages it sees globally"
Merge "Imported Translations from Transifex"
Merge "fix the extension of README in etc/nova"