Red Hat Bugzilla – Bug 165705
xen service scripts do not restore network settings on stop
Last modified: 2007-11-30 17:11:11 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050517 Firefox/1.0.4 (Debian package 1.0.4-2)
Description of problem:
According to the Xen User's Manual; /etc/xen/scripts/network is called when xend is started or stopped and it should return the network state to normal when it is called as part of xend shutting down.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
For each step, check ifconfig and route output immediately afterwards.
1. boot xen0 kernel
2. service xend start
3. service xend stop
Actual Results: xen-br0 still exists, eth0 is still on it.
Expected Results: xen-br0 should have been removed, eth0 detached from it, original network and routing config restored.
Created attachment 117645 [details]
output of 'script' whilst performing the steps listed in the bug
Thinking about it some more, sometimes people have to restart xend while there
are guest domains running. Taking down the network configuration on xend
shutdown means it might not get restored properly when xend is restarted,
resulting in a loss of network connectivity for some guests!
On the other hand, keeping the network setup intact on xend shutdown is a
harmless side effect. Not pretty, but the alternatives are worse.
Certainly not something we should try to change this close to Fedora Core 5...
I agree that restarting the xend should be independent of tearing up or down a
network connection. I'd suggest therefore putting that stuff into a seperate
service script and making it idempotent.