Description of problem: Using the following template, I have successfully built and push to rehv and vmware individually using the following template. Pusing the image built when both were specified as targets yields errors on the push. <template> <name>fedora15_x86_64</name> <os> <name>Fedora</name> <version>15</version> <arch>x86_64</arch> <install type='iso'> <iso>http://refarch.cloud.lab.eng.bos.redhat.com/pub/kits/os/Fedora/15/x86_64/Fedora-15-x86_64-DVD.iso</iso> </install> </os> <description>My Fedora 15 x86_64 template</description> </template> [root@cf-cloudengine ~]# aeolus-image build --target rhev-m,vmware --template /pub/projects/cloudforms/files/f15-temp.xml Target Image: d544a7be-a1f2-48a5-accd-2a2e6ea96e3d Image: aba032c3-9abe-448f-9e42-efc1190c6b8f Build: f854b8ab-f9bb-40c2-8252-b1dfb64a125e Status: BUILDING Percent Complete: 0 Target Image: 92e1dfdc-3b5e-4076-8f45-1834229c5cfb Image: aba032c3-9abe-448f-9e42-efc1190c6b8f Build: f854b8ab-f9bb-40c2-8252-b1dfb64a125e Status: BUILDING Percent Complete: 0 [root@cf-cloudengine ~]# aeolus-image push --provider rhevm,vmware --id aba032c3-9abe-448f-9e42-efc1190c6b8f /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/push_command.rb:21:in `run': undefined method `each' for #<Qmf2::QmfAgentException:0x7f1f3e05aa50> (NoMethodError) from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/config_parser.rb:199:in `push' from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/config_parser.rb:30:in `send' from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/config_parser.rb:30:in `process' from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/bin/aeolus-image:6 from /usr/bin/aeolus-image:19:in `load' from /usr/bin/aeolus-image:19 2011-07-13 11:39:08 warning Connection [49372 localhost:5672] closed [root@cf-cloudengine ~]# imagefactory.log 2011-07-13 11:39:06,743 DEBUG imagefactory.qmfagent.ImageFactoryAgent.ImageFactoryAgent pid(8970) Message: Method called: name = push_image args = {'credentials': '<provider_accounts>\n<provider_account>\n<name>Ref ARch Vsphere Admin</name>\n<provider>vmware</provider>\n<provider_type>vsphere</provider_type>\n<provider_credentials>\n <vsphere_credentials>\n <password>100yard-</password>\n <username>Administrator</username>\n </vsphere_credentials>\n</provider_credentials>\n</provider_account>\n<provider_account>\n<name>AWS US EAST - spr</name>\n<provider>ec2-us-east-1</provider>\n<provider_type>ec2</provider_type>\n<provider_credentials>\n <ec2_credentials>\n <access_key>AKIAJOTSB3S4LTXYRPGA</access_key>\n <account_number>7785-6245-6303</account_number>\n <certificate>-----BEGIN PRIVATE KEY-----\nMIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAMrrTxM/rkSMyd7abFv+Gb11vO+T
\n3v8AupYGGZMfJDdxsqpJnyiPhzVMNVWjFRaBG5wJ0yVrh9wztwhyyeoPqbuzJpaocMcr1fNNuW5s
\nmm/K9VMn9FLERbVUpWhrehNVPQxT2cvgl1yBbGQz+7SjXo+ThLx7Sg9dIY+WizWuofL5AgMBAAEC
\ngYEAuRNRth641XELliTl/CmQVIsUXfcixrZld/vsS5F1uNQMvuATOC1ghq4RXyA1VadABVu4p0Ki
\nUachY6U+oCrVBOpDRBTS9qBt0kZfyBDahUQX2TyhAm5L+6fXRt8CRZpYALWWy9oCiD7kZVsY45im
\nvafjYbsU42kVb3icQvGzaAECQQD3X+hbi+cpAdxNFW7J9RSrfoXv6eDlFHl7J2ok2zJpbhRErs8y
\nlZIWc7Xui1gM6XbqjlCVckyxoi3DhagPZo6BAkEA0f6WSDRFnDXwskGweCh14RN4IoF+VndrpXgj
\n0VGFI1upuFT+v8dqQR39zhOGVqI6JhfLb78L7EruvsyplIyYeQJBAICzrF9c1YK3Thfoy8BVO1DS
\nPfsJcpGc6mtRoV7VkE/cDr2BOZm2yc/WmdQnOUNWgCEes/xdAFv25dpxAnQoxoECQFpt5c2GJQvV
\n9qbsvs+frNOWDL/fP8aAeqyxBcuX7VuCl523jFSNzWXpQ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E-----\n</key>\n <secret_access_key>zlJmtRbBc2IZpPmUwr327JrUhGRltUHGESXfBG3o</secret_access_key>\n </ec2_credentials>\n</provider_credentials>\n</provider_account>\n<provider_account>\n<name>refarch rhevm admin</name>\n<provider>rhevm</provider>\n<provider_type>rhevm</provider_type>\n<provider_credentials>\n <rhevm_credentials>\n <password>100yard-</password>\n <username>Administrator@CF-RHEVM</username>\n </rhevm_credentials>\n</provider_credentials>\n</provider_account>\n</provider_accounts>\n', 'image': 'aba032c3-9abe-448f-9e42-efc1190c6b8f', 'build': '', 'providers': ['rhevm', 'vmware']} handle = <cqmf2.AgentEvent; proxy of <Swig Object of type 'qmf::AgentEvent *' at 0x1f2cc90> > addr = redhat.com:imagefactory:8369d63a-9d11-430e-8cc9-098b56012830:image_factory subtypes = {} userId = anonymous 2011-07-13 11:39:06,743 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(8970) Message: Getting metadata (['latest_unpushed']) from http://localhost:9090/images/aba032c3-9abe-448f-9e42-efc1190c6b8f 2011-07-13 11:39:06,745 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(8970) Message: Querying (http://localhost:9090/target_images/_query) with expression ($build == "" && $target == "rhev-m") 2011-07-13 11:39:06,758 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(8970) Message: Getting metadata (['template']) from http://localhost:9090/target_images/None 2011-07-13 11:39:06,759 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(8970) Message: Created Image Warehouse instance http://localhost:9090 - buckets(target_images, templates, icicles, provider_images) 2011-07-13 11:39:06,759 ERROR imagefactory.qmfagent.ImageFactoryAgent.ImageFactoryAgent pid(8970) Message: 'template' must be a UUID, URL, XML string or XML document path... Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/imagefactory/qmfagent/ImageFactoryAgent.py", line 74, in method result = getattr(target_obj, methodName)(**args) File "/usr/lib/python2.6/site-packages/imagefactory/qmfagent/ImageFactory.py", line 125, in push_image return BuildDispatcher().push_image_to_providers(image, build, providers, credentials, BuildAdaptor, self.agent) File "/usr/lib/python2.6/site-packages/imagefactory/BuildDispatcher.py", line 78, in push_image_to_providers job = job_cls(template, target, image_id, build_id, *args, **kwargs) File "/usr/lib/python2.6/site-packages/imagefactory/qmfagent/BuildAdaptor.py", line 76, in __init__ super(BuildAdaptor, self).__init__(template, target, image_id, build_id) File "/usr/lib/python2.6/site-packages/imagefactory/BuildJob.py", line 42, in __init__ self.template = template if isinstance(template, Template) else Template(template) File "/usr/lib/python2.6/site-packages/imagefactory/Template.py", line 83, in __init__ raise ValueError("'template' must be a UUID, URL, XML string or XML document path...") ValueError: 'template' must be a UUID, URL, XML string or XML document path... Changing the order of the targets on the build and push did not seem to make a difference. [root@cf-cloudengine ~]# aeolus-image build --target vmware,rhev-m --template /pub/projects/cloudforms/files/f15-temp.xml ^C [root@cf-cloudengine ~]# aeolus-image push --provider vmware,rhevm --id 9337a717-7677-4a51-b636-4cfc290e926e /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/push_command.rb:21:in `run': undefined method `each' for #<Qmf2::QmfAgentException:0x7f2afa4595f8> (NoMethodError) from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/config_parser.rb:199:in `push' from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/config_parser.rb:30:in `send' from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/config_parser.rb:30:in `process' from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/bin/aeolus-image:6 from /usr/bin/aeolus-image:19:in `load' from /usr/bin/aeolus-image:19 2011-07-13 13:10:35 warning Connection [50070 localhost:5672] closed [root@cf-cloudengine ~]# Attempts to push only one image at a time also fails similarly. [root@cf-cloudengine ~]# aeolus-image build --target vmware,rhev-m --template /pub/projects/cloudforms/files/f15-temp.xml Target Image: dc81130c-899f-4e6a-8724-53f3809a71e3 Image: 59c0d7a7-6d80-4aa5-8af4-632294dc0148 Build: 0aa2a0fe-a427-4db0-b141-e4e9b60ed146 Status: BUILDING Percent Complete: 0 Target Image: e8f0443d-bd69-4562-9306-ee26c2fe90ec Image: 59c0d7a7-6d80-4aa5-8af4-632294dc0148 Build: 0aa2a0fe-a427-4db0-b141-e4e9b60ed146 Status: BUILDING Percent Complete: 0 [root@cf-cloudengine ~]# aeolus-image push --provider vmware --id 59c0d7a7-6d80-4aa5-8af4-632294dc0148 /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/push_command.rb:21:in `run': undefined method `each' for #<Qmf2::QmfAgentException:0x7fec452e4aa8> (NoMethodError) from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/config_parser.rb:199:in `push' from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/config_parser.rb:30:in `send' from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/config_parser.rb:30:in `process' from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/bin/aeolus-image:6 from /usr/bin/aeolus-image:19:in `load' from /usr/bin/aeolus-image:19 2011-07-13 13:33:43 warning Connection [59571 localhost:5672] closed [root@cf-cloudengine ~]# aeolus-image push --provider rhevm --id 59c0d7a7-6d80-4aa5-8af4-632294dc0148 /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/push_command.rb:21:in `run': undefined method `each' for #<Qmf2::QmfAgentException:0x7f857a22a630> (NoMethodError) from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/config_parser.rb:199:in `push' from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/config_parser.rb:30:in `send' from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/config_parser.rb:30:in `process' from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/bin/aeolus-image:6 from /usr/bin/aeolus-image:19:in `load' from /usr/bin/aeolus-image:19 2011-07-13 13:34:22 warning Connection [59598 localhost:5672] closed [root@cf-cloudengine ~]# or even trying to push just the last target [root@cf-cloudengine ~]# aeolus-image build --target vmware,rhev-m --template /pub/projects/cloudforms/files/f15-temp.xml Target Image: 1462a884-6ae9-475e-ab96-11490f967d61 Image: 829b21ab-e2f8-4947-8a88-5434e642c492 Build: 4219830e-4fb4-45d9-8272-905c463deb0a Status: BUILDING Percent Complete: 0 Target Image: fde5dd3d-9c22-45ea-b5ee-e0fd2293fea9 Image: 829b21ab-e2f8-4947-8a88-5434e642c492 Build: 4219830e-4fb4-45d9-8272-905c463deb0a Status: BUILDING Percent Complete: 0 [root@cf-cloudengine ~]# aeolus-image push --provider rhevm --id 829b21ab-e2f8-4947-8a88-5434e642c492 /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/push_command.rb:21:in `run': undefined method `each' for #<Qmf2::QmfAgentException:0x7f5b8ca819e0> (NoMethodError) from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/config_parser.rb:199:in `push' from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/config_parser.rb:30:in `send' from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/lib/config_parser.rb:30:in `process' from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.0.1/bin/aeolus-image:6 from /usr/bin/aeolus-image:19:in `load' from /usr/bin/aeolus-image:19 2011-07-13 13:59:00 warning Connection [45801 localhost:5672] closed [root@cf-cloudengine ~]# Version-Release number of selected component (if applicable): [root@cf-cloudengine log]# /pub/scripts/cf-versions Red Hat Enterprise Linux Server release 6.1 (Santiago) Linux cf-cloudengine.cloud.lab.eng.bos.redhat.com 2.6.32-131.4.1.el6.x86_64 #1 SMP Fri Jun 10 10:54:26 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux postgresql-8.4.7-2.el6.x86_64 mongodb-1.6.4-3.el6_0.x86_64 euca2ools-1.3.1-4.el6_0.noarch package gsoap is not installed ruby-1.8.7.299-7.el6_1.1.x86_64 rubygems-1.3.7-1.el6.noarch deltacloud-core-0.3.9999-1308927004.el6.noarch rubygem-deltacloud-client-0.3.1-1.el6.noarch libdeltacloud-0.9-1.el6.x86_64 hail-0.8-0.2.gf9c5b967.el6_0.x86_64 puppet-2.6.6-1.el6_0.noarch aeolus-configure-2.0.1-0.el6.20110708134115gitab1e6dc.noarch condor-7.6.0-5dcloud.el6.x86_64 iwhd-0.96.1.9e86-1.el6.x86_64 rubygem-image_factory_console-0.4.0-1.el6.20110711131044git5bc7abf.noarch rubygem-image_factory_connector-0.0.3-1.el6.20110711131044git5bc7abf.noarch imagefactory-0.2.3-1.el6.noarch aeolus-conductor-daemons-0.3.0-0.el6.20110711131044git5bc7abf.noarch aeolus-conductor-0.3.0-0.el6.20110711131044git5bc7abf.noarch [root@cf-cloudengine log]# How reproducible: always - in every way I have tried Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
making sure all the bugs are at the right version for future queries
removing bugs from ce-sprint from the tracker.. you can find these bugs by querying the "qa whiteboard" for ce-sprint-60
*** Bug 761035 has been marked as a duplicate of this bug. ***
test passed on RHEL62 against : #rpm -qa | grep 'aeolus\|imagefactory-\|oz-\|iwhd' rubygem-imagefactory-console-0.5.0-4.20110824113238gitd9debef.el6.noarch aeolus-configure-2.6.0-0.20120105171403gitf0043e8.el6.noarch aeolus-conductor-daemons-0.9.0-0.20120105223209git5e068fe.el6.noarch imagefactory-jeosconf-ec2-rhel-1.0.0rc1-1.el6.noarch rubygem-aeolus-cli-0.4.0-0.20120105171410git2c6b457.el6.noarch aeolus-conductor-0.9.0-0.20120105223209git5e068fe.el6.noarch iwhd-1.1-2.el6.x86_64 imagefactory-jeosconf-ec2-fedora-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 aeolus-conductor-doc-0.9.0-0.20120105223209git5e068fe.el6.noarch oz-0.8.0-0.20111219203204git5775e9d.el6.noarch aeolus-all-0.9.0-0.20120105223209git5e068fe.el6.noarch imagefactory-1.0.0rc1-1.el6.noarch rubygem-aeolus-image-0.4.0-0.20120105171419git8108b42.el6.noarch On fedora15 my test fails with the imagefactory.log in attach. Packages and part of the log: # rpm -qa | grep 'aeolus\|imagefactory-\|oz-\|iwhd' rubygem-aeolus-image-0.4.0-0.20120105171419git8108b42.fc15.noarch aeolus-conductor-daemons-0.9.0-0.20120105223209git5e068fe.fc15.noarch rubygem-imagefactory-console-0.5.0-4.20110824113238gitd9debef.fc15.noarch aeolus-all-0.9.0-0.20120105223209git5e068fe.fc15.noarch aeolus-configure-2.6.0-0.20120105171403gitf0043e8.fc15.noarch imagefactory-jeosconf-ec2-rhel-1.0.0rc1-1.fc15.noarch imagefactory-jeosconf-ec2-fedora-1.0.0rc1-1.fc15.noarch oz-0.8.0-0.20111219203204git5775e9d.fc15.noarch aeolus-conductor-0.9.0-0.20120105223209git5e068fe.fc15.noarch iwhd-1.1-1.fc15.x86_64 rubygem-aeolus-cli-0.4.0-0.20120105171410git2c6b457.fc15.noarch imagefactory-1.0.0rc1-1.fc15.noarch aeolus-conductor-doc-0.9.0-0.20120105223209git5e068fe.fc15.noarch error : 2012-01-09 12:58:47,363 DEBUG imgfac.builders.BaseBuilder.RHEL6_rhevm_Builder pid(21400) Message: Exception caught in ImageFactory 2012-01-09 12:58:47,452 DEBUG imgfac.builders.BaseBuilder.RHEL6_rhevm_Builder pid(21400) 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 116, in build_upload self.output_descriptor = guest.customize_and_generate_icicle(libvirt_xml) File "/usr/lib/python2.7/site-packages/oz/RedHat.py", line 1177, in customize_and_generate_icicle return self._internal_customize(libvirt_xml, True) File "/usr/lib/python2.7/site-packages/oz/RedHat.py", line 1142, in _internal_customize self._collect_setup(modified_xml) File "/usr/lib/python2.7/site-packages/oz/RedHat.py", line 427, in _collect_setup g_handle = self._guestfs_handle_setup(libvirt_xml) File "/usr/lib/python2.7/site-packages/oz/Guest.py", line 859, in _guestfs_handle_setup g.launch() File "/usr/lib/python2.7/site-packages/guestfs.py", line 152, in launch return libguestfsmod.launch (self._o) RuntimeError: child process died unexpectedly 2012-01-09 12:58:47,452 DEBUG imgfac.BuildJob.BuildJob pid(21400) Message: Builder (bc683f62-32c9-4695-b2f9-672e87d88275) changed status from BUILDING to FAILED I don't know if this related. I will continue on testing on F16 to see.
Created attachment 551561 [details] imagefactory.log.tar.gz
# rpm -qa|grep 'aeolus\|imagefactory-\|oz-\|iwhd' rubygem-aeolus-image-0.4.0-0.20120111093551git67fdf6f.fc16.noarch aeolus-conductor-daemons-0.9.0-0.20120111153517gite55da85.fc16.noarch imagefactory-1.0.0rc2_6_gb08eb85-1.fc16.noarch iwhd-1.2-1.fc16.x86_64 aeolus-all-0.9.0-0.20120111153517gite55da85.fc16.noarch imagefactory-jeosconf-ec2-fedora-1.0.0rc2_6_gb08eb85-1.fc16.noarch aeolus-conductor-0.9.0-0.20120111153517gite55da85.fc16.noarch rubygem-imagefactory-console-0.4.0-6.fc16.noarch imagefactory-jeosconf-ec2-rhel-1.0.0rc2_6_gb08eb85-1.fc16.noarch aeolus-configure-2.6.0-0.20120112133633git8701011.fc16.noarch aeolus-conductor-doc-0.9.0-0.20120111153517gite55da85.fc16.noarch rubygem-aeolus-cli-0.4.0-0.20120111093540git5ec8dc7.fc16.noarch oz-0.8.0-0.20111219203204git5775e9d.fc16.noarch Moving bug to VERIFIED
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