Bug 165705 - xen service scripts do not restore network settings on stop
Summary: xen service scripts do not restore network settings on stop
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: xen
Version: 4
Hardware: i686
OS: Linux
medium
low
Target Milestone: ---
Assignee: Rik van Riel
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 179599
TreeView+ depends on / blocked
 
Reported: 2005-08-11 13:54 UTC by Jon Dowland
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-02-27 16:51:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
output of 'script' whilst performing the steps listed in the bug (5.19 KB, application/octet-stream)
2005-08-11 13:56 UTC, Jon Dowland
no flags Details

Description Jon Dowland 2005-08-11 13:54:40 UTC
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):
xen.i386 2-20050522

How reproducible:
Always

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.

Additional info:

Comment 1 Jon Dowland 2005-08-11 13:56:48 UTC
Created attachment 117645 [details]
output of 'script' whilst performing the steps listed in the bug

Comment 4 Rik van Riel 2006-02-27 16:51:31 UTC
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...

Comment 5 Jon Dowland 2006-03-31 10:53:59 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.