Add decorator expected_errors for v3 attach_interfaces

All v3 api should use expected_errors to prevent unexpected exception
raised. This patch add decorator expected_errors for v3 attach_interfaces.

This patch also remove update action. Let the wsgi return HTTPNotFound for
it.

Change-Id: Icefe9f9adfa7ad01bc3ab11dcb7c132702390d04
Inject expected results for IBM Power when testing bus devices

Same as in https://review.openstack.org/#/c/93621 this patch
inject expected values when the test is running on IBM Power
platform, since the ide bus isn't supported on IBM Power,
and libvirt translate all ide calls directly to scsi
when it's running in power platform

Change-Id: Ibebc96e71a8ba21ae8634e9e22de1cd28f3a7990
Add ibmveth model as a supported network driver for KVM

ibmveth (spapr-vlan) is supported by KVM/Qemu on ppc64. This change
allows users to change hw_vif_model='spapr-vlan' property to use
ibmveth driver.

Change-Id: Ibec6abad458c5cb15df57afa05f7f0742e4feb14
Scheduler: throw exception if no configured affinity filter

If the scheduler hint indicates that the scheduling should perform
either anti-affinity or affinity scheduling and the relevant filter
is not configured then a NoValidHost exception will be thrown.

This is valuable if an existing OpenStack installation is running
and these filters are not defined after an upgrade.

Change-Id: I79bb44ad7481b3ff924687a8d6afdd6c715c0b59
Closes-bug: #1302238
libvirt: add tests for _live_snapshot and _swap_volume methods

The _live_snapshot and _swap_volume methods do a non-trivial
sequence of libvirt API calls which should be validated in the
unit tests

Closes-bug: #1346327
Change-Id: I14bfa08f0dbb4eaa7c4f069f70c257ba7605989b
libvirt: remove 3 unused vif.py methods

In the following commit:

  commit 842b2abfe76dede55b3b61ebaad5a90c356c5ace
  Author: Daniel P. Berrange <berrange@redhat.com>
  Date:   Mon Nov 25 14:00:25 2013 +0000

    Increase min required libvirt to 0.9.11

support for setting up OVS outside of libvirt was dropped,
but 3 of the helper methods were mistakenly not deleted.

Related-bug: #1254727
Change-Id: I53de8703a64d1214ec81b9698e376737a92cb53a
Add include_locations kwarg to nova.image.API.get()

To avoid feature envy from image backends that need image location URIs,
functionality of nova.image.glance._get_locations() is moved into
nova.image.glance.show() and exposed via a new include_locations kwarg
to the nova.image.API.get() method, which, when True, simply includes a
collection of location links when the image has them.

blueprint rbd-clone-image-handler
Co-Authored-By: Jay Pipes <jaypipes@gmail.com>

Change-Id: I5118013aa24f68520dee806c24265f2808a90588
Merge "Add decorator expected_errors for v3 attach_interfaces"
Merge "Scheduler: throw exception if no configured affinity filter"
Merge "libvirt: add tests for _live_snapshot and _swap_volume methods"
Merge "Add include_locations kwarg to nova.image.API.get()"
Merge "Add ibmveth model as a supported network driver for KVM"
Merge "libvirt: remove 3 unused vif.py methods"
Merge "Inject expected results for IBM Power when testing bus devices"