libvirt: Refresh volume connection_info after volume snapshot
The following patch is related to the guest assisted snapshot
functionality. When you take a snapshot of a volume
(e.g. GlusterFS) attached to a running instance, a new snapshot
file is created, i.e. volume-<uuid>.<snapshot-uuid>. The
instance uses this file as the active volume. If you shutdown
and restart the instance, nova will reattach the base volume
(volume-<uuid>) to the instance instead of the snapshot volume
(volume-<uuid>.<snapshot-uuid>). The expected behavior is to
have the snapshot volume reattach to the instance. This is
caused by stale data being returned from the database when
_get_instance_volume_block_device_info is called during
_power_on. To fix this bug, this patch calls
refresh_connection_info to update the database in both
volume_snapshot_create and _volume_snapshot_delete methods of the
libvirt driver.
Reviewed: https:/ /review. openstack. org/87432 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=329b594436a ad814e43740ea26 841342a8772aff
Committed: https:/
Submitter: Jenkins
Branch: master
commit 329b594436aad81 4e43740ea268413 42a8772aff
Author: Thang Pham <email address hidden>
Date: Mon Apr 14 22:47:06 2014 -0400
libvirt: Refresh volume connection_info after volume snapshot
The following patch is related to the guest assisted snapshot <uuid>. <snapshot- uuid>. The <uuid>. <snapshot- uuid>). The expected behavior is to instance_ volume_ block_device_ info is called during connection_ info to update the database in both snapshot_ create and _volume_ snapshot_ delete methods of the
functionality. When you take a snapshot of a volume
(e.g. GlusterFS) attached to a running instance, a new snapshot
file is created, i.e. volume-
instance uses this file as the active volume. If you shutdown
and restart the instance, nova will reattach the base volume
(volume-<uuid>) to the instance instead of the snapshot volume
(volume-
have the snapshot volume reattach to the instance. This is
caused by stale data being returned from the database when
_get_
_power_on. To fix this bug, this patch calls
refresh_
volume_
libvirt driver.
Change-Id: I0f340a3f879580 e7981d97863bc29 9e33d71aa84
Closes-Bug: #1304695