Dis-associate an auto-assigned floating IP should return proper warning

Added new exception class CannotDissociateAutoAssignedFloatingIP and raised
exception instead of return.

Fixes bug 1061499

Change-Id: I348573a235c6b81653837267072b5c48fa15b8af
(cherry picked from commit ce04b13f26169e2d71b7d3122d3a769cb4348bf7)
Handle instances not being found in EC2 API responses.

Resolves bug 1080406 where InstanceNotFound was raised with None
as the instance id.

Change-Id: I805a9c8893f51ab22426e606ce260a04113f26e5
(cherry picked from commit c3639847011566f39a7bd08e29bab4a72847a333)
Fix XML response for return_reservation_id.

The XML serializer for create uses the server template for it's response.
However, when return_reservation_id is set, only a reservation_id is
going to be returned.

To enable the XML response to be serialized the reservation id is now
returned in a server tag/object.

This commit fixes bug 1061124

Change-Id: Ic74071b1d527c3f3752e296d3fd46a28a99beb76
Signed-off-by: Matthew Treinish <treinish@linux.vnet.ibm.com>
(cherry picked from commit 903b51e148c2f9e858b5ea0ca5b230ac308d76c5)
libvirt: continue detach if instance not found

Currently the libvirt code will always logout of the iscsi target
during detach error, but the exception will cause the volume to
remain in an attached state. This needs to be more consistent, so
This patch checks specifically for not found and logs a warning
and explicitly detaches. Any other exception will leave iscsi
logged in and leave the volume in the attached state.

Fixes bug 1057756

Change-Id: I23bb7f27e8a9b20fdbf62b0629ca8cc448f427c5
(cherry picked from commit cc02f6a5604892fb776158dab06b06f24a25cbfb)
Update db entry before upate the DHCP host file.

Update fixed IP db entry before upated the DHCP host file.

Fixes LP Bug #1078718

Change-Id: I75504acfc1c571219938d25a7c3b1a452d3f1cb9
(cherry picked from commit 51490807bd4dddaa01ba56620ba3a6b9b8ad75a3)
Fix Incorrect Exception when metadata is over 255 characters

Need to be in sync with Essex. Throw a new exception in api.py when key or value
is over 255 chars. Catch this exception end return back HTTP error 413.

add extra lines in exception.py to make pep8 happy

Fixes bug 1004007

Change-Id: I67694e3a9600b7dd0b80c519327327568751c2a4
(cherry picked from commit db7798a973bb05af5d4668a9f9b20ce62e8a47af)
Declare vpn client option in pipelib

Due to some import refactoring, nova.network.manager isn't always
imported when running pipelib commands, so using the cnt_vpn_clients
option fails. A failing test could not be added because our testing
code imports nova.network.manager so the code config option always
exists in testing.

Fixes bug 1069573

Change-Id: I92b702556bfef2610b86a952dd6f9207fbab102a
(cherry picked from commit ae6920fb6b367b5aa75e02c72275e3149d02cd70)
Correct _extract_query_params in image.glance

Updates _params rather than params to ensure filters.

Fixes bug 1070138.

Change-Id: I4e71d19f120ea91d8dfca32785ccb0aa7b1c770b
(cherry picked from commit 1aec1f56f28cb52e843959a7d31f1f10c5f05407)
Merge "Fix XML response for return_reservation_id." into stable/folsom
Merge "Update db entry before upate the DHCP host file." into stable/folsom
Merge "Fix Incorrect Exception when metadata is over 255 characters" into stable/folsom
Merge "Correct _extract_query_params in image.glance" into stable/folsom
Merge "libvirt: continue detach if instance not found" into stable/folsom
Merge "Dis-associate an auto-assigned floating IP should return proper warning" into stable/folsom
Merge "Handle instances not being found in EC2 API responses." into stable/folsom
Merge "Declare vpn client option in pipelib" into stable/folsom