Hi Doude, <div><br></div><div>At a glance, it seems that unplug() being called twice, with the second call failing because the first call successfully unplugged the vif already.  <div><br></div><div>The unplug() action on the bridge does nothing, so there's no harm in calling it twice, which may explain why this is only seen with OVS.  </div>

<div><br></div><div>A quick workaround would be to remove the "raise" line at the end of the unplug() method for LibvirtOpenVswitchDriver, in which case you will see the log message still, but it should not disrupt the reboot (this is probably better behavior as well, regardless of the true cause of the bug).  </div>

<div><br></div><div>We'll look into this.  I created this bug to track discussion on the fix: <a href="https://bugs.launchpad.net/nova/+bug/944168">https://bugs.launchpad.net/nova/+bug/944168</a></div><div><br></div>
<div>
Dan</div><div><br><br><div class="gmail_quote">On Thu, Mar 1, 2012 at 9:18 AM, Doude <span dir="ltr"><<a href="mailto:doudouyam@gmail.com">doudouyam@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

When I try reboot a VM, the nova-compute fails and the daemon stop.<br>
It fails on unpluging VIF interface of the rebooted VM. I use Nova<br>
with Quantum and OVS.<br>
<br>
2012-03-01 18:12:31 DEBUG nova.rpc.common [-] Making asynchronous call<br>
on network ... from (pid=21485) multicall<br>
/usr/local/src/nova/nova/rpc/amqp.py:318<br>
2012-03-01 18:12:31 DEBUG nova.rpc.common [-] MSG_ID is<br>
b77f0f284af045f396b90fddd16f724e from (pid=21485) multicall<br>
/usr/local/src/nova/nova/rpc/amqp.py:321<br>
2012-03-01 18:12:33 DEBUG nova.utils [-] Running cmd (subprocess):<br>
sudo nova-rootwrap ovs-vsctl del-port br-int tap9f5ef54c-38 from<br>
(pid=21485) execute /usr/local/src/nova/nova/utils.py:208<br>
2012-03-01 18:12:33 DEBUG nova.utils [-] Running cmd (subprocess):<br>
sudo nova-rootwrap ip link delete tap9f5ef54c-38 from (pid=21485)<br>
execute /usr/local/src/nova/nova/utils.py:208<br>
2012-03-01 18:12:34 DEBUG nova.utils [-] Running cmd (subprocess):<br>
sudo nova-rootwrap ovs-vsctl del-port br-int tap285c8465-dd from<br>
(pid=21485) execute /usr/local/src/nova/nova/utils.py:208<br>
2012-03-01 18:12:34 DEBUG nova.utils [-] Running cmd (subprocess):<br>
sudo nova-rootwrap ip link delete tap285c8465-dd from (pid=21485)<br>
execute /usr/local/src/nova/nova/utils.py:208<br>
2012-03-01 18:12:34 DEBUG nova.utils [-] Attempting to grab semaphore<br>
"iptables" for method "apply"... from (pid=21485) inner<br>
/usr/local/src/nova/nova/utils.py:824<br>
2012-03-01 18:12:34 DEBUG nova.utils [-] Got semaphore "iptables" for<br>
method "apply"... from (pid=21485) inner<br>
/usr/local/src/nova/nova/utils.py:828<br>
2012-03-01 18:12:34 DEBUG nova.utils [-] Attempting to grab file lock<br>
"iptables" for method "apply"... from (pid=21485) inner<br>
/usr/local/src/nova/nova/utils.py:832<br>
2012-03-01 18:12:34 DEBUG nova.utils [-] Got file lock "iptables" for<br>
method "apply"... from (pid=21485) inner<br>
/usr/local/src/nova/nova/utils.py:839<br>
2012-03-01 18:12:34 DEBUG nova.utils [-] Running cmd (subprocess):<br>
sudo nova-rootwrap iptables-save -t filter from (pid=21485) execute<br>
/usr/local/src/nova/nova/utils.py:208<br>
2012-03-01 18:12:35 INFO nova.virt.libvirt.connection [-] [instance:<br>
9300df8d-1a47-40ce-b90e-28f1a84f064d] Instance destroyed successfully.<br>
2012-03-01 18:12:35 DEBUG nova.utils [-] Running cmd (subprocess):<br>
sudo nova-rootwrap iptables-restore from (pid=21485) execute<br>
/usr/local/src/nova/nova/utils.py:208<br>
2012-03-01 18:12:35 DEBUG nova.utils [-] Running cmd (subprocess):<br>
sudo nova-rootwrap iptables-save -t nat from (pid=21485) execute<br>
/usr/local/src/nova/nova/utils.py:208<br>
2012-03-01 18:12:35 DEBUG nova.utils [-] Running cmd (subprocess):<br>
sudo nova-rootwrap iptables-restore from (pid=21485) execute<br>
/usr/local/src/nova/nova/utils.py:208<br>
2012-03-01 18:12:35 DEBUG nova.network.linux_net [-]<br>
IPTablesManager.apply completed with success from (pid=21485) apply<br>
/usr/local/src/nova/nova/network/linux_net.py:336<br>
2012-03-01 18:12:37 DEBUG nova.utils [-] Running cmd (subprocess):<br>
sudo nova-rootwrap ovs-vsctl del-port br-int tap9f5ef54c-38 from<br>
(pid=21485) execute /usr/local/src/nova/nova/utils.py:208<br>
2012-03-01 18:12:37 DEBUG nova.utils [-] Result was 1 from (pid=21485)<br>
execute /usr/local/src/nova/nova/utils.py:224<br>
2012-03-01 18:12:37 WARNING nova.virt.libvirt.vif [-] Failed while<br>
unplugging vif of instance 'instance-00000002'<br>
<br>
Do you have this problem ?<br>
<br>
Regards,<br>
Doude.<br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Dan Wendlandt <div>Nicira Networks: <a href="http://www.nicira.com" target="_blank">www.nicira.com</a><br><div>twitter: danwendlandt<br>

~~~~~~~~~~~~~~~~~~~~~~~~~~~<br></div></div><br>
</div></div>