<div dir="ltr"><div><div>Hi all,</div><div><br></div><div>While investigating possible options for Nova-network to Neutron migration </div><div>I faced a couple of issues with libvirt.</div><div>One of the key requirements for the migration is that instances should stay </div>
<div>running and don't need restarting. In order to meet this requirement we need </div><div>to either attach new nic to the instance or update existing one to plug it </div><div>to the Neutron network.</div><div><br>
</div><div>So what I've discovered is that attaching a new network device is only applied </div><div>on the instance after reboot although <i>VIR_DOMAIN_AFFECT_LIVE</i> flag is passed to</div><div>the libvirt call <i>attachDeviceFlags()</i>: </div>
<div><a href="https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py#L1412">https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py#L1412</a></div><div>Is that expected? Are there any other options to apply new nic without reboot?</div>
<div><br></div><div>I also tried to update existing nic of an instance by using libvirt <i>updateDeviceFlags()</i> call, </div><div>but it fails with the following:</div><div><b>'this function is not supported by the connection driver: cannot modify network device configuration'</b></div>
<div>libvirt API spec (<a href="http://libvirt.org/hvsupport.html">http://libvirt.org/hvsupport.html</a>) shows that 0.8.0 as minimal </div><div>qemu version for the virDomainUpdateDeviceFlags call, kvm --version on my setup shows </div>
<div>'<i>QEMU emulator version 1.0 (qemu-kvm-1.0)</i>'</div><div>Could someone please point what am I missing here? </div><div><br></div><div>Any help on the above is much appreciated!</div><div><br></div><div>Thanks,</div>
<div>Oleg</div></div><div><br></div></div>