Make nova/quota use keypair objects

Related to blueprint icehouse-objects.

Change-Id: Ic06d2337c7ef1b028d305d0a7ec354238c239380
Fix unhandled InvalidServerState exceptions in server start/stop

Catch InvalidServerState exceptions in the server start/stop api
and return a 409 conflict rather than causing 500 errors

Closes-Bug: 1266379

Change-Id: I9d2437319d2cef93b9b10184e257acbd8eb45359
VMware: fix missing datastore regex with ESX driver

When using shared datastore and the ESX driver the administrator
is unable to indicate which datastore to use.

Note: there were extensive tests added for the VC driver for the
regex support. These are invoked by passing the flag for the regex
when the ESX driver is created.

Change-Id: Ifb0a4a8df2b26f3521b1301462d1f2c3eeba5c14
Closes-bug: #1246206
Fixes Hyper-V VHDX snapshot bigger than instance

In Hyper-V, the deployed images will be extended having their
metadata size added to their base image size. This may lead to
snapshots bigger than the flavor size.

This patch adds support to the V2 utils module, so that the
maximum internal size of a requested image may be calculated
in a similar way it is done in the V1 module.

VHDX format specs:
http://www.microsoft.com/en-us/download/details.aspx?id=34750

Closes-bug:  #1231911

Change-Id: I0d6aacb275f8af24554d3e8b6f04fe8a454b913f
Objectify instance_action for cell scheduler

This is a refactor change to make cell scheduler use InstanceAction
class method instead of compute_utils, so that all instance action can
be manipulated through object model and instance action related code in
compute_utils can be deprecated.

This is a part of: blueprint make-instance-action-use-objects
Change-Id: I920c8bf809200e6fc2c0329c11ea4be94dc71158
Move consoleauth_manager option into nova.service and fix imports

Moves the consoleauth_manager option into nova.service like the other
manager options in commit 39ce4032.

The thinking for having it in nova.service is that's where
CONF.get('%_manager'...) is called.  It also makes no sense for the
option to be declared in nova.consoleauth.manager because if you change
this config option, then you don't want nova.consoleauth.manager loaded.

Closes-Bug: #1276398

Change-Id: I85e089239228920e9e58284cf6ff52e43bf85ab0
VMware: improve unit test time

A number of tests would invoke code that would sleep. This
patch adds a mocked function for the sleep.

Change-Id: I2d36bd456a11fcb7145baa5eb4c6875b9ec765d3
Closes-bug: #1280758
Disable IGMP snooping on hybrid Linux bridge

By default, Linux bridge activates the IGMP snooping on his switch.
It is unnecessarily on Linux bridge created by OVS/VIF hybrid vif
drivers because that switch is limited two ports.

That patch also refactoring OVS and IVS plug and unplug unit tests of the
hybrid drivers.

Closes-Bug: #1276038
Change-Id: Ib8bb1874d7a300fddffdc76ba67851109248bebf
LibVirt: Disable hairpin when using Neutron

When hairpinning is enabled, ICMPv6 messages that handle
duplicate address detections return to the instance, causing IPv6
SLAAC configuration to fail

http://tools.ietf.org/html/rfc4862#section-5.4.3

Closes-Bug: #1251235

Change-Id: I65e1d40d33d6291bfd5558c7c346fc5fbf92cc56
Add 'use_slave' to instance_get_all_by_filter in conductor

When the use_slave parameter was added to instance_get_all_by_filter in
the db layer and nova object layer it was missed in conductor, causing a
failure in the _poll_rescued_instances periodic task.  This adds the
parameter where necessary.

Change-Id: I16ab29730d72b2e2941766b5b12568976facec39
Closes-bug: 1279358
VMware: fix race for datastore directory existence

Treat the exception that is raised when creating a directory
and it already exists. This may happen due to two processes trying
to create the same directory at the same time.

Change-Id: Ia0ebd674345734e7cfa31ccd400fdba93646c554
Closes-bug: #1266579
Merge "Fixes Hyper-V VHDX snapshot bigger than instance"
Merge "VMware: fix race for datastore directory existence"
Merge "Add 'use_slave' to instance_get_all_by_filter in conductor"
Revert "VMware: fix race for datastore directory existence"

This reverts commit 743b74d59d3279478c512a0a559642b1d05284bc,
which introduces a race condition when creating the initial
instance image. Since _mkdir() no longer fails if the directory
exists, two computes racing to create the same image will
result in either corrupted data, lost data, or a strange
failure later on.

Change-Id: Ic646a01b2f96b1341af38b69c372875a95263bad
Closes-bug: #1284312
Updated from global requirements

Change-Id: Id8aa2fe07afd2325f28c63bcb76fff3d8b4d376f
Merge "LibVirt: Disable hairpin when using Neutron"
Merge "Move consoleauth_manager option into nova.service and fix imports"
Merge "Updated from global requirements"
vmware: driver races to create instance images

Addresses race condition that occurs when multiple processes
arrive at a fresh Datastore with no vmware_base cache directory.

Change-Id: If1bb6804e3668a56872a653a8ea44d0c7fc70311
Co-Authored-by: Tracy Jones <tjones@vmware.com>
closes-bug: #1284312