From thatch45 at gmail.com Fri Dec 4 21:46:22 2009 From: thatch45 at gmail.com (Thomas S Hatch) Date: Fri, 4 Dec 2009 14:46:22 -0700 Subject: [Thincrust-devel] Fedora 12 issues Message-ID: <6172c17e0912041346v4f8c33deu95948fefe9d41116@mail.gmail.com> I am having an issue with appliance-creator and fedora 12. when I attempt to make any appliance it spits out a python error: # appliance-creator -n test --config /usr/share/spin-kickstarts/fedora-aos.ks -o /srv/test/ Warning: The kernel was unable to re-read the partition table on /dev/loop1 (Invalid argument). This means Linux won't know anything about the modifications you made until you reboot. You should reboot your computer before doing anything with /dev/loop1. Traceback (most recent call last): File "/usr/bin/appliance-creator", line 164, in sys.exit(main()) File "/usr/bin/appliance-creator", line 148, in main creator.mount("NONE", options.cachedir) File "/usr/lib/python2.6/site-packages/imgcreate/creator.py", line 515, in mount self._mount_instroot(base_on) File "/usr/lib/python2.6/site-packages/appcreate/appliance.py", line 159, in _mount_instroot self.__instloop.mount() File "/usr/lib/python2.6/site-packages/appcreate/partitionedfs.py", line 221, in mount self.__format_disks() File "/usr/lib/python2.6/site-packages/appcreate/partitionedfs.py", line 65, in __format_disks raise MountError("Error writing partition table on %s" % d.device) AttributeError: 'dict' object has no attribute 'device' Any idea what is going on? Is this a known bug? My version is: appliance-tools-004.4-3.fc12.noarch I am on f12 64 bit -Thomas Hatch -------------- next part -------------- An HTML attachment was scrubbed... URL: From thatch45 at gmail.com Fri Dec 4 22:25:16 2009 From: thatch45 at gmail.com (Thomas S Hatch) Date: Fri, 4 Dec 2009 15:25:16 -0700 Subject: [Thincrust-devel] Re: Fedora 12 issues In-Reply-To: <6172c17e0912041346v4f8c33deu95948fefe9d41116@mail.gmail.com> References: <6172c17e0912041346v4f8c33deu95948fefe9d41116@mail.gmail.com> Message-ID: <6172c17e0912041425x1bdae21m355295ef58faa131@mail.gmail.com> I got it fixed, there is a bug in the code. On line 64 of /usr/lib/python2.6/site-packages/appcreate/partitionedfs.py a check begins to ensure that the previous command executed. Line 65 has a syntax error and the exception will (almost) always be raised because parted will have a return code of 1, even when it works. I fixed it by commenting out lines 64 and 65. Please fix this. -Thomas Hatch On Fri, Dec 4, 2009 at 2:46 PM, Thomas S Hatch wrote: > I am having an issue with appliance-creator and fedora 12. when I attempt > to make any appliance it spits out a python error: > > # appliance-creator -n test --config > /usr/share/spin-kickstarts/fedora-aos.ks -o /srv/test/ > Warning: The kernel was unable to re-read the partition table on /dev/loop1 > (Invalid argument). This means Linux won't know anything about the > modifications you made until you reboot. You should reboot your computer > before doing anything with /dev/loop1. > Traceback (most recent call last): > File "/usr/bin/appliance-creator", line 164, in > sys.exit(main()) > File "/usr/bin/appliance-creator", line 148, in main > creator.mount("NONE", options.cachedir) > File "/usr/lib/python2.6/site-packages/imgcreate/creator.py", line 515, > in mount > self._mount_instroot(base_on) > File "/usr/lib/python2.6/site-packages/appcreate/appliance.py", line 159, > in _mount_instroot > self.__instloop.mount() > File "/usr/lib/python2.6/site-packages/appcreate/partitionedfs.py", line > 221, in mount > self.__format_disks() > File "/usr/lib/python2.6/site-packages/appcreate/partitionedfs.py", line > 65, in __format_disks > raise MountError("Error writing partition table on %s" % d.device) > AttributeError: 'dict' object has no attribute 'device' > > > Any idea what is going on? Is this a known bug? > > My version is: > appliance-tools-004.4-3.fc12.noarch > I am on f12 64 bit > > -Thomas Hatch > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jaredsmith at jaredsmith.net Sat Dec 5 00:35:32 2009 From: jaredsmith at jaredsmith.net (Jared Smith) Date: Fri, 4 Dec 2009 19:35:32 -0500 Subject: [Thincrust-devel] Fedora 12 issues In-Reply-To: <6172c17e0912041346v4f8c33deu95948fefe9d41116@mail.gmail.com> References: <6172c17e0912041346v4f8c33deu95948fefe9d41116@mail.gmail.com> Message-ID: On Fri, Dec 4, 2009 at 4:46 PM, Thomas S Hatch wrote: > I am having an issue with appliance-creator and fedora 12.? when I attempt > to make any appliance it spits out a python error: You're not the only one... > Any idea what is going on?? Is this a known bug? I have a *bit* of a clue as to what's happening. Something changed with regards to the way parted handles drives after it's changed the partition tables. The appliance-creator program doesn't like the return value from parted, so it throws an error. Unfortunately, there's a typo in the line that gets printed to tell you there's an error, so it throws even more errors. Someone else on the list (who I'm sure is much more clueful than I am) said he was looking at this a few days ago, but I haven't seen any follow-up on it. In the meantime, I've got an open bug in bugzilla (525900) which documents the typo, but not what changed with regards to parted. -Jared Smith From thatch45 at gmail.com Sat Dec 5 01:40:31 2009 From: thatch45 at gmail.com (Thomas S Hatch) Date: Fri, 4 Dec 2009 18:40:31 -0700 Subject: [Thincrust-devel] Fedora 12 issues In-Reply-To: References: <6172c17e0912041346v4f8c33deu95948fefe9d41116@mail.gmail.com> Message-ID: <6172c17e0912041740n120ce8c3t7c78cb44a27abe5f@mail.gmail.com> Thanks, I will track it. The parted issue appears to be that the partprobe process which happens after the loopback mount is failing. This is a legitimate reason for parted to fail, since some usermode tools will be unable to properly read kernel device table. But since this problem does not seem to hinder appliance-creator then, I would argue, the return code (1) should be accepted. The typo in the error message is just bunk, this should be fixed. But for now, commenting out those lines worked. -Thomas Hatch On Fri, Dec 4, 2009 at 5:35 PM, Jared Smith wrote: > On Fri, Dec 4, 2009 at 4:46 PM, Thomas S Hatch wrote: > > I am having an issue with appliance-creator and fedora 12. when I > attempt > > to make any appliance it spits out a python error: > > You're not the only one... > > > Any idea what is going on? Is this a known bug? > > I have a *bit* of a clue as to what's happening. Something changed > with regards to the way parted handles drives after it's changed the > partition tables. The appliance-creator program doesn't like the > return value from parted, so it throws an error. Unfortunately, > there's a typo in the line that gets printed to tell you there's an > error, so it throws even more errors. > > Someone else on the list (who I'm sure is much more clueful than I am) > said he was looking at this a few days ago, but I haven't seen any > follow-up on it. In the meantime, I've got an open bug in bugzilla > (525900) which documents the typo, but not what changed with regards > to parted. > > -Jared Smith > > _______________________________________________ > Thincrust-devel mailing list > Thincrust-devel at redhat.com > https://www.redhat.com/mailman/listinfo/thincrust-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bkearney at redhat.com Mon Dec 7 14:31:45 2009 From: bkearney at redhat.com (Bryan Kearney) Date: Mon, 07 Dec 2009 09:31:45 -0500 Subject: [Thincrust-devel] Fedora 12 issues In-Reply-To: <6172c17e0912041740n120ce8c3t7c78cb44a27abe5f@mail.gmail.com> References: <6172c17e0912041346v4f8c33deu95948fefe9d41116@mail.gmail.com> <6172c17e0912041740n120ce8c3t7c78cb44a27abe5f@mail.gmail.com> Message-ID: <4B1D11D1.3030406@redhat.com> David Huff was looking into this. He is at Fudcon, and should be back tomorrow (ish). We can bug him then about pushing this fix out. -- bk On 12/04/2009 08:40 PM, Thomas S Hatch wrote: > Thanks, I will track it. > The parted issue appears to be that the partprobe process which happens > after the loopback mount is failing. This is a legitimate reason for > parted to fail, since some usermode tools will be unable to properly > read kernel device table. > > But since this problem does not seem to hinder appliance-creator then, I > would argue, the return code (1) should be accepted. > > The typo in the error message is just bunk, this should be fixed. > > But for now, commenting out those lines worked. > > -Thomas Hatch > > On Fri, Dec 4, 2009 at 5:35 PM, Jared Smith > wrote: > > On Fri, Dec 4, 2009 at 4:46 PM, Thomas S Hatch > wrote: > > I am having an issue with appliance-creator and fedora 12. when > I attempt > > to make any appliance it spits out a python error: > > You're not the only one... > > > Any idea what is going on? Is this a known bug? > > I have a *bit* of a clue as to what's happening. Something changed > with regards to the way parted handles drives after it's changed the > partition tables. The appliance-creator program doesn't like the > return value from parted, so it throws an error. Unfortunately, > there's a typo in the line that gets printed to tell you there's an > error, so it throws even more errors. > > Someone else on the list (who I'm sure is much more clueful than I am) > said he was looking at this a few days ago, but I haven't seen any > follow-up on it. In the meantime, I've got an open bug in bugzilla > (525900) which documents the typo, but not what changed with regards > to parted. > > -Jared Smith > > _______________________________________________ > Thincrust-devel mailing list > Thincrust-devel at redhat.com > https://www.redhat.com/mailman/listinfo/thincrust-devel > > > > > _______________________________________________ > Thincrust-devel mailing list > Thincrust-devel at redhat.com > https://www.redhat.com/mailman/listinfo/thincrust-devel From dhuff at redhat.com Tue Dec 8 22:28:30 2009 From: dhuff at redhat.com (David Huff) Date: Tue, 08 Dec 2009 17:28:30 -0500 Subject: [Thincrust-devel] Fedora 12 issues In-Reply-To: <4B1D11D1.3030406@redhat.com> References: <6172c17e0912041346v4f8c33deu95948fefe9d41116@mail.gmail.com> <6172c17e0912041740n120ce8c3t7c78cb44a27abe5f@mail.gmail.com> <4B1D11D1.3030406@redhat.com> Message-ID: <4B1ED30E.9080507@redhat.com> On 12/07/2009 09:31 AM, Bryan Kearney wrote: > David Huff was looking into this. He is at Fudcon, and should be back > tomorrow (ish). We can bug him then about pushing this fix out. > > -- bk I took another look at it this afternoon it does not look a issue with appliance tools, rather a problem with the loop module. I also confirmed that commenting out those two lines is a good work around for now, however I will try to get someone form the kernel team to look at it tomorrow. -D From dhuff at redhat.com Tue Dec 15 14:55:00 2009 From: dhuff at redhat.com (David Huff) Date: Tue, 15 Dec 2009 09:55:00 -0500 Subject: [Thincrust-devel] Fedora 12 issues In-Reply-To: <4B1ED30E.9080507@redhat.com> References: <6172c17e0912041346v4f8c33deu95948fefe9d41116@mail.gmail.com> <6172c17e0912041740n120ce8c3t7c78cb44a27abe5f@mail.gmail.com> <4B1D11D1.3030406@redhat.com> <4B1ED30E.9080507@redhat.com> Message-ID: <4B27A344.5030504@redhat.com> On 12/08/2009 05:28 PM, David Huff wrote: > On 12/07/2009 09:31 AM, Bryan Kearney wrote: >> David Huff was looking into this. He is at Fudcon, and should be back >> tomorrow (ish). We can bug him then about pushing this fix out. >> >> -- bk > > > I took another look at it this afternoon it does not look a issue with > appliance tools, rather a problem with the loop module. I also > confirmed that commenting out those two lines is a good work around for > now, however I will try to get someone form the kernel team to look at > it tomorrow. > > -D In case you guys have not seen the bugzilla, We reported a bug on parted and the next build should have a real fix for this. https://bugzilla.redhat.com/show_bug.cgi?id=525900 -D From mike at intello.com Wed Dec 23 22:49:54 2009 From: mike at intello.com (Mike Schmidt) Date: Wed, 23 Dec 2009 17:49:54 -0500 Subject: [Thincrust-devel] unable to access thincrust.net Message-ID: <4B329E92.4030606@intello.com> Hi, Is there something going on with thincrust.net and thincrust.org? I have been unable to reach these sites for the last few days and dns seems unable to resolve the names even. Have they been replaced with something else? Thanks, Mike -------------- next part -------------- A non-text attachment was scrubbed... Name: mike.vcf Type: text/x-vcard Size: 398 bytes Desc: not available URL: From apevec at gmail.com Wed Dec 23 23:47:48 2009 From: apevec at gmail.com (Alan Pevec) Date: Thu, 24 Dec 2009 00:47:48 +0100 Subject: [Thincrust-devel] unable to access thincrust.net In-Reply-To: <4B329E92.4030606@intello.com> References: <4B329E92.4030606@intello.com> Message-ID: <2be7262f0912231547le066a40rfb4bc83b9dd0bc12@mail.gmail.com> Hi, On Wed, Dec 23, 2009 at 11:49 PM, Mike Schmidt wrote: > Is there something going on with thincrust.net and thincrust.org? I have > been unable to reach these sites for the last few days and dns seems unable > to resolve the names even. Have they been replaced with something else? hosting machine was moved to the new data centre and got new IP and DNS update got stuck somewhere, we're working on it. In the meantime, you can reach the site via alias http://thincrust.et.redhat.com/ Cheers, Alan From mike at intello.com Thu Dec 24 00:24:41 2009 From: mike at intello.com (Mike Schmidt) Date: Wed, 23 Dec 2009 19:24:41 -0500 Subject: [Thincrust-devel] unable to access thincrust.net In-Reply-To: <2be7262f0912231547le066a40rfb4bc83b9dd0bc12@mail.gmail.com> References: <4B329E92.4030606@intello.com> <2be7262f0912231547le066a40rfb4bc83b9dd0bc12@mail.gmail.com> Message-ID: <4B32B4C9.3000906@intello.com> Excellent. Thank you very much. Merry Christmas! Mike Alan Pevec wrote: > Hi, > > On Wed, Dec 23, 2009 at 11:49 PM, Mike Schmidt wrote: > >> Is there something going on with thincrust.net and thincrust.org? I have >> been unable to reach these sites for the last few days and dns seems unable >> to resolve the names even. Have they been replaced with something else? >> > > hosting machine was moved to the new data centre and got new IP and > DNS update got stuck somewhere, we're working on it. > In the meantime, you can reach the site via alias > http://thincrust.et.redhat.com/ > > Cheers, > Alan > > _______________________________________________ > Thincrust-devel mailing list > Thincrust-devel at redhat.com > https://www.redhat.com/mailman/listinfo/thincrust-devel > -------------- next part -------------- A non-text attachment was scrubbed... Name: mike.vcf Type: text/x-vcard Size: 398 bytes Desc: not available URL: From bkearney at redhat.com Thu Dec 24 14:06:46 2009 From: bkearney at redhat.com (Bryan Kearney) Date: Thu, 24 Dec 2009 09:06:46 -0500 Subject: [Thincrust-devel] unable to access thincrust.net In-Reply-To: <4B32B4C9.3000906@intello.com> References: <4B329E92.4030606@intello.com> <2be7262f0912231547le066a40rfb4bc83b9dd0bc12@mail.gmail.com> <4B32B4C9.3000906@intello.com> Message-ID: <4B337576.9070105@redhat.com> It worked for a while, but I moved it to an internal DNS management system. I will put in a request to get i fixed. -- bk On 12/23/2009 07:24 PM, Mike Schmidt wrote: > Excellent. Thank you very much. > > Merry Christmas! > > Mike > > Alan Pevec wrote: >> Hi, >> >> On Wed, Dec 23, 2009 at 11:49 PM, Mike Schmidt wrote: >>> Is there something going on with thincrust.net and thincrust.org? I have >>> been unable to reach these sites for the last few days and dns seems >>> unable >>> to resolve the names even. Have they been replaced with something else? >> >> hosting machine was moved to the new data centre and got new IP and >> DNS update got stuck somewhere, we're working on it. >> In the meantime, you can reach the site via alias >> http://thincrust.et.redhat.com/ >> >> Cheers, >> Alan >> >> _______________________________________________ >> Thincrust-devel mailing list >> Thincrust-devel at redhat.com >> https://www.redhat.com/mailman/listinfo/thincrust-devel > > > _______________________________________________ > Thincrust-devel mailing list > Thincrust-devel at redhat.com > https://www.redhat.com/mailman/listinfo/thincrust-devel From mgoldman at redhat.com Wed Dec 30 21:35:40 2009 From: mgoldman at redhat.com (Marek Goldmann) Date: Wed, 30 Dec 2009 22:35:40 +0100 Subject: [Thincrust-devel] bug in appliance-creator Message-ID: Hi, I found a bug in appliance-creator, exactly in appcreate/appliance.py, line 234: 230 for v in versions: 231 grub += "title %s (%s)\n" % (self.name, v) 232 grub += " root (hd0,%d)\n" % bootdevnum 233 grub += " kernel %s/vmlinuz-%s ro root=%s %s\n" % (prefix, v, rootdev, options) 234 grub += " initrd %s/initrd-%s.img\n" % (prefix, v) 235 236 logging.debug("Writing grub config %s/boot/grub/grub.conf" % self._instroot) 237 cfg = open(self._instroot + "/boot/grub/grub.conf", "w") 238 cfg.write(grub) 239 cfg.close() Fedora 12 is using dracut to generate initrd files and initrd is a wrong name for those files from now. The new name is initramfs, so line 234 should look like: 234 grub += " initrd %s/initramfs-%s.img\n" % (prefix, v) Reported here: https://bugzilla.redhat.com/show_bug.cgi?id=551469 Bleh, I searched this for two days ? there was no error, only blank screen and freeze. --Marek