Bug 1306562

Summary: [RFE] Allow virDomainBlockCopy to use remote RBD volumes as the base backing image
Product: Red Hat Enterprise Linux 7 Reporter: Lee Yarwood <lyarwood>
Component: libvirtAssignee: Peter Krempa <pkrempa>
Status: CLOSED WONTFIX QA Contact: Han Han <hhan>
Severity: high Docs Contact:
Priority: high    
Version: 7.4CC: cww, dchaplyg, dyuan, giuseppe.ragusa, info, jsuchane, kchamart, lmen, mkalinin, mtessun, nsoffer, pkrempa, pneedle, sgordon, xuzhang
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Rebase: Bug Fixes and Enhancements
Doc Text:
Story Points: ---
Clone Of:
: 1623877 (view as bug list) Environment:
Last Closed: 2019-04-09 12:18:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 760547    
Bug Blocks: 1293440, 1306569, 1477664, 1519149, 1546815, 1623877, 1636224, 1780119, 1888670, 1888672, 1888674    

Description Lee Yarwood 2016-02-11 10:05:55 UTC
Description of problem:

At present virDomainBlockRebase only allows the base backing image to be identified by a local file path on the system or by referencing the device[index] already present in the domain [1].

This is an issue when copying the entire chain to a new base image that is not yet connected to the host in question. For example with RBD volumes there should be no need to map these to the system prior to calling virDomainBlockRebase. It would be useful if virDomainBlockRebase would accept the connection details of a remote RBD volume as the base and then handle connecting to the volume before starting the rebase operation. This would allow Openstack Nova and other higher level services to avoid having to map RBD volumes etc to the host prior to calling for a rebase, simplifying the process greatly.

[1] https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockRebase

Comment 7 Peter Krempa 2017-03-31 12:36:37 UTC
The main problem here is with virDomainBlockCopy, which can also be reached (in a limited way) from the virDomainBlockRebase API. Using RBD natively will only be possible with the virDomainBlockCopy since only that allows to pass in a target specification via XML which is necessary for network storage.

Comment 15 Jaroslav Suchanek 2019-04-09 12:18:15 UTC
This feature will be finished in the next major release of RHEL.