Enforce authenticated connections to libvirt

Authenticated connections for both reads and writes
increases VM security.

The virConnectOpenAuth API is flexible, it effectively
obsoletes virConnectOpen and virConnectOpenReadOnly.
ReadOnly access, with its reduced access to the API,
is obtained by passing in the vir connect flag
VIR_CONNECT_RO (=1)

An added advantage of using openAuth is the fewer API calls
that need to be maintained in the nova libvirt driver.

Removed virConnectOpenReadOnly methods and tests.

Change-Id: I6cb3825d1225807955177d7500899babbb569e20
Fix migration downgrade 147 with mysql

Determine each service's availability zone and re-insert it back into the
database to undo migration 147 with mysql.

Fixes bug 1207309

Change-Id: I6a96215f9e97874a64f9bcef56c3d32747fb754c
Format CIDR strings as per storage

Make sure the CIDR addresses are formatted in the same way sqlalchemy stores
them.

Fixes bug 1207355

Change-Id: I7b202c44e6e8e973c1753aa33c192a4fcfe762cc
Wrong unique key name in 200 migration

Fix bug 1201711.

Wrong name: `uniq_cell_name0deleted`.
Should be : `uniq_cells0name0deleted`.

Change-Id: I9459d8a1c0b64a38bb88728c191d015e38271d3d
Sync models with migrations

Fixed bugs:
- wrong type instead of MediumText (InstanceInfoCache, Instance, ComputeNode),
- skipped indexes (SecurityGroup, Instance),
- wrong length of column (ComputeNodeStat),
- wrong order of columns in index (KeyPair),
- missing name of UniwueConstraint (InstanceGroup).

bp: db-sync-models-with-migrations

Change-Id: Id698fabd553a10326d984f88fc9580d88cd2a22e
Merged flavorsextraspecs extension into core API

Partially implements blueprint nova-v3-api

Change-Id: I1eb9bea4996e106c848eb215e19088a968e5200c
Merged flavor_disabled extension into V3 core api

This extension was promoted to core API so it's code is moved inside
main controller

Related to blueprint nova-v3-api

Change-Id: Ia526f27382cf3bedea8b97de11659243d724497f
maint: remove redundant default=None for config options

These 73 instances were inconsistent and redundant.

Change-Id: I298f2406535d0805caebdca4f2729d720dd5222f
Cleanup exception handling on evacuate

Some cleanup around catchall exception handing
on evacuate v2 extension to bring it in line
with v3 exception handling. Tests included.

Fixes bug 1210570

Change-Id: I2f2f958acb80240c0fb25f3d538fa204611a33d1
Fix to allow ipv6 in host_ip for ESX/vSphere driver

Just needed to add '[' and ']' when creating urls.

Fixes LP# 1206595

Change-Id: I6b2cc86f9b0ff686ff6da794a469f6c9815933a1
powervm: add test case for get_available_resource

Change If9eee203b3cbb12963dc55e4215d206cb5d81264 is modifying the
get_available_resource method but didn't have a test to cover it,
because it never existed.  This patch adds the test.

Change-Id: Ifbef914f1b110b16fa98fdfec8cdcf5ad0a75a8e
Fix H501: Do not use locals() for string formatting

Change-Id: Ide587d3311c22f698a82eeee210c5bdbe24eb484
Change swap_volume volume_api calls to use ID

Currently some volume_api calls in the swap_volume code pass a volume
dict rather than a volume ID. This patch fixes the issue. Also fix two
issues: (1) invalid reference to 'volume' which should be 'old_volume'
when passing arguments to VolumeUnattached argument prior to raising it
in the compute API, and (2) revert begin_detaching and reserve_volume
calls if swap_volume fails.

Change-Id: I9735ffbd1a4adc5250d41f837ad10bbf290cf193
Fixes: bug 1207356
User quota update should not exceed project quota

Move the default user quota setting code from db to quota.py,
because it is necessary to check if user quota is set in db
to get the settable quota for the user under a project.

Fixes bug 1208400

Change-Id: I83a4a7fcd8bf80b20e4e700bad7dd31294f8ed0b
Fixes typo in __doc__ of /libvirt/blockinfo.py

Just a few spelling mistakes

Change-Id: I90e8d9dfe105e3968caf525e2f8f483da3636598
Fix VMwareVCDriver to support multi-datastore

This fixes the issue of VCDriver selecting the first datastore of
Cluster while provisioning instances. User can provide a regex to
match with the desired datastores.

Fixes: bug #1104994

Change-Id: I319b0d8afd03e9fef00ea0c8c799790714685104
Moved tests for server.delete

* moved tests to separate class
* removed some code duplication

blueprint api-compute-servers-tests

Change-Id: Ib281990528595baf52f08af0ece5a7bde39c55ee
Fix leaking of image BDMs

Patch Ia89d531be71c460f1f82fcfce34b270639a23061 introduce creating an
image block device for every instance, to comply with the new block
device format being introduced currently.

However, due to a mistake during rebase the needed code to delete those
once the instance was being deleted was broken (even though comments
suggest otherwise).

This patch now fixes this issue, by adding a proper flag to the
conductor call when getting BDMs in compute manager's _complete_deletion
method.

Fixes bug: #1206890

Change-Id: I6a9673758b0762f99f27860b8f88a16127da7399
Merge from oslo-incubator for notifier

Goal: merge from oslo-incubator change  I282d4ae3311bc3fcda6be8e5a1fceecfc8ddb115

Done via:
python update.py --nodeps --base nova --dest-dir ../nova --modules notifier

Change-Id: I5ed80458f1073d6e5185e2769eed85a49dec5d10
Add expected_errors for extension quota_classes v3

Partially implements bp v3-api-extension-versioning

Change-Id: I4cc84ecbbda02c8079b2507d979e313cf37ccef8