Ensure that qpid connection is closed (from oslo)

This is commit a9bc62814d in oslo-incubator

Fixes bug 1172922

When reestablishing a session and a connection already exists the
existing connection will be closed prior to opening the new one.

Change-Id: I9a25800fe4b56eba89d550e3461ce095bf902f0a
Do not reschedule if copy_image_to_volume fails

Catch any exception raised by copy_image_to_volume and wrap them
in ImageCopyFailure. Raising ImageCopyFailure will prevent
the volume from being rescheduled.

Fixes: bug #1224211
Change-Id: I1366f86927813cadefe742769eb7cff27ed41b7e
Fix volume_glance_metadata deletion (backport)

Backport patch https://review.openstack.org/#/c/41768/ and
its dependency: https://review.openstack.org/#/c/41601/
(no snapshot handling exception, for this is not trivial
due to specific havana changes)

If volume_glance_metadata does not exist for a certain volume,
it returns an exception and does not delete volume from db.
Avoid deleting it if it does not exist.

Fixes bug: 1209367

Change-Id: Icb34c90b13aac1e92b4645c3016127a2d4b8af6f
Merge "Ensure that qpid connection is closed (from oslo)" into stable/grizzly
Fix secure delete for thick LVM snapshots

This change modifies the behaviour of the secure delete for thick
LVM snapshots to wipe the underlying COW of the snapshot LV
instead of the snapshot LV itself.

This change is necessary because the snapshot LV does not contain
exactly the same number of writable blocks as the original LV.  The
COW includes header information per COW block that identifies the
 device as a COW device as well as the source and destination blocks
for the changed item.  The amount of metadata contained in the COW is
variable based on I/O performed on the snapshot.

This does not change the behavior of secure deletes on thin LVs
or secure deletes on the thick LV snapshot origin.

Closes-Bug: #1191812
Change-Id: I308b554429ac981d709c19b78cdc00389a3f598a
Merge "Fix secure delete for thick LVM snapshots" into stable/grizzly
Merge "Fix volume_glance_metadata deletion (backport)" into stable/grizzly
Merge remote-tracking branch 'upstream/stable/grizzly' into stable/grizzly