Cloned from launchpad blueprint https://blueprints.launchpad.net/nova/+spec/rbd-clone-image-handler. Description: Currently rbd-backed ephemeral disks are created by downloading an image from glance to a local file, then uploading that file into rbd. Even if the file is cached. uploading may take a long time, since 'rbd import' is synchronous and slow. If the image is stored in rbd already by glance, there's no need for any local copies - it can be cloned to a new image for a new disk without copying the data at all. The image handler framework enables transfering an image from glance to an abstract backend, not just a local file, so use that to implement cloning by adding a handler that detects when rbd is in use by both nova and glance, and creates a copy-on-write clone instead of downloading the image to a file. Specification URL (additional information): None
This performance enhancement missed icehouse, so proposing for 5.0.z backport The current patches associated with this are: https://review.openstack.org/94293 refactor libvirt RBD utilities to a new file https://review.openstack.org/94294 use library instead of CLI to cleanup RBD volumes https://review.openstack.org/94295 enable cloning for rbd-backed ephemeral disks
Also need to track https://bugs.launchpad.net/nova/+bug/1346525 as snapshots of instances that use RBD unnecessarily download the image first, then upload to glance.
*** Bug 1158698 has been marked as a duplicate of this bug. ***
*** Bug 1158699 has been marked as a duplicate of this bug. ***
*** Bug 1158703 has been marked as a duplicate of this bug. ***
*** Bug 1158186 has been marked as a duplicate of this bug. ***
*** Bug 1158191 has been marked as a duplicate of this bug. ***
For reference an icehouse branch with these patches is at https://github.com/angdraug/nova/tree/rbd-ephemeral-clone-stable-icehouse
*** Bug 1158196 has been marked as a duplicate of this bug. ***
Abel I'm separating out https://review.openstack.org/#/c/125963/ (https://blueprints.launchpad.net/nova/+spec/implement-rbd-snapshots-instead-of-qemu-snapshots) to bug 1163521 as it's a separate blueprint upstream, which has not been approved yet, and also needs a corresponding change to glance.
*** Bug 1158177 has been marked as a duplicate of this bug. ***
*** Bug 1158189 has been marked as a duplicate of this bug. ***
*** Bug 1160407 has been marked as a duplicate of this bug. ***
verified. 1. uploading a new image to Glance (using rbd store) 2. launching a new instance from the newly uploaded image 3. checked the space used in the Ceph - no additional space is been used.
*** Bug 1158198 has been marked as a duplicate of this bug. ***
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2014-1932.html
*** Bug 1123171 has been marked as a duplicate of this bug. ***