Remove outdated try except block in ec2 code

We now have 'ec2_id -> glance_id mapping' so this check can be removed

Change-Id: Ib10ab5faea154bae9d129c0dc1edc24c2a99ffb7
xenapi: fix console for rescued instance

Check if the instance is in vm_state RESCUED and if so
change the name-label to reflect that. Name label is used
to get vm ref and currently the original instance is being
referenced even when in rescue mode. If rescue vm is not ready
yet, InstanceNotReady is raised.

Added tests cases for xenapi get_vnc_console for instance
and rescue mode.

Fixes bug #1157389

Change-Id: I5438103d517c40c1c87ddecd5f88b1487bfc0339
Add a comment to placeholder migrations.

We've had a review that tried to reuse migration 162 rather than
skipping to 172.  Maybe a comment will prevent that in the future.

Change-Id: Ib8b73260df593d13a81ce65c85a302a54668b95e
Don't log traceback on rpc timeout.

Don't log a traceback in the rpc layer after a timeout() occurs while
waiting on a response to a call().  Let the caller get the exception and
decide whether it should be logged or not.

Fix bug 1158920.

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

Updates include:

* Enabling the rpc message envelope.
* Improved logging for timeouts
* fixes in the zmq driver

Change-Id: I0b2ab1acff1fea9c07a33da176cf6a11ed8a3f2c
Sync everything from oslo-incubator.

Change-Id: If602b424086abb3edbd4703bc0e3befedbf37925
Reset ec2 image cache between S3 tests.

We recently introduced EC2 image caching in 2865a76.

On some python 2.6 distros I'm now seeing nova.tests.image.test_s3
failures caused by test ordering issues. Tests appear to reuse
IDs and this can cause issue if we don't clear the cache in tearDown.

Fixes LP Bug #1158935.

Change-Id: Ifeedaf7a784b787de95d2f36394216cf7c94c5f4
py2.6 doesn't support TextTestRunner resultclass

Updates tools/colorizer to account for the fact that Python
2.6 doesn't support resultclass.

This fixes issue in trying to use run_tests.sh on distributions
which use python 2.6.

Fixes LP Bug #1158940

Change-Id: I763cd9c7a4b5ec5baaad3a3d9ee96e6e3cd13b3e
Make _downsize_quota_delta() use stashed instance types

This change changes the _downsize_quota_delta() method to take instance
as a param instead of migration_ref, and use it to extract the old and new
instance_types instead of looking them up in the database. This is needed
for this case since the method can be called from compute manager during
the periodic task to confirm pending migrations, and thus access to the
database may not be allowed.

Fixes bug #1158897

Change-Id: I647c51bc4d30e6dfd62abe7b65a9109d6aa2bb6f
Merge "Add a comment to placeholder migrations."
Merge "Make _downsize_quota_delta() use stashed instance types"
Merge "Remove outdated try except block in ec2 code"
disable colorizer as it swallows fails

while the colorizer is pretty, it has the problem that fail output
actually gets completely swallowed when it is turned on.

Revert the use in run_tests.sh for now until it can be sorted out
so we don't prevent people from using run_tests.sh to do development.

Fixes bug #1159116

Change-Id: I3e6dfdc03c7b033ff132c00a51a368dae9789266
Merge "Reset ec2 image cache between S3 tests."
Merge "disable colorizer as it swallows fails"
Imported Translations from Transifex

Change-Id: I0ee0df11849df41d9bbecd846c86813c67a6c779
Merge "Don't log traceback on rpc timeout."
Merge "Sync rpc from oslo-incubator."
Merge "Sync everything from oslo-incubator."
Merge "xenapi: fix console for rescued instance"