<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 04/30/2014 05:01 PM, Oleg Bondarev
wrote:<br>
</div>
<blockquote
cite="mid:CAO_ZGNERJTYjLK9ZUm+yaROvfAMXYpUxo6_q9CdVg+-v5KuFow@mail.gmail.com"
type="cite">
<div dir="ltr"><span
style="font-family:arial,sans-serif;font-size:13.333333969116211px">Hi,</span>
<div
style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br>
</div>
<div
style="font-family:arial,sans-serif;font-size:13.333333969116211px">
Can anyone please help with the following: I have a running
instance with interface</div>
<div
style="font-family:arial,sans-serif;font-size:13.333333969116211px">
<div><br>
</div>
<div> <interface type='bridge'></div>
<div> <mac address='fa:16:3e:ba:a4:67'/></div>
<div> <source bridge='br100/></div>
<div> <target dev='vnet0'/></div>
<div> <model type='virtio'/></div>
<div>
<filterref
filter='nova-instance-instance-00000001-fa163ebaa467'/></div>
<div> <alias name='net0'/></div>
<div> <address type='pci' domain='0x0000' bus='0x00'
slot='0x03' function='0x0'/></div>
<div> </interface></div>
</div>
<div
style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br>
</div>
<div
style="font-family:arial,sans-serif;font-size:13.333333969116211px">what
I need is to clear network interface on the instance. I tried
virsh update-device with following xml:</div>
<div
style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br>
</div>
<div
style="font-family:arial,sans-serif;font-size:13.333333969116211px">
<div> <interface type='bridge'></div>
<div> <mac address='fa:16:3e:ba:a4:67'/></div>
<div> <source bridge='br100/></div>
<div> <model type='virtio'/></div>
<div> </interface></div>
</div>
<div
style="font-family:arial,sans-serif;font-size:13.333333969116211px"><br>
</div>
<div
style="font-family:arial,sans-serif;font-size:13.333333969116211px">but
this results in the following error:</div>
<div
style="font-family:arial,sans-serif;font-size:13.333333969116211px">
<div>$ sudo virsh update-device 13 xml.xml --persistent --live
--config</div>
<div>error: Failed to update device from xml.xml</div>
<div>error: End of file while reading data: Input/output error</div>
<div>error: Failed to reconnect to the hypervisor</div>
</div>
<div
style="font-family:arial,sans-serif;font-size:13.333333969116211px">
<br>
</div>
<div
style="font-family:arial,sans-serif;font-size:13.333333969116211px">and
libvirt is restarted. Is it possible to clear nw filter at
all?</div>
</div>
</blockquote>
<br>
Yes, changing the filterref of the interface of a running domain has
been supported since v1.0.1, but you've found a genuine bug! I've
reproduced it on my system with the last sources from git, produced
a patch to fix it, and posted it to the upstream list:<br>
<br>
<a
href="http://www.redhat.com/archives/libvir-list/2014-May/msg00005.html">http://www.redhat.com/archives/libvir-list/2014-May/msg00005.html</a><br>
<br>
Once this is ACKed and pushed, I'll pull it into the maintenance
branches back to 1.0.1.<br>
<br>
Thanks for reporting this problem!<br>
<br>
</body>
</html>