Update exception.wrap_exception so that all exceptions (not just Error
and NovaException types) get logged correctly.

(cherry picked from commit 19b3b7a0c50dd6a68238daf8827519fd83a395cc)

Change-Id: I37aef06551a5ea4e29960bd80aeb0415d945fe95
Move failed instances to error state

On instance creation there is the possibility of
an instance raising. This would not cause the
instance to be moved to the error state. This
patch fixes that. lp885323

update 1: fixing exception handling
update 2: preserving the individual messages
update 3: rebase on master & fix spacing

(cherry picked from commit c04b431cd63f4d934f40dd1f62a9107ae6dfde90)

Change-Id: I7584b527e408c08014f1b6a8abda343f1e2aa3b8
Fixes LP878319

* Adds lookup of host version in XenAPI session
* Add call to determine function name of resize

(cherry picked from commit bee61b32420a2b8ce982406cd6c9647098bdf70b)

Change-Id: I797ff2ea34a3b3fde1091efba803a4572aaf1ede
Fixes bug 871877

Added an aditional testunit to the VlanNetworkTestCase to check
if the FixedIpNotFoundForNetwork exception is raised properly.

(cherry picked from commit 6e7b0387e417e4ef36b8ce1e0b7a7db32732838d)

Change-Id: I92a0ca22aadcfa9a7fd434375e239be8ccf4f387
nova-manage: exit with status 1 if an image registration fails

This indicates the failure to the user through the exit status.

Original author: Renuka Apte <renuka.apte@citrix.com>

(cherry picked from commit d7e5a791503b67c53bd497b9cdebb19083630b14)

Change-Id: I73fc2cc35530e7ee7f113f5aaec7b577663e4dc1
Fix a notification bug when creating instances

Fixes a notifier bug that caused 'launched_at' to be empty and
state to be reported as 'building', due to failure to refresh
instance data prior to generating the notification.  Fixes
bug 834867.

(cherry picked from commit 57e73d374843cade854f07a228192c4f496507ff)

Change-Id: I70fbf3c67407c67b69040ee481ca6d51212cc55d
fix rebuild sha1 not string error

fixes bug #889164
The sha1() parameter is converted to a string
before calling the funcion.

(cherry picked from commit 17ae2d2662ca9af6eee0cf96fe48d3951593dc6b)

Change-Id: I9cb6ff43c106c214e027d3bdacb795b4b0269f94
Verify security group parameters

Introduced various sanity checks before adding security group rule
into the database. The checks have been implemented both in EC2 and
openstack extension code.
Implemented the suggestions made in first patch by Brian
Fixed the unit tests in security groups
Fixed pep8 issues in security group unit tests

Fixes bug 869979.

(cherry picked from commit 1a12349c056b52b488591abb1671ad94a6db6526)

Change-Id: I2ac28666e90e7bdeacb7b1c2676c0719cfb9e441
Bug #886353: Faults raised by OpenStack API Resource handlers fail to be reported properly

In Resource.__call__, catch any faults.Fault that are thrown by the request
handler, and make those the action_result.  This means that the Fault doesn't
fall into the exception handler below (faults.Fault is a subclass of
webob.exc.HTTPException) and so we don't attempt to wrap a Fault in a Fault.

(cherry picked from commit 01150b5d0d482a83a1065c2a6d62f4963c9f838d)

Change-Id: Ica31723ddd621332ec4be75db0d675bc98905e43
Makes sure gateways forward properly

 * Fixes bug 890195
 * Fixes missing context in dhcp call
 * Adds test to verify call is correct

(cherry picked from commit 41af372219793556e6ba335d765761fa277107df)

Change-Id: Ic099082a18d9fd8f48c338e092cd4a2d227b927b
Fix a minor memory leak

Fixes a minor memory leak caused by a self-referential data structure
with a __del__() method by explicitly breaking the cycle.

(cherry picked from commit a594f4d34418c27197fe7f82eab150bc7cb70478)

Change-Id: Ic2c896d3067f8a2205abc8a43ec290fdbd92ef09
Fixes bug 886263.

IndexError: pop index out of range on replace_uuid_with_id

(cherry picked from commit 10f93f567f4a164091d811765d1fdc39cdb36478)

Change-Id: I2f89bcc1675315c800e0d34bc09a268293a23caf
Fix for bug 894431

Make sure we set the correct interface id

(cherry picked from commit 94ed3e71ac5ea79fc4746d5d1b0c758744316cc6)

Change-Id: I427284182cc0a5a456b43b777faba0a74f3816e7
Bug #897091: "nova actions" fails with HTTP 400 / TypeError if a server action has been performed

Fix code in Controller.action that was overwriting the definition of the
actions method with a dictionary.  This meant that 'nova actions' would fail
if 'nova reboot' had previously been called.

Added two tests, one for the actions call in general, and one for this
failure mode specifically.

(cherry picked from commit 4a76167e354eed4aa98232fbf6c845f86ce4cf22)

Change-Id: I695bb5c4dcfba96a5aba54125a8f3163e1a6a193
removed logic of throwing exception if no floating ip

fixes 897089

(cherry picked from commit 8230533824fd170498e51b43dd2f20e6af410c53)

Change-Id: Iaa03c7b75abf67c78b4605c29ef1770c96c6a199
Merge "nova-manage: exit with status 1 if an image registration fails" into stable/diablo
Merge "Fix a notification bug when creating instances" into stable/diablo
Merge "Fixes bug 886263." into stable/diablo
Merge "Makes sure gateways forward properly" into stable/diablo
Merge "Fix for bug 894431" into stable/diablo