Bug 769938

Summary: Imagefactory building for vsphere,condorcloud and rhevm FAILED
Product: [Retired] CloudForms Cloud Engine Reporter: Martin Kočí <mkoci>
Component: imagefactoryAssignee: Ian McLeod <imcleod>
Status: CLOSED ERRATA QA Contact: Martin Kočí <mkoci>
Severity: low Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: akarol, brad, dajohnso, deltacloud-maint, dgao, jrd, ssachdev, whayutin
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-15 20:21:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Log from the build_image.py test none

Description Martin Kočí 2011-12-22 19:37:08 UTC
Created attachment 549232 [details]
Log from the build_image.py test

Description of problem:
Even for url or for iso install type I'm getting FAILED for building via imagefactory with the following error log.
2011-12-22 13:26:58,679 DEBUG imgfac.ImageWarehouse.ImageWarehouse pid(8114) Message: Created Image Warehouse instance http://localhost:9090 - buckets(target_images, templates, icicles, provider_images)
2011-12-22 13:26:58,679 DEBUG imgfac.ImageWarehouse.ImageWarehouse pid(8114) Message: Created Image Warehouse instance http://localhost:9090 - buckets(target_images, templates, icicles, provider_images)
2011-12-22 13:26:58,686 DEBUG imgfac.ImageWarehouse.ImageWarehouse pid(8114) Message: Image Warehouse returned status (500) with message: 
2011-12-22 13:26:58,686 INFO imgfac.ImageWarehouse.ImageWarehouse pid(8114) Message: Creating a bucket returned status (500), .
2011-12-22 13:26:58,690 DEBUG imgfac.ImageWarehouse.ImageWarehouse pid(8114) Message: Setting metadata ({'object_type': 'template', 'uuid': 'f1a362e6-7696-4cd4-a66d-2a2534a8743f'}) for http://localhost:9090/templates/f1a362e6-7696-4cd4-a66d-2a2534a8743f
2011-12-22 13:26:58,775 DEBUG imgfac.ImageWarehouse.ImageWarehouse pid(8114) Message: Image Warehouse returned status (500) with message: 
2011-12-22 13:26:58,776 INFO imgfac.ImageWarehouse.ImageWarehouse pid(8114) Message: Creating a bucket returned status (500), .
2011-12-22 13:26:58,779 DEBUG imgfac.ImageWarehouse.ImageWarehouse pid(8114) Message: Setting metadata ({'object_type': 'image', 'uuid': '8c799664-26d7-4234-b3dc-a55ae4668d96', 'template': 'f1a362e6-7696-4cd4-a66d-2a2534a8743f'}) for http://localhost:9090/images/8c799664-26d7-4234-b3dc-a55ae4668d96
2011-12-22 13:26:58,907 DEBUG imgfac.ImageWarehouse.ImageWarehouse pid(8114) Message: Image Warehouse returned status (500) with message: 
2011-12-22 13:26:58,907 INFO imgfac.ImageWarehouse.ImageWarehouse pid(8114) Message: Creating a bucket returned status (500), .
2011-12-22 13:26:58,911 DEBUG imgfac.ImageWarehouse.ImageWarehouse pid(8114) Message: Setting metadata ({'timestamp': '1324578418.91', 'image': '8c799664-26d7-4234-b3dc-a55ae4668d96', 'object_type': 'build', 'uuid': '39505d68-0a32-422a-afda-8a6645f25284'}) for http://localhost:9090/builds/39505d68-0a32-422a-afda-8a6645f25284
2011-12-22 13:26:59,285 DEBUG imgfac.ImageWarehouse.ImageWarehouse pid(8114) Message: Created Image Warehouse instance http://localhost:9090 - buckets(target_images, templates, icicles, provider_images)
2011-12-22 13:26:59,285 DEBUG imgfac.builders.BaseBuilder.RHEL6_condorcloud_Builder pid(8114) Message: build_upload() called on Fedora_condorcloud_Builder...
Building build 39505d68-0a32-422a-afda-8a6645f25284 of image 8c799664-26d7-4234-b3dc-a55ae4668d96 to target condorcloud
2011-12-22 13:26:59,286 DEBUG imgfac.builders.BaseBuilder.RHEL6_condorcloud_Builder pid(8114) Message: Building for target condorcloud with warehouse config http://localhost:9090/
2011-12-22 13:26:59,286 DEBUG imgfac.ReservationManager.ReservationManager pid(8114) Message: ENTERING queue: (local)
2011-12-22 13:26:59,287 DEBUG imgfac.ReservationManager.ReservationManager pid(8114) Message: SUCCESS ENTERING queue: (local)
2011-12-22 13:26:59,287 DEBUG imgfac.BuildJob.BuildJob pid(8114) Message: Builder (cc24c778-69b5-4543-a559-e6d86155125d) changed status from NEW to BUILDING
2011-12-22 13:26:59,288 DEBUG imgfac.builders.BaseBuilder.RHEL6_condorcloud_Builder pid(8114) Message2011-12-22 13:26:59,289 DEBUG imgfac.BuildJob.BuildJob pid(8114) Message: Builder (cc24c778-69b5-4543-a559-e6d86155125d) changed status from BUILDING to FAILED
: Found neither a call-time config nor a config file - doing nothing
2011-12-22 13:26:59,289 DEBUG imgfac.builders.BaseBuilder.RHEL6_condorcloud_Builder pid(8114) Message: Exception caught in ImageFactory
2011-12-22 13:26:59,289 DEBUG imgfac.builders.BaseBuilder.RHEL6_condorcloud_Builder pid(8114) Message: Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/imgfac/builders/Fedora_condorcloud_Builder.py", line 45, in build_image
    self.build_upload(build_id)
  File "/usr/lib/python2.6/site-packages/imgfac/builders/Fedora_condorcloud_Builder.py", line 72, in build_upload
    guest = oz.GuestFactory.guest_factory(self.tdlobj, oz_config, None)
  File "/usr/lib/python2.6/site-packages/oz/GuestFactory.py", line 86, in guest_factory
    raise oz.OzException.OzException("Unsupported " + tdl.distro + " update " + tdl.update)
