xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* xen-4.1.3-rc1-pre changeset 23224:cccd6c68e1b9 hvm xl not execute vif-bridge when xl destroy hvmdomain or xl trigger hvmdomain power
@ 2012-02-09 17:12 Teck Choon Giam
  2012-02-10 10:45 ` Stefano Stabellini
  0 siblings, 1 reply; 5+ messages in thread
From: Teck Choon Giam @ 2012-02-09 17:12 UTC (permalink / raw)
  To: xen-devel

Hi,

I need to check whether is this intended?  When using xl create hvm
domains, it does execute vif-bridge script.  However, when doing xl
destroy or xl trigger hvmdomain power it doesn't execute vif-bridge
script.  I just did the following to test:

# cp -pvf /etc/xen/scripts/vif-bridge /etc/xen/scripts/vif-bridge.orig
# cat > /etc/xen/scripts/vif-bridge <<'EOF'
#!/bin/bash
echo "$@" >> vif-bridge.log
/etc/xen/scripts/vif-bridge.orig "$@"
EOF

When using xm and xl to create hvmdomain, I can see vif-bridge.log
appended with:

online type_if=vif
online type_if=vif
add type_if=tap
add type_if=tap

Since I have allocated 2 vifs (one for WAN and one for LAN)... so it
gets to execute vif-bridge once for each vif which looks right.

Now the problem is xl trigger hvmdomain power and xl destroy power.
Both never call vif-bridge script as there isn't any such line like:

offline type_if=vif
offline type_if=vif

Whereby when I tried with xm trigger hvmdomain power, it does call
vif-bridge script as the above two lines get logged.

This will leave the iptables FORWARD rule intact when using xl which I
reported before :(

See http://www.gossamer-threads.com/lists/xen/devel/204990

Thanks.

Kindest regards,
Giam Teck Choon

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-10 17:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-09 17:12 xen-4.1.3-rc1-pre changeset 23224:cccd6c68e1b9 hvm xl not execute vif-bridge when xl destroy hvmdomain or xl trigger hvmdomain power Teck Choon Giam
2012-02-10 10:45 ` Stefano Stabellini
2012-02-10 16:04   ` Teck Choon Giam
2012-02-10 17:16     ` Stefano Stabellini
2012-02-10 17:30       ` Teck Choon Giam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).