From: Keir Fraser Subject: Re: Network scripts start/stop Date: Sat, 05 Apr 2008 10:13:29 +0100 Message-ID: References: <47F6B9A0.9020806@brewtab.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0279595314==" Return-path: In-Reply-To: <47F6B9A0.9020806@brewtab.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Christopher Thunes , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============0279595314== Content-type: multipart/alternative; boundary="B_3290235217_22419010" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3290235217_22419010 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable On 5/4/08 00:28, "Christopher Thunes" wrote: > I was poking around with some network scripts for Xen today (3.2-test= ing) > and noticed that regardless of whether xend start, xend restart, or xend = stop > was called a 'start' argument was passed on to the network script > (network-bridge, network-route, etc.). I can't imagine this is normal beh= avior > and it seems that the only place that these scripts are called is from a > global function call in xend/XendPIF.py around line 35 > ("Vifctl.network('start')"). I commented this line out and added appropri= ate > calls to Vifctl.network('start') and Vifctl.network('stop') in > xend/server/SrvServer.py in the functions cleanup and start. If someone c= an > let me know if this is standard behavior and if not, if there is a better= way > to fix the problem it would be much appreciated. The established behaviour is that networking is brought up with xend, and remains up even across xend stops and restarts. Possibly xend stop and restart should not be calling the network scripts at all, but that=B9s a pretty minor issue. -- Keir --B_3290235217_22419010 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Re: [Xen-devel] Network scripts start/stop On 5/= 4/08 00:28, "Christopher Thunes" <c2thunes@brewtab.com> wrot= e:

   I was poking around with some networ= k scripts for Xen today (3.2-testing) and noticed that regardless of whether= xend start, xend restart, or xend stop was called a 'start' argument was pa= ssed on to the network script (network-bridge, network-route, etc.). I can't= imagine this is normal behavior and it seems that the only place that these= scripts are called is from a global function call in xend/XendPIF.py around= line 35 ("Vifctl.network('start')"). I commented this line out an= d added appropriate calls to Vifctl.network('start') and Vifctl.network('sto= p') in xend/server/SrvServer.py in the functions cleanup and start. If someo= ne can let me know if this is standard behavior and if not, if there is a be= tter way to fix the problem it would be much appreciated.

The established behaviour is that networking is brought up with xend, and r= emains up even across xend stops and restarts. Possibly xend stop and restar= t should not be calling the network scripts at all, but that’s a prett= y minor issue.

 -- Keir
--B_3290235217_22419010-- --===============0279595314== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0279595314==--