Let VlanManager keep network's DNS settings.

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

Change-Id: I0376767f66041e2647fc2319ab3b2a339cdf7a19
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
Upgrade pylint version to 0.26.0

Upgrade pylint to reduce false positives in lintstack.

Change-Id: I10ab7a46c6a70daf9151f03cd9fea3c4851e6ebb
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>
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
Remove volume.driver and volume.iscsi

Remaining flags moved to nova.virt.libvirt.volume

Part of bp delete-nova-volume

Change-Id: I1b96c773f0b5df73b04215a4afb350a5583b0101
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."
Merge "Let VlanManager keep network's DNS settings."
Merge "Use base image for rescue instance."
Merge "Move libvirt specific cgroups setup code out of nova.virt.disk.api"
Merge "Make xenapi shutdown mode explicit"
Merge "make libvirt with Xen more workable"
Merge "Add REST API support for list/enable/disable nova services"