OzException: Unsupported RHEL6 update 1

2011-12-22 13:26:59,289 DEBUG imgfac.BuildJob.BuildJob pid(8114) Message: Builder (cc24c778-69b5-4543-a559-e6d86155125d) changed status from BUILDING to FAILED
Exception in thread cc24c778-69b5-4543-a559-e6d86155125d.build_image():
Traceback (most recent call last):
  File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.6/site-packages/imgfac/builders/BaseBuilder.py", line 126, in __call__
    getattr(self, str().join(args))(**kwargs)
  File "/usr/lib/python2.6/site-packages/imgfac/builders/Fedora_condorcloud_Builder.py", line 45, in build_image
    self.build_upload(build_id)
  File "/usr/lib/python2.6/site-packages/imgfac/builders/Fedora_condorcloud_Builder.py", line 72, in build_upload
    guest = oz.GuestFactory.guest_factory(self.tdlobj, oz_config, None)
  File "/usr/lib/python2.6/site-packages/oz/GuestFactory.py", line 86, in guest_factory
    raise oz.OzException.OzException("Unsupported " + tdl.distro + " update " + tdl.update)
OzException: Unsupported RHEL6 update 1

Version-Release number of selected component (if applicable):
grep 'aeolus\|imagefactory-\|oz-\|iwhd'
oz-0.7.9-4.el6.noarch
rubygem-aeolus-image-0.2.0-1.el6.noarch
aeolus-all-0.8.0-0.20111220154105git4f380bf.el6.noarch
rubygem-rack-mount-0.7.1-3.aeolus.el6.noarch
rubygem-ZenTest-4.3.3-2.aeolus.el6.noarch
rubygem-aeolus-cli-0.2.0-3.el6.noarch
imagefactory-jeosconf-ec2-rhel-1.0.0rc1-1.el6.noarch
aeolus-conductor-doc-0.8.0-0.20111220154105git4f380bf.el6.noarch
rubygem-arel-2.0.10-0.aeolus.el6.noarch
iwhd-1.1-2.el6.x86_64
imagefactory-jeosconf-ec2-fedora-1.0.0rc1-1.el6.noarch
aeolus-conductor-daemons-0.8.0-0.20111220154105git4f380bf.el6.noarch
rubygem-imagefactory-console-0.5.0-4.20110824113238gitd9debef.el6.noarch
aeolus-configure-2.5.0-0.20111220094137git3d8c09b.el6.noarch
imagefactory-1.0.0rc1-1.el6.noarch
aeolus-conductor-0.8.0-0.20111220154105git4f380bf.el6.noarch
# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.2 (Santiago)
# uname -a
Linux qeblade22.rhq.lab.eng.bos.redhat.com 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

