Raise correct exception for duplicate networks

When using Quantum, if duplicate network ids are passed in on a
nova boot, nova-api raises a NetworkNotFound exception, which is
not correct.  This change causes it to raise a NetworkDuplicated
exception instead.

Fixes bug 1165088

Change-Id: I4f1f9aa5e1fa0e740b78e67760d924e2dd1d4d98
xenapi: Make _connect_volume exc handler eventlet safe

`forget_sr` blocks and so clears the exception state causing the
subsequent raise to try to raise `None`, which fails.

Fixes bug 1167515

Change-Id: I18562c7389b152a6490d352c5a8d36934288f47d
Fix bug in os-availability-zone extension.

Fixes bug 1167956.
The call to get the list of availability zones (GET V2/os-availability-zone)
doesn't hide internal availability zone if all services in that zone are
disabled.

Change-Id: I2c49ad68c2ee5ddea0536dfa770f649fbb392b63
baremetal: Change input for sfdisk

To prevent sfdisk stopping with "bad input", use a empty string
instead of "-" (and doing so requires using "," as a separator).

Fixes bug 1166112

Change-Id: I5e4cffaa326fbafd1583d55744f921a40b3ae76f
Sync rpc from oslo-incubator.

This includes rpc api namespace support, some minor configuration
related fixes, and the redis based matchmaker for use with impl_zmq.

Change-Id: I9fc826a498461417afe8b2a923edac8d68c2c18f
baremetal: VirtualPowerDriver uses mac addresses in bm_interfaces

After the change I6653829364b0a641442d45e766493180d6f2a880,
bm_nodes.prov_mac_address is no longer set. However VPD still
uses it. This patch changes VPD to use bm_interfaces.address
instead of bm_nodes.prov_mac_address.

Fixes bug 1168574.

Change-Id: I2bab869b282958ee9fd0e4776928e56351018324
Remove orphaned db method instance_test_and_set

Commit 86544fad81f95b74407a76bea8b081f490e2832f removed the only use
of this method together with the sqlalchemy implementation of it but
forgot to remove it from db.api.

Change-Id: I751f99ee64cdeab56f1f3fd9f846157f241804a2
Merge "xenapi: Make _connect_volume exc handler eventlet safe"
Added comments to quantum api client

Added a few comments for bug 1020184

Change-Id: I6bc59b5b8b57685aae461e5b1111d8dbd168123d
removing unused variable from a test

Change-Id: I4b5613ae756bac794f82dec4abfa1361efac4054
Merge "Fix bug in os-availability-zone extension."
Merge "Added comments to quantum api client"
Merge "Remove orphaned db method instance_test_and_set"
Merge "removing unused variable from a test"
Imported Translations from Transifex

Change-Id: Ib960a546f1d7acff887f89410558e49d67b9ae26
Remove unused exception and variable from scheduler.

There are no cost functions, so there is no cache and no Exception to be
raised.

Change-Id: I4a67bd45e3f0c91e5507ed3794dc20b13292596b
Don't swallow PolicyNotAuthorized for resize/reboot actions

Removes 'except Exception' lines in the api which were preventing
PolicyNotAuthorized exceptions from bubbling up and returning 403 to the
caller.  This addresses policy exceptions in confirmResize,
revertResize, and reboot.

The try block calls into the compute api which sends a cast to perform
to bulk of the work, so there is little chance of an exception bubbling
up which is not already being caught.

Removes a unit test for a condition that should not exist.

Bug 1170453

Change-Id: I516a19894ab3d183057c774e84c4faa7053a6463
Imported Translations from Transifex

Change-Id: Ie208685045a154bc4f27706ae0c27d5de155a108
Merge "Don't swallow PolicyNotAuthorized for resize/reboot actions"
Imported Translations from Transifex

Change-Id: Ib7dd5ace2eaf2060ea0a65ff9100a1fdbc10ccdf