Fix unrescue in invalid state

Fixes bug 965667

Unrescue did not check for InstanceInvalidState exception and return the
appropriate error.

Change-Id: I3ca2c1dae09bd149086bfe67e2233c8359d5c8f8
Allow self-referential groups to be created

 fixes bug 965674

Change-Id: I41db135f6437e1f1cb496528ae4d134c0d9cb744
Merge "Don't set instance ACTIVE until it's really active"
Destroy src and dest instances when deleting in RESIZE_VERIFY

Fixes bug 963630

Since deletes are allowed during RESIZE_VERIFY, we need to ensure that
the original instance is also deleted so we don't leak resources.

Change-Id: Ibfd5ad4e427c247f1cd5fddcf4f43b30839a6c4f
Merge "Clean up the shared storage check (#891756)"
Handle Forbidden and NotAuthenticated glance exc.

 * Remove references to deprecated NotAuthorized exception
 * Handle Forbidden and NotAuthenticated
 * Fixes bug 965540

Change-Id: Ib5eef3015239e0fafdb01c975a0f5d553f70519e
Merge "Destroy src and dest instances when deleting in RESIZE_VERIFY"
Reduce the image cache manager periodic interval.

When this code was written, I (incorrectly) believed a periodic
task tick was about a second. It turns out that by default they're
between 60 seconds and 120 seconds depending on a random value.
Therefore, reduce the interval to something more reasonable.

Change-Id: Id840c755f954e3e371d7238243f2248e8d402c7b
Merge "Handle Forbidden and NotAuthenticated glance exc."
Default scheduler to spread-first

 * Fixes bug 965732

Change-Id: I239b2b235905b30879974144263037eba6ed409f
A missing checksum does not mean the image is corrupt.

This is a logic error in the code. A missing checksum should not
imply that the image is corrupt. Note that corrupt images are only
logged, not removed, so there is no data loss for users with this
bug.

Change-Id: Ic644517d3b8e9646fe943e5cef485c4168ebb5b5
Merge "Reduce the image cache manager periodic interval."
Remove auth_uri, already have auth_host, auth_port

Remove to clarify config

From keystone docs:
`auth_uri``: (optional, defaults to `auth_protocol`://`auth_host`:`auth_port`)

Change-Id: I4349cd9545c571b37886ae38416c27b841e797f8
Fix marker behavior for flavors

Fixes Bug #956096

Change-Id: Ifa94a70f2aec3b9527c291e27d4710336a1d1834
Continue on the the next tenant_id on 400 codes

* Melange connection raises Exception if the response is > 400
* Fixes lp967261

Change-Id: I4592e5907276d290f4a54aa27dd4e91a62cc83e8
Minor xenapi driver cleanups

Remove reference to Deferred that has been incorrect for a while now.
Remove unnecessary __init__
Cleanup whitespace and some unnecessary +'s

Change-Id: Ice754ece564e88d46cd71d8ba56767d9df19dc0d
Updated docstrings in /tools as per HACKING

Change-Id: I06db6653784eb298ef7f78ebe99865b9c635aade
get_instance_uuids_by_ip_filter to QM

Adding a get_instance_uuids_by_ip_filter to the
QuantumManager. Also adds the supporting calls in
melange_ipam_lib an connector to support this. It
currently only works with Melange, I still need to
add a conditional that falls back on the original
implementation in the FlatManager if not using
Melange.

update: rebase

Change-Id: I9468de130c6cd1e0520f9d92c43f98aa6b36dce6
Support timestamps as prefixes for traceback log lines.

Traceback lines in the log are now formatted to match other log
lines. So, instead of getting something like:

2012-03-26 14:53:26 ERROR nova.rpc.common [-] AMQP server on 10.55.58.1:5672 is unreachable: Socket closed. Trying again in 1 secon
ds.
(nova.rpc.common): TRACE: Traceback (most recent call last):
(nova.rpc.common): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 446, in reconnect
(nova.rpc.common): TRACE:     self._connect()
(nova.rpc.common): TRACE:   File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 423, in _connect
(nova.rpc.common): TRACE:     self.connection.connect()
[snip]

You would get something like:

2012-03-26 14:53:26 ERROR nova.rpc.common [-] AMQP server on 10.55.58.1:5672 is unreachable: Socket closed. Trying again in 1 secon
ds.
2012-03-26 14:53:26 TRACE nova.rpc.common Traceback (most recent call last):
2012-03-26 14:53:26 TRACE nova.rpc.common   File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 446, in reconnect
2012-03-26 14:53:26 TRACE nova.rpc.common     self._connect()
2012-03-26 14:53:26 TRACE nova.rpc.common   File "/usr/lib/python2.7/dist-packages/nova/rpc/impl_kombu.py", line 423, in _connect
2012-03-26 14:53:26 TRACE nova.rpc.common     self.connection.connect()
[snip]

This is tracked by bug 967842.

Change-Id: Ie017317f7e0b636016a220cb21a3543ab569dea5
Base image signature files are not images.

Stop treating base image signature files as images. Resolves bug 967843.

Change-Id: Iad2f27e07a6a9887785bb4dab44476c62cd11a69