Fix collection of metadata for a snapshot of a volume-backed instance
Currently the snapshot derives its properties from the instance source:
an other snapshot or a bootable volume. But that sources could be
changed since the instance was booted.
To make instance snapshots independent of source changes this patch
collects metadata from instance system metadata rather than the sources.
Since it brings the only way to initialize image metadata, it fixes:
a) min_ram attribute is not inherited from a bootable volume
(LP #1369854).
b) empty container_format and disk_format attribute are inherited from a
source instance snapshot (LP #1439819).
Reviewed: https:/ /review. openstack. org/170243 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=8cf2d413447 85a0752fbfe8745 032aed2ec11e27
Committed: https:/
Submitter: Jenkins
Branch: master
commit 8cf2d41344785a0 752fbfe8745032a ed2ec11e27
Author: Feodor Tersin <email address hidden>
Date: Mon Jul 6 21:42:14 2015 +0300
Fix collection of metadata for a snapshot of a volume-backed instance
Currently the snapshot derives its properties from the instance source:
an other snapshot or a bootable volume. But that sources could be
changed since the instance was booted.
To make instance snapshots independent of source changes this patch
collects metadata from instance system metadata rather than the sources.
Since it brings the only way to initialize image metadata, it fixes:
a) min_ram attribute is not inherited from a bootable volume
(LP #1369854).
b) empty container_format and disk_format attribute are inherited from a
source instance snapshot (LP #1439819).
Closes-Bug: #1369854 738add1591a0069 d8049f35c24
Closes-Bug: #1439819
Related-Bug: #1469179
Change-Id: I067f66356a5ebd