Bug 794723

Summary: No module named Rhel_ec2_Builder : Building with Rhel template
Product: [Retired] CloudForms Cloud Engine Reporter: Shveta <ssachdev>
Component: aeolus-conductorAssignee: Angus Thomas <athomas>
Status: CLOSED NOTABUG QA Contact: wes hayutin <whayutin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: akarol, deltacloud-maint, jlaska, ssachdev
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-02-17 15:04:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Shveta 2012-02-17 12:22:42 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.aeolus-image build --target ec2 --template Rhel6_1.tpl 

ERROR:  Service Temporarily Unavailable => Please check that Conductor is running.

2. Template used is as below.. anything wrong?
3.
  
Actual results:


Expected results:


Additional info:

==================================template Used=================

<?xml version="1.0"?>
<template>
  <name>Rhel6.1</name>
  <description>desc</description>
  <os>
    <rootpw>password</rootpw>
    <name>Rhel</name>
    <arch>x86_64</arch>
    <version>6.1</version>
    <install type="url">
      <url>http://download.devel.redhat.com/released/RHEL-6/6.1/Server/x86_64/os/</url>
    </install>
  </os>
  <repositories>
    <repository name="custom">
      <url>http://repos.fedorapeople.org/repos/aeolus/demo/webapp/</url>
      <signed>false</signed>
    </repository>
  </repositories>
</template>



================================== In Logs =======================
0c-bb55-531c739035e0
2012-02-17 07:17:54,165 DEBUG imgfac.ImageWarehouse.ImageWarehouse thread(worker 2) Message: Image Warehouse returned status (500) with message: 
2012-02-17 07:17:54,165 INFO imgfac.ImageWarehouse.ImageWarehouse thread(worker 2) Message: Creating a bucket returned status (500), .
2012-02-17 07:17:54,167 DEBUG imgfac.ImageWarehouse.ImageWarehouse thread(worker 2) Message: Setting metadata ({'object_type': 'image', 'uuid': '61d1e5d3-4ff2-4f5b-8838-d56cd089565c', 'template': '7eadb074-5265-4d0c-bb55-531c739035e0'}) for http://localhost:9090/images/61d1e5d3-4ff2-4f5b-8838-d56cd089565c
2012-02-17 07:17:54,290 DEBUG imgfac.ImageWarehouse.ImageWarehouse thread(worker 2) Message: Image Warehouse returned status (500) with message: 
2012-02-17 07:17:54,290 INFO imgfac.ImageWarehouse.ImageWarehouse thread(worker 2) Message: Creating a bucket returned status (500), .
2012-02-17 07:17:54,293 DEBUG imgfac.ImageWarehouse.ImageWarehouse thread(worker 2) Message: Setting metadata ({'timestamp': '1329481074.29', 'image': '61d1e5d3-4ff2-4f5b-8838-d56cd089565c', 'object_type': 'build', 'uuid': 'aa54cf0d-943d-41b1-aaf2-9bd186e49011'}) for http://localhost:9090/builds/aa54cf0d-943d-41b1-aaf2-9bd186e49011
2012-02-17 07:17:54,457 ERROR imgfac.rest.imagefactory thread(worker 2) Message: No module named Rhel_ec2_Builder
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/imgfac/rest/imagefactory.py", line 118, in build_image
    jobs = BuildDispatcher().build_image_for_targets(image_id, build_id, template, targets.split(','))
  File "/usr/lib/python2.6/site-packages/imgfac/BuildDispatcher.py", line 61, in build_image_for_targets
    job = job_cls(template, target, image_id, build_id, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/imgfac/BuildJob.py", line 60, in __init__
    self._builder = self._get_builder()
  File "/usr/lib/python2.6/site-packages/imgfac/BuildJob.py", line 141, in _get_builder
    __import__(module_name)
ImportError: No module named Rhel_ec2_Builder

Comment 1 James Laska 2012-02-17 15:02:22 UTC
In the TDL used, I think it should be:

  <name>RHEL-6</name>
  <version>1</version>

Does that change your results?

Comment 2 wes hayutin 2012-02-17 15:04:37 UTC
bad template