xenapi: Tag volumes in boot from volume case

Fixes bug 1064134

Since https://review.openstack.org/#/c/10574, we require that all
openstack volumes are tagged, so as to distinguish them from other
disks that could be deleted on instance termination.

Change-Id: I965f88bf41d39be88f2331ad081f5cec71a65a0f
Check parameter 'marker' before make request to glance

fix bug: 1065053

Since glance need parameter 'marker' to be a image-id, can not
be None. check 'marker' before make request to glance.

Change-Id: I7fc063ea74ae3be71e2effdc0b62432ebdd52c27
Change install_venv to use setup.py develop.

With the potential use of entry points, code from the current tree needs to
be installed into a venv created by install_venv.py via setup.py develop.
This will ensure that the appropriate meta-data and paths are set in the
virtualenv.

Change-Id: I1ca15959c98a24629d2f5b2c385296c4e2fe770c
xenapi: fix bfv behavior when SR is not attached

Fixes bug 1063920
If we try to boot from volume right after a detach volume operation
on the xensm volume driver, the SR has been disconnected. This results
in a failure to populate the vdis list. Introducing the SR if it
isn't in the xapi db fixes this.

Change-Id: I7e6b5e643ea3e20ba691141950cddfcb0ab5f3b8
Add DNS records on IP allocation in VlanManager.

Change-Id: If13f5d2902905154ce4753a45e5d5369d1bf68af
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>
Use instance_exists to check existence

Use instance_exists instead of list_instances since commit 27c11c4bb4.

Change-Id: I780e70f6b573a15e4acc71af16695e0db8ad2581
Add meaningful server diagnostic information to fake hypervisor

Previously the fake hypervisor didn't returned a fake information similar to
the real output so this patch add this sample fake information.

Also removed a duplicated check on the tests

Change-Id: Iab72a867e6e2606beb15db17701375f3c8f61a79
Add Server diagnostics extension api samples

Change-Id: Id53e17caa75dcab01dd3209f771891b4e92debec
Fix error on invalid delete_on_termination value

1. Fixed 500 error when an invalid value is passed to 'delete_on_termination'
parameter in 'block_device_mapping' of create server API (json request).
Converted the value to 'bool' (similar to XML request workflow) to fix issue.
2. Also added unit test coverage.

Fixes LP: #1060955

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

Ensure visible message in nova-volume-usage-audit go through translation.

Fixes LP: #1068946

Change-Id: Iaffe415b709dc0f515d32cad46c3fa851321fd31
Declare vpn client option in pipelib

Due to some import refactoring, nova.network.manager isn't always
imported when running pipelib commands, so using the cnt_vpn_clients
option fails. A failing test could not be added because our testing
code imports nova.network.manager so the code config option always
exists in testing.

Fixes bug 1069573

Change-Id: I92b702556bfef2610b86a952dd6f9207fbab102a
Fix and enable pep8 E502, E712

pep8 E502 and E712 were temporarily disabld when upgrading to pep8 1.2

Change-Id: If5158304cb8e73ef844dea9f726df6f8fe305269
Add trove classifiers for PyPI

Add classifiers so we can eventually register the project
on PyPI to reserve the name, even though we won't release
packages there.

Change-Id: I35f4fd72de7781d3e01f1d122d5d3267544ffbd6
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.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
Merge "Add meaningful server diagnostic information to fake hypervisor"
Fix the fail-on-zero-tests case so that it is tolerant of no output

Some ways of running run_tests.sh will not output a line for us to
parse the count from. Treat no "Ran X tests" as "Ran 0 tests".

Change-Id: I96ba13e797ceaf9b9fa2b60ccb558510b5e32a88
Merge "Add trove classifiers for PyPI"
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