Bug 749622 - OzException: Unsupported RHEL-6 update 2
Summary: OzException: Unsupported RHEL-6 update 2
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: oz
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
Assignee: Ian McLeod
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-27 17:28 UTC by Dave Johnson
Modified: 2012-05-15 19:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-15 19:54:46 UTC
Embargoed:


Attachments (Terms of Use)
5.7 install failure (5.93 KB, image/png)
2011-10-28 14:43 UTC, Dave Johnson
no flags Details
0001-Add-RHEL-6-U2-unittests.patch (805 bytes, patch)
2011-11-02 14:50 UTC, James Laska
no flags Details | Diff
0001-Add-RHEL-6-Update-2-support-and-update-unittests.patch (1.22 KB, patch)
2011-11-02 15:04 UTC, James Laska
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2012:0590 0 normal SHIPPED_LIVE new packages: oz 2012-05-15 22:31:20 UTC

Description Dave Johnson 2011-10-27 17:28:18 UTC
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

Comment 1 Dave Johnson 2011-10-28 01:41:15 UTC
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>

Comment 2 Dave Johnson 2011-10-28 03:00:01 UTC
OzException: Unsupported RHEL-5 update 7 as well

Comment 3 Dave Johnson 2011-10-28 03:19:20 UTC
OzException: Unsupported RHEL-5 update 1
OzException: Unsupported RHEL-5 update 3
OzException: Unsupported RHEL-5 update 5

Comment 4 Dave Johnson 2011-10-28 14:43:22 UTC
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

Comment 5 wes hayutin 2011-11-02 14:46:36 UTC
Please remove restrictions on what can be built... we will test the various incantations.

Comment 6 James Laska 2011-11-02 14:50:23 UTC
Created attachment 531365 [details]
0001-Add-RHEL-6-U2-unittests.patch

Attaching updated oz unittest to cover this situation

Comment 7 James Laska 2011-11-02 15:04:09 UTC
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.

Comment 8 Dave Johnson 2011-11-02 19:02:09 UTC
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>

Comment 9 wes hayutin 2011-11-16 13:44:17 UTC
moving back on to the tracker to be tested w/ vmware and rhevm

Comment 10 Ian McLeod 2011-11-17 18:18:58 UTC
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

Comment 11 Dave Johnson 2011-11-22 20:30:21 UTC
Waiting for updated oz rpm in brew repo, reaching out to dev to get the update

Comment 12 wes hayutin 2011-11-28 01:16:28 UTC
removing bugs from ce-sprint from the tracker.. you can find these bugs by querying the "qa whiteboard" for ce-sprint-60

Comment 13 Dave Johnson 2011-11-28 17:12:14 UTC
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>

Comment 15 errata-xmlrpc 2012-05-15 19:54:46 UTC
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


Note You need to log in before you can comment on or make changes to this bug.