Add expected_errors for extensions services and server_password v3

Partially implements bp v3-api-extension-versioning

Change-Id: I7e265eef705c2bba9cd9b22b1ff9076859496ee8
Fix failing network manager unit tests

* Instance uuid was not returned by the mocked methods of some
  network manager unit tests causing them to fail with KeyError.

Fixes bug #1204810

Change-Id: Iee04872ea954c2c59b1bf24e7cb0058c59ae8a84
xenapi: ensure vcpu_weight configured correctly

Currently the vcpu_weight specified by the flavor is only set after
the VM has started, and is not set during migrate_finish.

This changes moves the setting of the vcpu_weight to the same place
that other vCPU options are set, such as the number of vCPUs, during
the initial creation of the VM record.

Fixes bug 1203714
Change-Id: I475a247f1ac3153798e9e58d64700f8124dd2a95
Set VM back to its original state if cold migration failed

If migration of a VM in the SHUTOFF state failed due to
NoValidHost, the VM was erroneously set to ACTIVE.

The fix sets the VM back to its original state instead.

Fix bug 1204905

Change-Id: I06f6a2e8a05e715c505a24d3013f482eaea3df8b
Start using hacking 0.6

So we can start using new hacking 0.6 checks.

Since hacking 0.6 pins pep8, pyflakes and flake8 they can be removed
from test-requires. For any unfixed checks list them in tox.ini

Fix a H103, 'Header does not match Apache 2.0 License notice' that
leaked in

Change-Id: I652fe3270f1c37afdd386bfae7c4b27b6abcfa06
Merge "Fix the is_volume_backed_instance check"
Don't pass empty image to filter on live migration

If live migration for a volume backed instance without an image supplied
is initiated with no destination supplied, glance client show will not
be called and the image variable will be set to None.

However if passed to filters like that as part of the request_spec
dictionary, None value will cause one of the default filters - the
ImagePropertiesFilter to throw an exception in it's host_passes method,
as it expects an image to be a dictionary.

We solve this by leaving out the image entirely before engaging filters,
and not attempting to get it if it was not supplied to the instance.

This bug was previously fixed (however not fully, as the None image
would still cause an exception) in the following patch:
Ie683a3ca5d6430c52ead77b41f98fbcb4114ea1e, but  was accidentally dropped
in I6de33ada6dc377e20f8df07da92244f2c150b9fe.

Fixes bug 1170596 (again)
Fixes bug 1199811

Change-Id: I0239b6ac5640d075f937f9690eca4ce54f534117
Merge "Start using hacking 0.6"
Merge "Update oslo.config.generator"
Fix HTTP response for PortNotFound during boot

If a non-existent Quantum port is passed as a network parameter during create
instance, Nova API should return an HTTP BadRequest.

Fixes bug #1195468

Change-Id: I5914fda076fdd3ff20c81984364ca725edae1a78
Fix leaky network tests

`test_networks.py:test_validate_instance_zone_for_dns_domain` was setting a
config in a way such that it could leak to other tests: using CONF.foo instead
of self.flags(foo=X).

This would cause other tests to break in non-determinstic ways, hence it
landing in trunk (order of tests running mattered!).

The test succeeds with the line removed, meaning it was probably only relevant
in an earlier version of the code, so the solution is to remove it.

Fixes bug 1205034

Change-Id: Iaa143a215e285d9b97c10d81bd9916ed3feeb04b
Merge "xenapi: ensure vcpu_weight configured correctly"
Merge "Sync eventlet_backdoor from oslo-incubator"
Clarify instance_type vs flavor in nova-manage

Make it clear that we are only using the term flavor now.

Partially implements bp flavor-instance-type-dedup

Change-Id: Ic26349d70fd99a20635f3ae45041c66b300a0513
Merge "Fix iptables rules when metadata_host=127.0.0.1"
Merge "xenapi: Pass string arguments to popen"
Merge "Fix leaky network tests"
Merge "Fix failing network manager unit tests"
Add note why E712 is ignored

According to the commit message in
560e5cd84ef2c1a6427c78d35eedc66445e1f77f we ignore E712 because '
With this change we ignore E712 since it is normal to use
"column == True" in sqlalchemy.'

Add note in tox.ini explaining this.

Change-Id: I393e13b1430aae46f958311875678bd99e17b13c
Merge "Add rpcapi tests for shelving calls"