Bug 749088 - 'Failed to find root/Administrator password in TDL" error in aeolus-image build
Summary: 'Failed to find root/Administrator password in TDL" error in aeolus-image build
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: rubygem-aeolus-image
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
Assignee: Petr Blaho
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-26 06:32 UTC by Aziza Karol
Modified: 2012-08-30 17:18 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Aziza Karol 2011-10-26 06:32:57 UTC
Description of problem:


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


How reproducible:


Steps to Reproduce:
[root@dell-pesc430-03 templates]# aeolus-image build --target ec2 --template fedora15_template.tpl 
/usr/lib/ruby/gems/1.8/gems/activeresource-3.0.10/lib/active_resource/connection.rb:147:in `handle_response': Failed.  Response code = 500.  Response message = Internal Server Error. (ActiveResource::ServerError)
	from /usr/lib/ruby/gems/1.8/gems/activeresource-3.0.10/lib/active_resource/connection.rb:114:in `request'
	from /usr/lib/ruby/gems/1.8/gems/activeresource-3.0.10/lib/active_resource/connection.rb:97:in `post'
	from /usr/lib/ruby/gems/1.8/gems/activeresource-3.0.10/lib/active_resource/connection.rb:217:in `with_auth'
	from /usr/lib/ruby/gems/1.8/gems/activeresource-3.0.10/lib/active_resource/connection.rb:97:in `post'
	from /usr/lib/ruby/gems/1.8/gems/activeresource-3.0.10/lib/active_resource/base.rb:1314:in `create_without_notifications'
	from /usr/lib/ruby/gems/1.8/gems/activeresource-3.0.10/lib/active_resource/observing.rb:11:in `create'
	from /usr/lib/ruby/gems/1.8/gems/activeresource-3.0.10/lib/active_resource/base.rb:1117:in `save_without_validation'
	from /usr/lib/ruby/gems/1.8/gems/activeresource-3.0.10/lib/active_resource/validations.rb:87:in `save_without_notifications'
	from /usr/lib/ruby/gems/1.8/gems/activeresource-3.0.10/lib/active_resource/observing.rb:11:in `save'
	from /usr/lib/ruby/gems/1.8/gems/activeresource-3.0.10/lib/active_resource/base.rb:1134:in `save!'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/lib/aeolus_cli/command/build_command.rb:37:in `run'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/lib/aeolus_cli/command/config_parser.rb:220:in `build'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/lib/aeolus_cli/command/config_parser.rb:38:in `send'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/lib/aeolus_cli/command/config_parser.rb:38:in `process'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/bin/aeolus-image:20
	from /usr/bin/aeolus-image:19:in `load'
	from /usr/bin/aeolus-image:19

  
imagefactory.log:
2011-10-26 02:26:31,392 DEBUG paste.httpserver.ThreadPool pid(13577) Message: Added task (0 tasks queued)
2011-10-26 02:27:14,512 DEBUG paste.httpserver.ThreadPool pid(13577) Message: Added task (0 tasks queued)
2011-10-26 02:27:14,558 INFO imgfac.rest.imagefactory pid(13577) Message: Request recieved with Content-Type (application/json)
2011-10-26 02:27:14,559 DEBUG imgfac.rest.imagefactory pid(13577) Message: returning {u'targets': u'ec2', u'template': u'<template>\n  <name>Fedora 15</name>\n  <description>desc</description>\n  <os>\n    <name>Fedora</name>\n    <arch>x86_64</arch>\n    <version>15</version>\n    <install type="url">\n      <url>http://download.fedoraproject.org/pub/fedora/linux/releases/15/Fedora/x86_64/os/</url>\n    </install>\n  </os>\n  <repositories>\n    <repository name="custom">\n      <url>http://repos.fedorapeople.org/repos/aeolus/demo/webapp/</url>\n      <signed>false</signed>\n    </repository>\n  </repositories>\n</template>'}
2011-10-26 02:27:14,559 DEBUG imgfac.rest.imagefactory pid(13577) Message: Starting 'build' process...
2011-10-26 02:27:14,560 DEBUG imgfac.ImageWarehouse.ImageWarehouse pid(13577) Message: Created Image Warehouse instance http://localhost:9090 - buckets(target_images, templates, icicles, provider_images)
2011-10-26 02:27:14,562 INFO imgfac.ImageWarehouse.ImageWarehouse pid(13577) Message: Creating a bucket returned status (500), .
2011-10-26 02:27:14,591 DEBUG imgfac.ImageWarehouse.ImageWarehouse pid(13577) Message: Setting metadata ({'object_type': 'image', 'uuid': '282bc078-101d-4408-aa0a-d2d6e6d7bea6'}) for http://localhost:9090/images/282bc078-101d-4408-aa0a-d2d6e6d7bea6
2011-10-26 02:27:14,599 INFO imgfac.ImageWarehouse.ImageWarehouse pid(13577) Message: Creating a bucket returned status (500), .
2011-10-26 02:27:14,604 DEBUG imgfac.ImageWarehouse.ImageWarehouse pid(13577) Message: Setting metadata ({'image': '282bc078-101d-4408-aa0a-d2d6e6d7bea6', 'object_type': 'build', 'uuid': '23fe14d9-2c63-4a57-83ac-52dd7ff3ad5d'}) for http://localhost:9090/builds/23fe14d9-2c63-4a57-83ac-52dd7ff3ad5d
2011-10-26 02:27:14,614 DEBUG imgfac.ImageWarehouse.ImageWarehouse pid(13577) Message: Created Image Warehouse instance http://localhost:9090 - buckets(target_images, templates, icicles, provider_images)
2011-10-26 02:27:14,616 ERROR imgfac.rest.imagefactory pid(13577) Message: Failed to find root/Administrator password in TDL
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/imgfac/rest/imagefactory.py", line 118, in build_image
    jobs = BuildDispatcher().build_image_for_targets(image_id, None, template, targets.split(','))
  File "/usr/lib/python2.7/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.7/site-packages/imgfac/BuildJob.py", line 49, in __init__
    self._builder = self._get_builder()
  File "/usr/lib/python2.7/site-packages/imgfac/BuildJob.py", line 104, in _get_builder
    return builder_class(self.template, self.target)
  File "/usr/lib/python2.7/site-packages/imgfac/builders/Fedora_ec2_Builder.py", line 96, in __init__
    self.tdlobj = oz.TDL.TDL(xmlstring=self.template.xml, rootpw_required=True)
  File "/usr/lib/python2.7/site-packages/oz/TDL.py", line 179, in __init__
    optional=not rootpw_required)
  File "/usr/lib/python2.7/site-packages/oz/TDL.py", line 51, in get_value
    raise oz.OzException.OzException("Failed to find %s in TDL" % (component))
OzException: Failed to find root/Administrator password in TDL




Additional info:
[root@dell-pesc430-03 templates]# rpm -qa |egrep  'iwhd|imagefactory|aeolus'
aeolus-conductor-doc-0.5.0-0.20111025005411git5ff5abd.fc15.noarch
imagefactory-0.8.0-1.fc15.noarch
rubygem-aeolus-image-0.1.0-4.20111024205454git6b2b696.fc15.noarch
imagefactory-jeosconf-ec2-fedora-0.8.0-1.fc15.noarch
aeolus-configure-2.2.0-1.20111024205543gitf9232cc.fc15.noarch
aeolus-conductor-0.5.0-0.20111025005411git5ff5abd.fc15.noarch
imagefactory-jeosconf-ec2-rhel-0.8.0-1.fc15.noarch
rubygem-aeolus-cli-0.1.0-3.20111024205439gitc3aa990.fc15.noarch
aeolus-conductor-daemons-0.5.0-0.20111025005411git5ff5abd.fc15.noarch
iwhd-0.991-1.fc15.x86_64
rubygem-imagefactory-console-0.5.0-4.20110824113238gitd9debef.fc15.noarch
aeolus-all-0.5.0-0.20111025005411git5ff5abd.fc15.noarch

Comment 1 Jason Guiditta 2011-10-26 14:48:16 UTC
This is actually just documentation.  Due to some change (not sure where), Martyn changed the sample in /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/examples/custom_repo.tdl.  The 'os' section should now look like this:

<os>
    <rootpw>password</rootpw>
    <name>Fedora</name>
    <arch>x86_64</arch>
    <version>14</version>
    <install type="url">
      <url>http://download.fedoraproject.org/pub/fedora/linux/releases/14/Fedora/x86_64/os/</url>
    </install>
  </os>


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