Return Customer's Quota Usage through Admin API

DocImpact: This patch adds an extension 'UsedLimitsForAdmin'. If this
extention is enabled then it extends the used limits API behavior, such
that admin can fetch the details of any customer's quota usage by passing
the customer's tenant id in query parameters.The API signature for the
same is 'v2/{tenant_id}/limits?tenant_id={customer_tenant_id}'

Change-Id: I89b8b5083e46b899458407426c89a3865e960faa
Implements: blueprint customer-quota-through-admin-api
Removing misleading error message

This function (_get_instances_on_driver) was reporting instances are on the
hypervisor and not in the database with no consideration for the filters being
used in the database query. This resulted in error log messages indicating running
instances were not in the database when in fact the query was filtering for deleted
instances.

To avoid misleading error logs of this nature I've removed the logging from the
function. Currently the locations which call this function provide more accurate
logging on the state of the instances that are returned based on the filters they
have called _get_instances_on_driver with.

bug 1183276

Change-Id: I4ee52fe417f73a90cf157bc531b483be93e34275
libvirt: improve the specification of network disks

Allow zero or more hosts, and make the name optional, since only a
host is needed to use nbd. This allows cinder to fully specify the
location of a sheepdog or rbd volume without depending on extra
configuration files, and lays the groundwork for supporting nbd.

Rename the internal attribute source_host to source_name to reflect
its usage in the libvirt xml, and add source_hosts and source_ports
attributes to store the new information.

Fixes: bug 1077817
blueprint better-libvirt-network-volume-support
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>

Change-Id: I8ac431751692e52ba0786768cea996388962922d
Silence exceptions from qpid connection.close() (from oslo)

This is commit 15d8d698b7 in oslo-incubator.

Fixes bug 1185465

Don't log exceptions that happen during connection.close().  They're
not surprising (a closed socket can't be read or written), don't
require sysadmin attention, and provide red herrings in the logs
to distract from finding real root causes of problems.

Change-Id: Ia0e25fbc11094b5ad5d6d2cf7d0e786acb3df1f6
correctly set iface-id in vmware driver

bug 1183452

Commit 70c659059b8fbef811ce79700aecb01c60242ebd updated the vmware
driver to use the new vif model, but was incorrect in how it tried to
grab the iface-id and set it in the vmx file spec.  This patch fixes
that issue and adds a check for this in the existing unit tests.

Change-Id: I756539871d1844a828f9a0a295fc9fa3e59610f7
Add deleted flag to NovaObject base

This is present in NovaBase for the SQLAlchemy objects, and is
expected to be in the NovaObjects as well.

Related to blueprint unified-object-model

Change-Id: I1698d5a986d17899dfcefb9ec65d6b2623af2da3
Add base mixin class for object lists

This provides a base class that provides the bulk of the common
functionality that objects implementing a list of objects will
need.

Related to blueprint unified-object-model

Change-Id: I5bc4e64cc8fe2d780251cbc43f2ee45f4e0f820a
Add lists of instance objects

This adds a list-of-instances object, which can house the "get all"
methods for instances. It's very simple, emulates a list, but
provides us an object-oriented way to get multiple instances that
mirrors the model.

Related to blueprint unified-object-model

Change-Id: Id6579030b88b92d4cb7db13ee6718ad01db7bf63
Refactors get_instance_security_groups to only use instance_uuid

Fixes Bug 1160078

Change-Id: Ic4d7ee0202ca15837f9dcab97e5502cbf82aa16f
Fix assumed port has port_security_enabled

Previously if adding a security group to an instance it would fail
if the port did not contain port_security_enabled=True. This patch
also changes the unit tests so that networks by default are not
associated with port_security_enabled=True because this is only true
if a plugin is running the port_security extension.

Fixes bug 1189059

Change-Id: Ieebb7aafba01c18164b86a01a3c289a6957321e4
Imported Translations from Transifex

Change-Id: Ib268a66f5e17a7b96bed6a0d4e328f69c5481928
Merge "Return Customer's Quota Usage through Admin API"
Merge "correctly set iface-id in vmware driver"
Merge "Imported Translations from Transifex"
Merge "Add deleted flag to NovaObject base"
Merge "Refactors get_instance_security_groups to only use instance_uuid"
Merge "Fix assumed port has port_security_enabled"
Merge "Add base mixin class for object lists"
Merge "Removing misleading error message"
Merge "libvirt: improve the specification of network disks"