How reproducible:
always

Steps to Reproduce:
1. Create template as follow.
    <template>
      <name>tester</name>
      <os>
        <name>RHEL6</name>
        <version>1</version>
        <arch>x86_64</arch>
        <install type='iso'>
          <iso>http://download.devel.redhat.com/nightly/latest-RHEL6.1/6/Server/x86_64/iso/RHEL6.1-20110510.1-Server-x86_64-DVD1.iso</iso>
        </install>
        <rootpw>redhat</rootpw>
      </os>
    </template>
2. run imagefactory --debug --target {condorcloud,rhevm,vsphere} --template template.tdl

Actual results:
Build FAILED

Expected results:
Build COMPLETED

Additional info:
For further info you can run build_image.py test from http://hudson.rhq.lab.eng.bos.redhat.com:8080/hudson/view/DEV-CloudForms/job/ImageFactory-KocaTesting2/ or check the attached log from this tests out where you can see all log from this test.

Comment 2 wes hayutin 2012-01-06 15:36:49 UTC
not sure if the factory team will support this bug as we are not shipping support for condorcloud.. I'll let them look at the bug and decide.
Thanks

Comment 3 wes hayutin 2012-01-12 16:31:53 UTC
adding to ce-sprint

Comment 4 wes hayutin 2012-01-12 16:39:00 UTC
removing ce-sprint-next tracker

Comment 5 jrd 2012-01-16 16:44:52 UTC
This stays on 1.0 list for now, but is a candidate for post-1.0 if we run out of time.

Comment 6 Ian McLeod 2012-01-25 19:41:22 UTC
I cannot reproduce this.  I successfully build RHEL6 Update 1 for a condorcloud target this morning.

Can you try this again with the latest bits?

Comment 8 Martin Kočí 2012-01-27 17:36:21 UTC
successfully build with 
# rpm -qa|grep 'aeolus\|imagefactory-\|oz-\|iwhd'
iwhd-1.1-2.el6.x86_64
aeolus-conductor-doc-0.9.0-0.20120118181603git71cd8bc.el6.noarch
aeolus-all-0.9.0-0.20120118181603git71cd8bc.el6.noarch
rubygem-imagefactory-console-0.5.0-4.20110824113238gitd9debef.el6.noarch
aeolus-conductor-daemons-0.9.0-0.20120118181603git71cd8bc.el6.noarch
imagefactory-1.0.0rc1-1.el6.noarch
rubygem-arel-2.0.10-0.aeolus.el6.noarch
rubygem-rack-mount-0.7.1-3.aeolus.el6.noarch
rubygem-ZenTest-4.3.3-2.aeolus.el6.noarch
rubygem-aeolus-image-0.4.0-0.20120118121635git0d31a37.el6.noarch
rubygem-aeolus-cli-0.4.0-0.20120118121626git6fddd65.el6.noarch
aeolus-configure-2.6.0-0.20120118121620gita996371.el6.noarch
imagefactory-jeosconf-ec2-rhel-1.0.0rc1-1.el6.noarch
aeolus-conductor-0.9.0-0.20120118181603git71cd8bc.el6.noarch
imagefactory-jeosconf-ec2-fedora-1.0.0rc1-1.el6.noarch
oz-0.8.0-0.20111219203204git5775e9d.el6.noarch

on rhel62
I have built rhel61 as well as rhel62.
Moving bug to verified.

Comment 9 errata-xmlrpc 2012-05-15 20:21:32 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-0588.html