From: Richard Bowser Subject: Guidance needed Date: Mon, 10 Aug 2009 09:48:35 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0163325259==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0163325259== Content-Type: multipart/alternative; boundary=0015175cb886ce8be90470cb8409 --0015175cb886ce8be90470cb8409 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I am something of a newcomer to xen, and interested in creating a how-to on building xen from sources. On July 1st I started trying to build the (old) "Xen 3.4.0 plus kernel combined source distribution tarball". I have two Linux environments available to me: My personal development system runs Ubuntu 9.04. I also have a Fedora Core 10 system available at school. I have fresh, new (combined) xen-3.4.0 directories on both systems. All build attempts still abend on both systems, for various reasons. It is now mid August. This is NOT a request for technical help in using xen. (I have repeatedly written the xen-users list asking for help, and have received no helpful suggestions. But that is only *WHY* I want to develop a how-to. It doesn't matter here.) I have just uncovered something *appropriate* here: I have a Ubuntu 9.04 problem - an oddity which could be in the xen source, in Ubuntu's Python 2.6.2 script handling, or in Ubuntu 9.04 linux. Please help me decide *where* to report this problem. I must remark that since xen 3.4.1 is already out, in one sense my problem is moot. Only in Ubuntu 9.04 there still is a 100% reproducible failure in trying to build the combined 3.4.0 tarball (no longer offered on the xen.org download page), but if left uncorrected, the identical bug is likely to appear in the next stable release of a combined tarball. Here's the issue: In the function untar() within ketchup, builds under Ubuntu 9.04 uniformly fail - all the while results flagged as errors actually SUCCEED before the script abends. Ketchup dies. Under FC10, builds blithely sail past this point with no problem, though subsequently failing for reasons still under investigation and irrelevant here. An abnormal termination of ketchup displays these lines of text on std error: *mv: cannot move `linux-2.6.18/..' to `../..': Device or resource busy rmdir: failed to remove `linux-2.6.18': Directory not empty ketchup: Unpacking failed: 256* The ketchup untar function holds this code: err = os.system("mv linux*/* linux*/.[^.]* ..; rmdir linux*") if err: error("ketchup: Unpacking failed: ", err) sys.exit(-1) I believe the printed 256 above is the hex value passed as "err". This is my point of failure. I edited my local ketchup script forcing an exit just prior to executing the offending code. A test of "make world" revealed ketchup had been running in the directory xen-3.4.0/linux-2.6.18/ketchup-tmp, where there was yet another linux-2.2.6, holding untared binaries just derived from linux-2.6.18.tar.bz2. The forced exit left the suspect code unexecuted. Manual execution of "mv linux*/* linux*/.[^.]* .." *did* successfully transfer all file contents from ketchup-tmp/linux-2.6.18 to ../.. (which is also named linux-2.6.18). Subsequent manual execution of "rmdir linux*" did indeed successfully remove it from ketchup-tmp. In confusion, I retested by sending my existing test xen-3.4.0 directory to the trash and untaring a fresh copy in its place (with ketchup unedited.) I experienced an identical failure. Close observation of my new but failing build directory (xen-3.4.0/linux-2.6.18) showed that: 1) it had all the contents that had been unpacked by ketchup in os.system("bzcat %s | tar -xf -" % tarfile) - i.e., the move HAD WORKED 2) xen-3.4.0/linux-2.6.18 sill had a subdir ketchup-tmp, which was EMPTY - i.e., the *rmdir* also HAD WORKED Folks, when a system fails on an error - but actually *works*, something is WONKY, big time. As a result of going this far, I now know some important details to include in my how-to. Yet I feel this logical foible does need *fixing*, even if I don't quite know just who its "proud owner" might be. If anyone knowledgeable in building xen from sources cares to do so, please email me directly. I have several how-to issues I'd like to discuss. If this list is an appropriate venue for discussing a how-to in progress, please tell me so. I hope to contribute material of value here, and disrupt nobody. *Thanks for reading through all this!* -Rich B. --0015175cb886ce8be90470cb8409 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I am something of a newcomer to xen, and interested in creating a how-to on= building xen from sources.=A0 On July 1st I started trying to build the (o= ld) "Xen 3.4.0 plus kernel combined source distribution tarball".= =A0 I have two Linux environments available to me:=A0 My personal developme= nt system runs Ubuntu 9.04.=A0 I also have a Fedora Core 10 system availabl= e at school.=A0 I have fresh, new (combined) xen-3.4.0 directories on both = systems.=A0 All build attempts still abend on both systems, for various rea= sons.=A0 It is now mid August.

This is NOT a request for technical help in using xen.=A0 (I have repea= tedly written the xen-users list asking for help, and have received no help= ful suggestions.=A0 But that is only WHY I want to develop a how-to.= =A0 It doesn't matter here.)=A0 I have just uncovered something appr= opriate here:=A0 I have a Ubuntu 9.04 problem - an oddity which could b= e in the xen source, in Ubuntu's Python 2.6.2 script handling, or in Ub= untu 9.04 linux.=A0 Please help me decide where to report thi= s problem.=A0 I must remark that since xen 3.4.1 is already out, in one sen= se my problem is moot.=A0 Only in Ubuntu 9.04 there still is a 100% reprodu= cible failure in trying to build the combined 3.4.0 tarball (no longer offe= red on the xen.org download page), but if le= ft uncorrected, the identical bug is likely to appear in the next stable re= lease of a combined tarball.

Here's the issue:=A0 In the function untar() within ketchup, builds= under Ubuntu 9.04 uniformly fail - all the while results flagged as errors= actually SUCCEED before the script abends.=A0 Ketchup dies.=A0 Under FC10,= builds blithely sail past this point with no problem, though subsequently = failing for reasons still under investigation and irrelevant here.

An abnormal termination of ketchup displays these lines of text on std = error:
mv: cannot move `linux-2.6.18/..' to `../..': Device o= r resource busy
rmdir: failed to remove `linux-2.6.18': Directory no= t empty
ketchup: Unpacking failed:
256


The ketchup untar function ho= lds this code:
=A0=A0=A0 err =3D os.system("mv linux*/* linux*/.[^.= ]* ..; rmdir linux*")
=A0=A0=A0 if err:
=A0=A0=A0=A0=A0=A0=A0 er= ror("ketchup: Unpacking failed: ", err)
=A0=A0=A0=A0=A0=A0=A0 sys.exit(-1)

I believe the printed 256 above i= s the hex value passed as "err".

This is my point of failu= re.=A0 I edited my local ketchup script forcing an exit just prior to execu= ting the offending code.=A0 A test of "make world" revealed ketch= up had been running in the directory xen-3.4.0/linux-2.6.18/ketchup-tmp, wh= ere there was yet another linux-2.2.6, holding untared binaries just derive= d from linux-2.6.18.tar.bz2.=A0 The forced exit left the suspect code unexe= cuted.=A0 Manual execution of "mv linux*/* linux*/.[^.]* .." d= id successfully transfer all file contents from ketchup-tmp/linux-2.6.1= 8 to ../.. (which is also named linux-2.6.18).=A0 Subsequent manual executi= on of "rmdir linux*" did indeed successfully remove it from ketch= up-tmp.

In confusion, I retested by sending my existing test xen-3.4.0 director= y to the trash and untaring a fresh copy in its place (with ketchup unedite= d.)
I experienced an identical failure.=A0 Close observation of my new b= ut failing build directory (xen-3.4.0/linux-2.6.18) showed that:

1) it had all the contents that had been unpacked by ketchup in os.syst= em("bzcat %s | tar -xf -" % tarfile)=A0=A0 =A0- i.e., the move HA= D WORKED
2) xen-3.4.0/linux-2.6.18 sill had a subdir ketchup-tmp, which = was EMPTY=A0=A0 =A0- i.e., the rmdir also HAD WORKED

Folks, when a system fails on an error - but actually works, som= ething is WONKY, big time.

As a result of going this far, I now know= some important details to include in my how-to.=A0 Yet I feel this logical= foible does need fixing, even if I don't quite know just who it= s "proud owner" might be.=A0 If anyone knowledgeable in building = xen from sources cares to do so, please email me directly.=A0 I have severa= l how-to issues I'd like to discuss.=A0 If this list is an appropriate = venue for discussing a how-to in progress, please tell me so.

I hope to contribute material of value here, and disrupt nobody.=A0 = Thanks for reading through all this!

-Rich B. --0015175cb886ce8be90470cb8409-- --===============0163325259== 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 --===============0163325259==--