Merge "Add v3 API samples for rescue"
Merge "libvirt: add test case for _hard_reboot"
Merge "Adds v3 API samples for limits and simple tenant usage"
Merge "Enable test_create_multiple_servers test for V3 API"
Merge "disassociate_address response should match ec2"
Merge "Add debugging to ComputeCapabilitiesFilter"
Rebuilding stopped instance should not set terminated_at

At the end of a rebuild action, nova checks the original vm_state
of the instance to see if it was stopped. If the instance was
originality stopped, nova will stop the newly rebuild instance.
Right before the stop, nova updates the instance and sets it's
terminated_at to utcnow(). Due to this, the periodic usage audit
does not send usage for the instance.

There's no reason for setting tereminated_at here, it should only
be set as part of instance deletion

Fixes bug: 1189554

Change-Id: I141aba1b4f3c15a4c17e1fc401ae9479acafb23f
Moved registration of lifcycle events handler in init_host()

The callback for handling lifecycle events now gets registered
before libvirt version is checked.  This is necesary because the
callback must be registered before the first time the connection
to libvirt is used.

Closes-bug: #1220278.

Change-Id: Id3a06c497d088078b4ea678ec9dde23bf0f406d4
Merge "Remove exceptions.Duplicate"
Merge "Moved registration of lifcycle events handler in init_host()"
Correct lock path for storage-registry-lock

This fixes the lock path for storage-registry-lock to prevent a
potential data loss due to a race-condition scenario.  Since the
storage-registry-lock is used to modify a json blob that is
authoritative as to which nodes are using the storage so that
we don't remove any "in-use" backing files on the shared storage
segment (if in use).

The potential data-loss could occur in limited cases of the race
that the lock should prevent.  This can only occur if the image
cache cleanup is triggerd when a node has been eliminated from
the register_storage_use JSON incorrectly by this race condition.

Most of the time the race simplyresults in a corrupted json blob.

Fixes-bug: 1194696
Change-Id: Ib1a5785646e75dc90bdd2a7e69a697adc4fbb298
Merge "Add linked clone related unit tests for VMware Hyper"
Add V3 API samples for security-groups

Partially implements blueprint v3-api-unittests

Change-Id: I6df70127a88881320052613f4c107e2287f375c1
VMware: fix bug for incorrect cluster access

For a number of methods only the first cluster would be accessed
and not the correct cluster.

Fixes bug: 1226211

Change-Id: I4eb3c360fc81de172e46418d5a16dd2bd7077fea
Remove _get_compute_info from filter_scheduler.py

After patch I6de33ada6dc377e20f8df07da92244f2c150b9fe and
Ie6f104368140b69a60e124ea96ef6bf7715fe34e, in filter_scheduler.py,
_get_compute_info has no use and no one is calling it, so we
can remove it directly.

Fix bug 1228475

Change-Id: Ia85068e402b6f0b2a9ed2a809d1c1dc63e0f3041
Fixes assertion bug in test_cells_weights.py

An assertTrue was used where an assertIn is needed.

Fixes bug #1230109

Change-Id: Id75478b958ca8b9bc030563cfdef27a89e86b881
Fix HTTP response for PortNotFound during boot (v3 API)

If a non-existent Neutron port is passed as a network parameter during create
instance, Nova API should return a 404 error. This was fixed for the V2
API in commit 4721408ea861a66af1ad1df5a45c42addcd8a95f (though with a 400).
This applies the corresponding fix to the V3 API.

Fixes bug 1212137

Change-Id: I27dfba636635eb8ac257785b833b240bc439f9ff
Fix console db can't load attribute pool

Lists consoles failed when populate console_type from console
db's pool attribute. The reason was db api console_get_all_by_instance
didn't join with pool. So add param 'columns_to_join' for db api, and
join pool attribute when lists consoles.

Change-Id: I18b44860270a401c55cf02b4334b973fbf357b03
Closes-bug: #1223205
Ensure we don't end up with invalid exceptions again

We've recently had a few (three?) exceptions where the messages
didn't work because there was a typo in the exception variable
name. This change adds a very simple unit test which ensures that
we don't end up in that state again.

Change-Id: I00423b4ce82428959e7591d5c5c47c1f25ec3029
Merge "Rebuilding stopped instance should not set terminated_at"