minor corrections to devref rpc page

Correct wording to proper English and remove extra space between words while
in there.

DocImpact

Change-Id: If4b3d9d81d7193107e84867e4ab713c413a4976d
Correct exception info format of v3 flavor manage

The existing flavor manage may raise HTTPBadRequest exception,
But the msg info didn't use '_' prefix. This patch adds it.

Change-Id: I736bf4b0e78ecc0bb753d376ee162f19fafc09e1
Remove XML namespace from some v3 extensions

The XML support was removed from the V3 API plugins,
this XML namespace was not used again.

Change-Id: I427597dd3f6d454037a791f911756a97f343966d
Attach/detach interface to paused instance with affect live flag

Currently attach/detach interface to paused instance is only with
VIR_DOMAIN_AFFECT_CONFIG flags. After instance unpause, there isn't
any effect on the instance, unless restart the instance. So add
flag VIR_DOMAIN_AFFECT_LIVE when attach/detach interface.

Change-Id: Iedfc7f6fc06e72d8e3eecebede1274582c8043fd
Closes-Bug: #1299331
libvirt: Close opened file explicitly

Every opened file should be closed properly.

Change-Id: I5405638ba033f75957461c0ad33be9f0c6a17e3b
Make check_instance_shared_storage() use objects

This changes the check_instance_shared_storage () method in compute manager
to take an instance object.

The change is mostly cosmetic here to remove one more case of an instance dict
being passed by the rpcapi since the instance parameter isn't actually used on
the server end of this call anyway !

Related to blueprint compute-manager-objects-juno

Change-Id: Id22306916d5d32af978955e02ee95e991c733bab
Add helper functions for getting local disk

Following functions are added in order to be used by validate_bdm
and resource_tracker code.
get_bdm_ephemeral_disk_size: return sum of eph disk size of bdms
get_bdm_swap_list: return a swap disk list of bdms
get_bdm_local_disk_num: return local disk number (include eph and swap)

Change-Id: I215970bea72b502042472aa310fe64ffc4304b25
Remove bdms from run_instance RPC conductor call

After the move to build_and_run_instance in change
Iefab71047996b7cc08107794d5bc628c11680a70 we get the block device
mapping out from the DB on the conductor side. We need to do this since
there is not enough data in the RPC call from the API (we don't have DB
id's so compute can't use that data to update block devices in the boot
process).

Based on this - we should stop sending block devices to the conductor.

Change-Id: Ic7a5da3f0d58093c3b249025b9fcd36a1321f2b3
Initialize objects field in ObjectsListBase class

Normally the underlying value of an object attribute is set upon first
attempt to set it and would not exist otherwise. This causes the object
attribute access mechanism to fall back to obj_load_attr.

This is mostly fine for a lot of use cases, but it also means that for
ObjectListBase subclasses, it is not possible to construct them empty
and then call list methods on them without resorting to something like:

  myListObject(objects=[])

This patch makes ObjectListBase default it's objects filed to [] if it's
not passed in allowing us to have a cleaner API and call list methods
such as len() on objects constructed on the fly..

Change-Id: Iad1301cc4f88018f10f3dd6c76e35275cd0c51f6
Add EC2InstanceMapping object for use in EC2

The EC2 code has a table mapping instance UUIDs to EC2 IDs.  This patch
creates the Nova object for this so that we can remove direct use of
these db.api calls from the EC2 code.

Change-Id: Ib55426de29c1290ff9c7bcb999fb3b3124521750
ec2: Convert to use EC2InstanceMapping object

Update the EC2 code to make use of the EC2InstanceMapping object instead
of using the db API directly for managing instance UUID to EC2 ID
mappings.

Change-Id: I66d60a29f0d909edd381e8492a4754bdd0eb8e52
Rename VolumeMapping to EC2VolumeMapping

During the code review for adding the InstanceMapping object, a
request was made by a couple of people to rename it to
EC2InstanceObject.  I did that so now I think we should rename the one
that already merged to also have the EC2 prefix.

Change-Id: I0b0847b6d4e229c973e268045709fa90726baed9
Log cleanups for nova.virt.libvirt.volume

More log cleanups:
 - add log hints for error and warning levels

Change-Id: Idff1575208a1004350d89848059541502ee15e9a
Fix "fixed_ip" parameters in unit tests

In test_create_instance_with_neutronv2_fixed_ip_already_in_use of both
v2 and v3, these tests pass wrong parameters "fixed-ip" instead of
valid parameter "fixed_ip".
The purposes of these tests are to check the behaviors when passing
in-use addresses, but current tests contain two negative factors and
we cannot test the purposes now.

This patch fixes the parameters. This problem was detected through the
API validation works and Ic17d2227909c9180ca86c9d578dad4c73ec57dfc needs
this fixing.

Change-Id: I4d54a1522983c996431b995ed157b32d13c3bc88
Closes-Bug: #1331317
Imported Translations from Transifex

Change-Id: Id870a1cc67448d116025fbba8eaaf962c69daefc
Fix the duplicated image params in a test

In _test_create, there is a parameter "no_image" to disable "image_ref"
in a request body of "create a server" API. The way of disabling is
setting '' as "image_ref".
So the unit tests using _test_create pass the duplicated images:
the parameter image_ref '' and the parameter block_device_mapping

This patch fixes this duplicated image parameters.
This problem was detected through the API validation works and
Ic17d2227909c9180ca86c9d578dad4c73ec57dfc needs this fixing.

Change-Id: I36ffc87309afadec7da3fa19e01ea8f00f0f9f8d
Clean nova.compute.api.API:_check_num_instances_quota

Simplification to a better understanding of total_allowed value
Originally:
total_allowed = used + headroom [resource]
with used = quotas [resource] - headroom [resource]
So total_allowed = quotas [resource]

Change-Id: Ie4b1f6cb8f0fd80610bdf3fb10ea0263281f56c0
Update websocketproxy to work with websockify 0.6

Websockify version 0.6 bring with it several bugfixes
and new features that affect Nova (including a fix for
novncproxy zombies hanging around and better support
for the python logging framework).  However, it also
broke backwards compatibility due to a refactor which
brought it inline with other Python socket server libraries.

This patch updates the websockify code to function with
websockify version 0.6 as well as websockify version 0.5.x.

Change-Id: I7858dbb49bee8de3fe725beb6793eac3ecba71b6
Merge "Add EC2InstanceMapping object for use in EC2"
Merge "ec2: Convert to use EC2InstanceMapping object"