Hide Forgot
Created attachment 559164 [details] imagefactory log Description of problem: recreate: 1. build RHEL5.7 twice original template for #1 <template> <name>RHEL5_VMWareTools</name> <os> <name>RHEL-5</name> <version>U7</version> <arch>x86_64</arch> <rootpw>asdf</rootpw> <install type="url"> <url>http://download.lab.bos.redhat.com/released/RHEL-5-Server/U7/x86_64/os/Server/</url> </install> </os> <description>RHEL57 x86_64 and VMWareTools</description> <repositories> <repository name='vmwareTools'> <url>http://packages.vmware.com/tools/esx/4.1u1/rhel5/x86_64</url> <signed>False</signed> </repository> <repository name='RHEL-5'> <url>http://download.lab.bos.redhat.com/released/RHEL-5-Server/U7/x86_64/os/Server/</url> <signed>False</signed> </repository> </repositories> <packages> <package name='vmware-open-vm-tools-nox'/> </packages> </template> ########################################### [root@qeblade30 ~]# aeolus-image build --target vsphere --template wes01RHEL57vmwareTools.tpl Image Build Target Image Target Status ------------------------------------ ------------------------------------ ------------------------------------ ------- -------- e6f272fe-53a1-44c8-bbf1-41b4333b37c8 85c488b2-cb46-40d7-a28b-8f47cc67300b 4d4cb0fe-3ac6-4d2a-8af2-ed3a729f1631 vsphere BUILDING factory just hangs it will make more sense if you check the log.. The URL in the first build was diff than the second. It may or may not have caused the issue
So.. I dont think you can build RHEL5.7 w/ a repo<url> it will always fail either during install or customization I think this url is invalid.. will fail at install 404.. cant find boot iso.. <url>http://download.lab.bos.redhat.com/released/RHEL-5-Server/U7/x86_64/os/</url> This will fail during customization <url>http://download.lab.bos.redhat.com/released/RHEL-5-Server/U7/x86_64/os/Server/</url>
looks like Ian posted a fix for the locking issue... https://github.com/aeolusproject/imagefactory/pull/69 We still have an issue w/ RHEL57.. probably should be tracked in a diff bug
Yeah. So, I don't believe the 5.7 issue is a factory bug. I was able to build with: <url>http://download.lab.bos.redhat.com/released/RHEL-5-Server/U7/x86_64/os/</url> However, that URL _cannot_ be used as a repo location because it isn't one. Unlike RHEL6, there's no "repodata" directory at the root of a RHEL5 install tree. For customization you must include things like this in the repo section: http://download.lab.bos.redhat.com/released/RHEL-5-Server/U7/x86_64/os/Server/
ok.. well that makes sense.. now we need to figure out if katello can export a RHEL 5 template in that way... hopefully it can
I just spoke with the yum folks and got some ideas. Long story short ... we need to iterate through each package and check the exit code. Alternatively, I can provide a small bash (or python) script to do the right thing when given a list of packages.
I strongly suspect that James meant for the comment above to be made against 785225: https://bugzilla.redhat.com/show_bug.cgi?id=785225
Ugh, yes that's true ... please disregard comment#5. Apologies for the noise.
So, based on comments 1-4, I believe this is notabug. Closing as such. If anyone disagrees, please reopen.