From: "John Weekes" Subject: Two recent patches that broke my stubdoms Date: Wed, 13 Jan 2010 10:14:17 -0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2067387906==" 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 This is a multi-part message in MIME format. --===============2067387906== Content-Type: multipart/alternative; boundary="----=_NextPart_000_AFBC_01CA9439.29F529A0" This is a multi-part message in MIME format. ------=_NextPart_000_AFBC_01CA9439.29F529A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable In testing 4.0-0rc1, I found that I could no longer start file-backed = stubdom-based domUs. They worked fine under a November changeset, so I = took a closer look. After a bit of digging, I found two patches that = prevent them from starting. It would be best if these were reverted, or = preferably retooled by their authors, before the next -rc. c/s 20631 : When starting a stubdom-based domain, I found that "xm create" would = simply hang. In the qemu-dm-domain.log file, I saw: Error: Device 768 (vbd) could not be connected. losetup /dev/loop0 = /path/to/file.img failed Reverting c/s 20631 made it work again. I run Gentoo, and losetup -f = works fine, but the new method apparently doesn't (I suspect it has = something to do with having to start up the two domains so close = together). The hanging problem also highlighted an issue with image.py. This line = around line 491 caused an endless wait for a domain that would never = start ("continue" makes no sense in this context, because it's in a = "while True" loop already): if count < 100: continue I suspect this was closer to the author's intent: if count > 100: break c/s 20746 : I tried to start my domain again, and it still wouldn't go. With the = original image.py, it would just hang and show the main domain as --p--- = and the stubdom as -b----. This told me that something was probably = wrong with the stubdom or its configuration, so I took a look at the = autogenerated stubdom file and found "monitor=3Dnull" in the vfb line, = which was different than what previous versions put in. I simply edited = image.py to revert c/s 20746, and this got rid of "monitor=3Dnull", = allowing the domain to start. As this problem seems to relate to stubdoms specifically, an exception = may need to just be put in for them. ------=_NextPart_000_AFBC_01CA9439.29F529A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
In testing 4.0-0rc1, I found that I = could no longer=20 start file-backed stubdom-based domUs. They worked fine under a November = changeset, so I took a closer look. After a bit of digging, I found two = patches=20 that prevent them from starting. It would be best if these were = reverted, or=20 preferably retooled by their authors, before the next -rc.
 
c/s 20631 :
 
When starting a stubdom-based domain, I = found that=20 "xm create" would simply hang.
 
In the qemu-dm-domain.log file, I = saw:
 
Error: Device 768 (vbd) could not be = connected.=20 losetup /dev/loop0 /path/to/file.img failed
 
Reverting c/s 20631 made it work again. = I run=20 Gentoo, and losetup -f works fine, but the new method apparently doesn't = (I=20 suspect it has something to do with having to start up the two domains = so close=20 together).
 
The hanging problem also highlighted an = issue with=20 image.py. This line around line 491 caused an endless wait for a domain = that=20 would never start ("continue" makes no sense in this context, because = it's in a=20 "while True" loop already):
 
          =      =20 if count <=20 100:
           = ;        =20 continue
 
I suspect this was closer to the = author's=20 intent:
 
          =      =20 if count >=20 100:
           = ;        =20 break
 
c/s 20746 :
 
I tried to start my domain again, and = it still=20 wouldn't go. With the original image.py, it would just hang and show the = main=20 domain as --p--- and the stubdom as -b----. This told me that something = was=20 probably wrong with the stubdom or its configuration, so I took a look = at the=20 autogenerated stubdom file and found "monitor=3Dnull" in the vfb line, = which was=20 different than what previous versions put in. I simply edited image.py = to revert=20 c/s 20746, and this got rid of "monitor=3Dnull", allowing the domain to=20 start.
 
As this problem seems to relate to = stubdoms=20 specifically, an exception may need to just be put in for = them.
 
------=_NextPart_000_AFBC_01CA9439.29F529A0-- --===============2067387906== 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 --===============2067387906==--