Flatten volume from glance rbd image for cinder rbd backend
Suppose glance and cinder uses ceph rbd driver as storage backend, cinder and glance are in the same ceph storage cluster.
If cinder creates a volume from an image, it could create a clone volume from that image, and the relationship is 'glance image-->rbd snap of glance image-->clone image(=volume from image)'' like below.
# rbd info volume-
rbd image 'volume-
size 20480 MB in 5120 objects
order 22 (4096 kB objects)
block_name_prefix: rbd_data.
format: 2
features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
flags:
parent: glance-
overlap: 2252 MB
If we want to remove the dependencies, we should flatten the clone image.
So it’s necessary to add a config option named rbd_flatten_
and it is also necessary to call _flatten in clone_image method.
Blueprint information
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Flatten volume from glance rbd image
Addressed by: https:/
Flatten volume from glance rbd image