Remove translation for debug message

Remove translation for debug message in neutron api layer.

Change-Id: I5b3ce1115d8f2c46f6c144f21e735a45f338cb32
Deprecate scheduler prep_resize

Scheduler prep_resize is no longer necessary as now the retries
from compute are going to the conductor.
Deprecating this method is also a prerequisite for the split
of the scheduler as it was issuing calls to computes.

Change-Id: I1092bbf7f541bb8cd7e33317f33b8c02761f284e
servers list API support specify multi-status

Currently the service list API allows the user to specify an optional status
value to use as a filter - for example to limit the list to only servers with
a status of Active.

However often the user wants to filter the list by a set of status values,
for example list servers with a status of Active or Error,
which requires two separate API calls.

Allowing the API to accept a list of status values would reduce this to a
single API call.
Allow to specify status value for many times in a request.
For example::
    GET /v2/{tenant_id}/servers?status=ACTIVE&status=ERROR
    GET /v3/servers?status=ACTIVE&status=ERROR
V2 API extension::
    {
        "alias": "os-server-list-multi-status",
        "description": "Allow to filter the
            servers by a set of status values.",
        "links": [],
        "name": "ServerListMultiStatus",
        "namespace": "http://docs.openstack.org/compute/ext/
            os-server-list-multi-status/api/v2",
        "updated": "2014-05-11T00:00:00Z"
    }

DocImpact: Adds os-server-list-multi-status extension.

blueprint servers-list-support-multi-status

Change-Id: Id0109c56070e2f920be0f95738749aa969258bc1
Fix duplicated images in test_block_device_mapping

In test_block_device_mapping, each test can select to specify
image_ref, block_device_mapping or both. The "both" should be
negative tests because nova API gets image_id from either image_ref
or block_device_mapping.
However, there are some "both" tests which are not their purposes.
This patch fixes these tests for their purposes by passing True as
no_image.

These bugs were found through jsonschema validation framework
development, because the schema could detect "both" cases fastly
and these tests could not get their purposes.

Change-Id: I73f1a15d8e08a3eda3190e660338e274358ddd33
Clean nova.compute.resource_tracker:_update_usage_from_instances

Use cleaner if else statement.

Change-Id: I287eae65873e34cc115768fd5361cd56e6444fc4
API: Enable support for tenant option in nova absolute-limits

When querying for the absolute limits of a specific tenant,
the tenant option is ignored. There are no attempts to extract
the tenant from the request. Instead, nova uses context.project_id
as the project_id in QUOTAS.get_project_quotas. The following
patch extracts the tenant_id from the request (if any) and passes
that to QUOTAS.get_project_quotas to obtain the proper quota.

Change-Id: If5f91de020ed8a40fa04fc001c7c4c92681f4ad1
Closes-Bug: #1334278
libvirt: fill in metadata when launching instances

When generating the guest XML config, fill in the nova
specific metadata whose schema was previously defined.

Blueprint: libvirt-driver-domain-metadata
Change-Id: I3e1f0eb5bb0e71732a18609ff11f8ee6deb1a8da
Change LOG.warn to LOG.debug in _shutdown_instance

Change LOG.warn to LOG.debug for detaching volume related exceptions
in _shutdown_instance in compute/manager.py, since as the log message
said the exceptions should be ignored. It's probably not worth a
warning in the log.

Change-Id: Ibe216b9bccf590e64aa1b966753bd1ec67c8dbdf
Remove ESXDriver from Juno.

1. Removes the VMwareESXDriver code in nova/virt/vmwareapi/driver.py
by either deleting the redundant methods or moving them to
VMwareVCDriver.
2. Changes the test cases to use VMwareVCDriver and also removes
duplicate test cases which were previously being testing both
VMwareESXDriver and VMwareVCDriver to just the latter.

DocImpact
Closes-Bug: #1346637
Change-Id: I718fc0ee67dbd625af00c20fa4e34b8a35015437
libvirt: saving the lxc rootfs device in instance metadata

Currently, nbd/loop device, to which lxc image has been
connected, is being saved as instance root device, which causing
the attached bug.
Saving the device name in instance system metadata instead.

Closes-Bug: #1330981
Change-Id: I3a0533a89ea8af61349118a39b822f4af146cc04
Code change for nova support cinder client v2

Use v2 volume endpoint to attach/detach volume would be failed,
due to nova not supporting cinder client v2 yet. This patch is for
nova support cinder client v2.

Implements bp support-cinderclient-v2
Closes-Bug: #1215772
Co-Authored-By: Mike Perez <thingee@gmail.com>
Co-Authored-By: Yaguang Tang <yaguang.tang@canonical.com>

Change-Id: Id8abbbb4d9b0c8c49ab51fc3d958ef0d487467f8
Merge "Code change for nova support cinder client v2"
Merge "Deprecate scheduler prep_resize"
Catch NeutronClientException when showing a network

When a network id can't be found, neutronclient raise
NetworkNotFoundClient exception, but this exception is not
handled by nova. This will cause a 500 error.
This patch fixes this bug.

Closes-Bug: #1286969
Change-Id: Ia96c9668c74374476d4dccdbdb281e99d91b0088
Merge "libvirt: fill in metadata when launching instances"
Merge "Change LOG.warn to LOG.debug in _shutdown_instance"
Merge "libvirt: saving the lxc rootfs device in instance metadata"
Merge "Remove translation for debug message"
Merge "API: Enable support for tenant option in nova absolute-limits"
Merge "Clean nova.compute.resource_tracker:_update_usage_from_instances"