Update policies

Merge in update openstack-common policy code.

Updates Nova-specific policy glue code to eliminate deprecated
openstack-common policy interfaces.  Also cleans up policy code
to allow for returning fine-grained policy values.

As a side effect, fixes bug 1039132.

Change-Id: I2951a0de3751bd2ec868e7a661070fed624e4af2
Fix nova-volume-usage-audit

utils.default_cfgfile have been removed from nova/utils, so
remove it here as well.

Fixes LP: #1065069

Change-Id: I71f6c7850123ef0c1ef4fedf608de13b31dafb32
Signed-off-by: Chuck Short <chuck.short@canonical.com>
add port support when QuantumV2 subclass is used

fixes bug 1070045

Fix the current implementation by checking if FLAGS.network_api_class is a
subclass of nova.network.quantumv2.api.API.  Previously, the API would
not accept port references unless the network_api_class string was
anything other than the QuantumV2 class.  This limitation prevented
subclassing.

This changeset includes additional API unit tests focused on QuantumV2
and requested networks.

Change-Id: I6b7b7389e127ff8b084ac379cb9aebccc102620c
Enable custom eventlet.wsgi.server log_format

* The default log format has duplicate info. (datetime etc)
* Reference: http://eventlet.net/doc/modules/wsgi.html
* contains information not shown elsewhere (wall_seconds, body_length)

Change-Id: I57917b62c1f2cc4bba06011191dcf0b5342d7d43
Sync with latest version of openstack.common.timeutils

Changes since last sync:

    - Added is_newer_than function
    - Normalize_time() always return naive object
    - Use pep8 v1.3.3

Change-Id: I47c74671907a2f64a3fdd2caf857999c33033bdd
Fix bug in a test for the scheduler DiskFilter.

There is an error in the logic for a unit test in the Scheduler DiskFilter.
We need to test the failure of the host_passes check with the
"test_disk_filter_fails" test.

Fixes bug 1070264.

Change-Id: Ib07f47b74a6634c573dca8fb4efa2d95b2e1ed87
Fixes bug Snapshotting LXC instance fails

Fixes bug 1058273.

The path of the disk for snapshotting LXC instance is debugged.
Also, virt_dom.managedSave(0) and self._create_domain(domain=virt_dom)
are not called for LXC instance, because they are supported by libvirt.

Change-Id: Idf8275a0222b2eb289e16dd245f7721e17fce21d
Move mkfs from libvirt.utils to utils

Related to blueprint xenapi-config-drive

Move mkfs function to nova.utils, so configdrive module does not depend
on the libvirt module. This way, the configdrive module could be used
by other virt modules.

Change-Id: Ibda2aacfa0b66bc087e397df1474b5dfbe86d923
Merge "Update policies"
Merge "Fixes bug Snapshotting LXC instance fails"
Merge "Sync with latest version of openstack.common.timeutils"
Fix bad Log statement in nova-manage

Remove the log statement per discussion in the bug report
https://bugs.launchpad.net/nova/+bug/1018431/comments/3

Fixes bug 1018431

Change-Id: Ia6fe511ae23155de8b78689639b53a0d9ed1d051
Merge "Enable custom eventlet.wsgi.server log_format"
Merge "add port support when QuantumV2 subclass is used"
Remove duplicate methods from network/rpcapi.py

Change-Id: Ief1792f258d23f19bd4de115f7903b0b687db0e3
Merge "Fix bug in a test for the scheduler DiskFilter."
Merge "Remove duplicate methods from network/rpcapi.py"
Add virt driver capabilities definition

Going forward with the early stages of no-db-compute, we will
consistently hit cases where we need to eject some database usage
from one virt driver up a few layers. Since those are not commonly
used by all, some way of determining (and the higher layer) the
properties of the virt driver being used will be useful.

We have discussed using something like a mixin interface class
and multiple inheritance. We have discussed tricks like detecting
if the manage_image_cache() method has been overridden. We have
discussed trying it once and catching NotImplementedError and then
never trying again. Aside from the first, none of these are
unsneaky enough to bite us later.

This approach will provide us a way to declare such properties
succinctly in the compute driver to help the higher layers know
what we want them to do on our behalf.

Change-Id: I74dea9322a5b4688319ebf5d9afe416e93401c58
Merge "Fix nova-volume-usage-audit"
Merge "Move mkfs from libvirt.utils to utils"