Let VlanManager keep network's DNS settings.

Lost piece of https://review.openstack.org/14560

Change-Id: I0376767f66041e2647fc2319ab3b2a339cdf7a19
Fixes snapshot instance failure on libvirt.

Fixed the failure during snapshotting instance (on libvirt) due to incorrect
attribute access.

Fixes LP: #1075556

Change-Id: I079467d38aef5071488084f9bfa080a2a5af2609
powervm: failed spawn should raise exception

fixes bug #1065295

On a failed spawn instance, we should run our cleanup on
the host and then re-raise the exception to inform
ComputeManager of a failure

Change-Id: Ia9ce8360117e94d10d53278d4c9a16931dea70f2
Add REST API support for list/enable/disable nova services

Implements one workitem of blueprint apis-for-nova-manage

This adds an extension that provides REST API for list/enable/
disable nova service. The interface ia accessed via

GET /v2/{tenant_id}/os-services
PUT /v2/{tenant_id}/os-services/enable
PUT /v2/{tenant_id}/os-services/disable

And the command:nova host-describe have implemented the functionality
of nova-manage service describe_resource. So we needn't add a REST
API for it.

DocImpact
Change-Id: I030a7e00b878d7931456e7e323db37b7c47fce48
Remove custom test assertions.

Now that we testtools, We can use stock testtools assert methods
instead of defining our own. As part of removing them, we add Matcher
classes to use in the testtools.assertThat method. testtools matchers can
be arbitrarily combined and chained, so give more flexibility than plain
asserts

Related to blueprint grizzly-testtools.

Change-Id: I26d1dbac8dc3c322eb55c96c48330c0e38636107
Removes fixed_ip_get_network

Removes fixed_ip_get_network since it doesn't actually work anymore
(at some point in the past the network must have been stored along
with the network_uuid but this is no longer the case) and nothing
else uses it anyway.

Also cleans up fake db test model to remove the fake_fixed_ip_get_network
and underlying network reference which makes it closer in sync
to what is actually implemented now

Change-Id: I01dc0f88a8bc7cfef01c4e7f328bcdba75a8e0bc
Upgrade pylint version to 0.26.0

Upgrade pylint to reduce false positives in lintstack.

Change-Id: I10ab7a46c6a70daf9151f03cd9fea3c4851e6ebb
Fixed HyperV to get disk stats of instances drive

It fixes bug 1077922

The current version of the HyperV Compute driver was returning the disk stats about the C: drive always.

This patch makes HyperV driver extract the current drive from the flag 'instances_path'.

In order to optimize the procedure, the disk stats extraction is also unified in one method.

Change-Id: I4920cf2cc07d0f514c0358144b7bceb15d439a63
make libvirt with Xen more workable

- Xen creates it's own tap devices when using libvirt, unplugging in
  Nova is not necessary

- 'script' should be None for Xen using libvirt with Quantum Linux
  Bridge Agent

- live migration is not working because the libvirt method
  virConnectCompareCPU is not implemented for Xen

Change-Id: Ibb937f75763cb83691a056ca41e244e171499fbb
Move libvirt specific cgroups setup code out of nova.virt.disk.api

The nova.virt.disk.api module contains code that is generically
reusable for any hypervisor. Thus the 'bind' method should not
contain Libvirt LXC specific cgroups code

Change-Id: I919b74c2c4af8ba05b1005ea93d2164be69612ba
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Update vol mount smoketest to wait for volume.

Updates the test_003_can_mount_volume smoke test so that it
waits for the volume to show up in /proc/partitions for up
to 60 seconds before proceeding. This eliminates the need for
a hard coded sleep value which can cause intermittent test failures.

Change-Id: Ibdc56a00e141211e40068c22fc268efeba6affff
Make xenapi shutdown mode explicit

Split shutdown_vm in the xenapi utilities into two methods with clear
names defining their behavior rather than relying on a default argument
being passed in.

This makes something like the following more clear than it would be
currently:

if not clean_shutdown_vm():
    hard_shutdown_vm()

Change-Id: Ia7079197c8b8726c7e2ddc508b301162a02baa1b
Use base image for rescue instance.

Rescue mode was using the instance's current image when building the
rescue VM. This is a problem because that image may be broken, hence the
need for the rescue operation.

Rescue should use the 'base' image instead.

Fixes bug 1075701

Change-Id: Ie3e65cc75c4710f7b6391d5111cb096755e600d4
Adds a conf option for custom configdrive mkisofs

In order to support ConfigDrive on Hyper-V an option for supporting
a customizable mkisofs / genisoimage is needed, including optional
path.

The option "mkisofs_cmd" deafult to "genisoimage" to preserve
backwards compatibility

Change-Id: I89167bf77bddae9a0f989874ad0a972d7898a903
Remove volume.driver and volume.iscsi

Remaining flags moved to nova.virt.libvirt.volume

Part of bp delete-nova-volume

Change-Id: I1b96c773f0b5df73b04215a4afb350a5583b0101
Remove unused volume exceptions

part of bp delete-nova-volume

Change-Id: I1285528ef0c2aff0f3dfea9faf2b28c55eb10a51
Update uuidutils from openstack common.

Change-Id: I91fe13eb7dda8aa64187ce5a6d2c34dacdc9f1bb
Imported Translations from Transifex

Change-Id: Iabd3c760f635e3dc6bbeed5f0dc6123708a20a00
Clean up __main__ execution from two tests for consistency

We can run individual tests with nose,
and most of the tests in the tree don't include __main__ sections.
This patch cleans up the two oddball cases for consistency.

Change-Id: I78860e1b651982279944c7cf2caff251b9feee90
Merge "Update uuidutils from openstack common."