<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<style>
font{
line-height: 1.6;
}
ul,ol{
padding-left: 20px;
list-style-position: inside;
}
</style>
<div style="font-family:微软雅黑,Verdana,"Microsoft Yahei",SimSun,sans-serif; line-height:1.6;">
<div></div>
<style>
font{
line-height: 1.6;
}
ul,ol{
padding-left: 20px;
list-style-position: inside;
}
</style>
<div>
<div style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 1.6;"></div>
<style>
font{
line-height: 1.6;
}
ul,ol{
padding-left: 20px;
list-style-position: inside;
}
</style>
<div>
<div>
<div style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 1.6;">
<span>
<br>
</span>
</div>
<div style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 1.6;">
<span>Hi.
</span></div><div style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 1.6;"> I am using openstack, ceph and libvirt now.</div><div style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 1.6;"><br></div><div style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 1.6;"> The live volume migration will call the libvirt rebase function in openstack nova project.</div><div style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 1.6;"> <a href="https://github.com/openstack/nova/blob/stable/rocky/nova/virt/libvirt/driver.py#L1497" _src="https://github.com/openstack/nova/blob/stable/rocky/nova/virt/libvirt/driver.py#L1497" style="font-family: 微软雅黑; line-height: 1.6;">https://github.com/openstack/nova/blob/stable/rocky/nova/virt/libvirt/driver.py#L1497</a></div><div style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 1.6;"> <a href="https://github.com/openstack/nova/blob/stable/rocky/nova/virt/libvirt/guest.py#L802" _src="https://github.com/openstack/nova/blob/stable/rocky/nova/virt/libvirt/guest.py#L802" style="font-family: 微软雅黑; line-height: 1.6;">https://github.com/openstack/nova/blob/stable/rocky/nova/virt/libvirt/guest.py#L802</a></div><div style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 1.6;"><br></div><div style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 1.6;"> But I use the ceph as the openstack block backend. And the type of disk is network in xml.</div><div style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 1.6;"><div style="line-height: 1.6;"><font size="2" style="font-size: 12px;"><disk type='<b>network</b>' device='disk'></font></div><div style="line-height: 1.6;"><font size="2" style="font-size: 12px;"> <driver name='qemu' type='raw' cache='writeback' discard='unmap'/></font></div><div style="line-height: 1.6;"><font size="2" style="font-size: 12px;"><b> <auth username='cinder'></b></font></div><div style="line-height: 1.6;"><font size="2" style="font-size: 12px;"><b> <secret type='ceph' uuid='86d3922a-b471-4dc1-bb89-b46ab7024e81'/></b></font></div><div style="line-height: 1.6;"><font size="2" style="font-size: 12px;"><b> </auth></b></font></div><div style="line-height: 1.6;"><font size="2" style="font-size: 12px;"><b> <source protocol='rbd' name='volumes002/volume-127f46fc-ef10-4462-af30-c3893cda31f9'></b></font></div><div style="line-height: 1.6;"><font size="2" style="font-size: 12px;"><b> <host name='172.16.140.63' port='6789'/></b></font></div><div style="line-height: 1.6;"><font size="2" style="font-size: 12px;"><b> </source></b></font></div><div style="line-height: 1.6;"><font size="2" style="font-size: 12px;"> <target dev='vdb' bus='virtio'/></font></div><div style="line-height: 1.6;"><font size="2" style="font-size: 12px;"> <serial>127f46fc-ef10-4462-af30-c3893cda31f9</serial></font></div><div style="line-height: 1.6;"><font size="2" style="font-size: 12px;"> <alias name='virtio-disk1'/></font></div><div style="line-height: 1.6;"><font size="2" style="font-size: 12px;"> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/></font></div><div style="line-height: 1.6;"><font size="2" style="font-size: 12px;"></disk></font></div><div style="line-height: 1.6;"><font size="2" style="font-size: 12px;"><br></font></div></div><div style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 1.6;"> Now I found it is not supported to rebase network disk. It is only rebase block or file disk now.</div><div><span style="line-height: 1.6;"> </span><font face="微软雅黑, Verdana, Microsoft Yahei, SimSun, sans-serif"></font><a href="https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockRebase" _src="https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockRebase" style="line-height: 1.6;">https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockRebase</a></div><div><br></div><div style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 1.6;"> My question is that can I rebase network disk by some other ways from libvirt?</div><div style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 1.6;"><br></div><div style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 1.6;"> Cheers,</div><div style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 1.6;"> Boxiang</div><div style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 1.6;"> </div>
<div id="ntes-pcmac-signature" style="font-family: 微软雅黑; line-height: 1.6;">
<div style="font-size:14px; padding: 0; margin:0;">
</div>
</div>
</div><!--😀-->
</div><!--😀-->
</div><!--😀-->
</div>
</body>
</html>