Description of problem: ============================= Building image through imagefactory shows no rhel 6.2 support in oz. 2011-10-27 13:20:55,959 DEBUG imgfac.builders.BaseBuilder.RHEL6_rhevm_Builder pid(8949) Message: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/imgfac/builders/Fedora_rhevm_Builder.py", line 65, in build_image self.build_upload(build_id) File "/usr/lib/python2.7/site-packages/imgfac/builders/Fedora_rhevm_Builder.py", line 92, in build_upload guest = oz.GuestFactory.guest_factory(self.tdlobj, oz_config, None) File "/usr/lib/python2.7/site-packages/oz/GuestFactory.py", line 80, in guest_factory raise oz.OzException.OzException("Unsupported " + tdl.distro + " update " + tdl.update) OzException: Unsupported RHEL-6 update 2 <template> <name>rhel6_2_x86_64_with_rhev-agent</name> <os> <name>RHEL-6</name> <version>2</version> <arch>x86_64</arch> <install type='iso'> <iso>http://download.devel.redhat.com/rel-eng/RHEL6.2-20111026.2/6.2/Server/x86_64/iso/RHEL6.2-20111026.2-Server-x86_64-DVD1.iso</iso> </install> <rootpw>redhat</rootpw> </os> <description>rhel 6.2 x86_64 template with rhev v3.0 agent pkg</description> <packages> <package name='rhev-agent'/> </packages> <repositories> <repository name="rhev-agent"> <url>http://download.devel.redhat.com/rel-eng/rhev3-internal-beta-latest/</url> <signed>false</signed> </repository> </repositories> </template> Version-Release number of selected component (if applicable): ================================================================= imagefactory-jeosconf-ec2-rhel-0.8.0-1.fc15.noarch oz-0.7.0-3.fc15.noarch imagefactory-0.8.0-1.fc15.noarch rubygem-imagefactory-console-0.5.0-4.20110824113238gitd9debef.fc15.noarch imagefactory-jeosconf-ec2-fedora-0.8.0-1.fc15.noarch
building with the following did work <os> <name>RHEL-6</name> <version>1</version> <arch>x86_64</arch> <install type='iso'> <iso>http://download.devel.redhat.com/rel-eng/RHEL6.2-20111026.2/6.2/Server/x86_64/iso/RHEL6.2-20111026.2-Server-x86_64-DVD1.iso</iso>
OzException: Unsupported RHEL-5 update 7 as well
OzException: Unsupported RHEL-5 update 1 OzException: Unsupported RHEL-5 update 3 OzException: Unsupported RHEL-5 update 5
Created attachment 530674 [details] 5.7 install failure I trying to work around the exception by using 6.1 in the template (much like what I did to get around no 6.2 support) and this is what I hit
Please remove restrictions on what can be built... we will test the various incantations.
Created attachment 531365 [details] 0001-Add-RHEL-6-U2-unittests.patch Attaching updated oz unittest to cover this situation
Created attachment 531368 [details] 0001-Add-RHEL-6-Update-2-support-and-update-unittests.patch Proposed fix to resolve RHEL-6 2 failure, also updates unittests. Looking at the code, RHEL-[45] require an update string format of "U[0-9]". It does not appear that RHEL-[45] supports a single digit update like RHEL-6 does. This can be changed, but I'll leave that to devel for guidance.
James pointed out that the rhel-5, dot release versions require a prefix of 'U'. That is not intuitive and is not consistent with rhel-6. Opened a separate bug (bug 750909) to track getting this consistent. <template> <name>rhel5_7_x86_64</name> <os> <name>RHEL-5</name> <version>U7</version> <arch>x86_64</arch> <install type='iso'> <iso>./RHEL5.7-Server-20110711.5-x86_64-DVD.iso</iso> </install> <rootpw>redhat</rootpw> </os> <description>rhel 5.7 x86_64 template</description> </template>
moving back on to the tracker to be tested w/ vmware and rhevm
I have cut an updated Oz RPM to address this. It can be found here: http://repos.fedorapeople.org/repos/aeolus/imagefactory/testing/oz-0.7.9-4.fc14.src.rpm Switching to ON_QA
Waiting for updated oz rpm in brew repo, reaching out to dev to get the update
removing bugs from ce-sprint from the tracker.. you can find these bugs by querying the "qa whiteboard" for ce-sprint-60
good 2 go, imagefactory (oz) successfully built with a <template> <name>rhel6_2_x86_64_with_rhev-agent</name> <os> <name>RHEL-6</name> <version>2</version>
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2012-0590.html