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
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 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 and enable pep8 E502, E712

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

Change-Id: If5158304cb8e73ef844dea9f726df6f8fe305269
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
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
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
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"
Merge "Fix bad Log statement in nova-manage"
Merge "Add virt driver capabilities definition"
Migrate network of an instance

In multi_host mode, floating ip(s) addr and NAT rules are still on
source node after resize/migrate instance. This patch fixes it up by
adding new methods in network.api to moving them to the destination
node.

Also adds the new methods to network/quantumv2/api.py. They do nothing
but pass for now.

This patch updates network RPC API to version 1.1

Fixes bug 1053344

Change-Id: If9f30050d37831f108ac4a1c8a018d820818f3b6
Merge "Fix and enable pep8 E502, E712"
Merge "xenapi: fix bfv behavior when SR is not attached"
Merge "Add DNS records on IP allocation in VlanManager."