Bug 718333

Summary: Unable to push F15 image to EC2
Product: [Retired] CloudForms Cloud Engine Reporter: Steve Reichard <sreichar>
Component: imagefactoryAssignee: jrd <jrd>
Status: CLOSED ERRATA QA Contact: Martin Kočí <mkoci>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: akarol, brad, dajohnso, deltacloud-maint, dgao, matt.wagner, morazi, scollier, ssachdev, vvaldez, 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:08:08 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 Steve Reichard 2011-07-01 20:17:58 UTC
Description of problem:

While a EC2 build was successful using the following template:
<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>

using the command: 

[root@cf-aeolus noarch]# aeolus-image build --target ec2 --template /pub/projects/cloudforms/files/f15-temp.xml 

Target Image: 7699242f-e293-4010-aee4-6841a2f47125
Image: 0e7a53aa-98c2-4142-80ea-4b7240d7afc8
Build: 473eeb09-f0cc-473b-a014-a1029aa0a20f
Status: COMPLETED
Percent Complete: 100
[root@cf-aeolus noarch]#

The push failed:

[root@cf-aeolus noarch]# aeolus-image push --provider ec2-us-east-1 --id 0e7a53aa-98c2-4142-80ea-4b7240d7afc8 

Provider Image: 45adf1e3-7bc4-4cc3-b259-6d030e87ca97
Image: 0e7a53aa-98c2-4142-80ea-4b7240d7afc8
Build: 473eeb09-f0cc-473b-a014-a1029aa0a20f
Status: FAILED
Percent Complete: 0
[root@cf-aeolus noarch]# 


imagefactory.log
[root@cf-aeolus aeolus-conductor]# tail -50 /var/log/imagefactory.log 
2011-07-01 16:06:37,964 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(31548) Message: Building Linux for non-upload cloud (ec2)
2011-07-01 16:06:37,966 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(31548) Message: Storing placeholder object for non upload cloud image
2011-07-01 16:06:37,968 INFO imagefactory.ImageWarehouse.ImageWarehouse pid(31548) Message: Creating a bucket returned status 500.  If only iwhd would provide a sane way to know if a bucket exists so we wouldn't have to try and create one every time...
2011-07-01 16:06:37,983 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(31548) Message: Setting metadata ({'object_type': 'template', 'uuid': 'a3416f79-5f8e-4a50-83a0-c9e927413643'}) for http://localhost:9090/templates/a3416f79-5f8e-4a50-83a0-c9e927413643
2011-07-01 16:06:38,066 INFO imagefactory.ImageWarehouse.ImageWarehouse pid(31548) Message: Creating a bucket returned status 500.  If only iwhd would provide a sane way to know if a bucket exists so we wouldn't have to try and create one every time...
2011-07-01 16:06:38,081 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(31548) Message: Setting metadata ({'icicle': 'none', 'uuid': '7699242f-e293-4010-aee4-6841a2f47125', 'template': 'a3416f79-5f8e-4a50-83a0-c9e927413643', 'target_parameters': None, 'object_type': 'target_image', 'target': 'ec2', 'build': '473eeb09-f0cc-473b-a014-a1029aa0a20f'}) for http://localhost:9090/target_images/7699242f-e293-4010-aee4-6841a2f47125
2011-07-01 16:06:38,330 DEBUG imagefactory.BuildJob.BuildAdaptor pid(31548) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed percent complete from 0 to 100
2011-07-01 16:06:38,330 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(31548) Message: Getting metadata (['latest_unpushed']) from http://localhost:9090/images/0e7a53aa-98c2-4142-80ea-4b7240d7afc8
2011-07-01 16:06:38,331 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(31548) Message: Getting metadata (['latest_build']) from http://localhost:9090/images/0e7a53aa-98c2-4142-80ea-4b7240d7afc8
2011-07-01 16:06:38,333 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(31548) Message: Setting metadata ({'latest_unpushed': '473eeb09-f0cc-473b-a014-a1029aa0a20f'}) for http://localhost:9090/images/0e7a53aa-98c2-4142-80ea-4b7240d7afc8
2011-07-01 16:06:38,335 DEBUG imagefactory.BuildJob.BuildAdaptor pid(31548) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed status from NEW to COMPLETED
2011-07-01 16:06:38,336 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(31548) Message: Completed placeholder warehouse object for linux non-upload image...
2011-07-01 16:08:02,189 DEBUG imagefactory.qmfagent.ImageFactoryAgent.ImageFactoryAgent pid(31548) Message: Method called: name = push_image 
 args = {'credentials': '<provider_accounts>\n<provider_account>\n<name>rhevm admin</name>\n<provider>rhevm</provider>\n<provider_type>rhev-m</provider_type>\n<provider_credentials>\n  <rhev-m_credentials>\n    <password>100yard-</password>\n    <username>Administrator@CF-RHEVM</username>\n  </rhev-m_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 CERTIFICATE-----\nMIICeDCCAeGgAwIBAgIGALl50GQlMA0GCSqGSIb3DQEBBQUAMFMxCzAJBgNVBAYT\nAlVTMRMwEQYDVQQKEwpBbWF6b24uY29tMQwwCgYDVQQLEwNBV1MxITAfBgNVBAMT\nGEFXUyBMaW1pdGVkLUFzc3VyYW5jZSBDQTAeFw0xMDA3MTMxNzE3MDJaFw0xMTA3\nMTMxNzE3MDJaMFMxCzAJBgNVBAYTAlVTMRMwEQYDVQQKEwpBbWF6b24uY29tMRcw\nFQYDVQQLEw5BV1MtRGV2ZWxvcGVyczEWMBQGA1UEAxMNMXA5eW0ydG42Z2xxYjCB\nnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAyutPEz+uRIzJ3tpsW/4ZvXW875Pe\n/wC6lgYZkx8kN3GyqkmfKI+HNUw1VaMVFoEbnAnTJWuH3DO3CHLJ6g+pu7Mmlqhw\nxyvV8025bmyab8r1Uyf0UsRFtVSlaGt6E1U9DFPZy+CXXIFsZDP7tKNej5OEvHtK\nD10hj5aLNa6h8vkCAwEAAaNXMFUwDgYDVR0PAQH/BAQDAgWgMBYGA1UdJQEB/wQM\nMAoGCCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFAoivQU/x4kLDodC\nf2evGUyAEBXUMA0GCSqGSIb3DQEBBQUAA4GBAHfGua3UmriAbBCCoY1iJQOYFlCv\nfA80q8byDCZRfoP1d+KiMRKJMJVje2BCXV32e7BGjafjprqN5ui7kMfnRMfU24Gy\nEGdNEqtXHc6y+5of32OtAJf+pZYy/SMu/lz6FxlVpfXAsKoEX/9JPTAEnfq67fH+\nQhM4iPzl4velQL9I\n-----END CERTIFICATE-----\n</certificate>\n    <key>-----BEGIN PRIVATE KEY-----\nMIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAMrrTxM/rkSMyd7abFv+Gb11vO+T&#xD;\n3v8AupYGGZMfJDdxsqpJnyiPhzVMNVWjFRaBG5wJ0yVrh9wztwhyyeoPqbuzJpaocMcr1fNNuW5s&#xD;\nmm/K9VMn9FLERbVUpWhrehNVPQxT2cvgl1yBbGQz+7SjXo+ThLx7Sg9dIY+WizWuofL5AgMBAAEC&#xD;\ngYEAuRNRth641XELliTl/CmQVIsUXfcixrZld/vsS5F1uNQMvuATOC1ghq4RXyA1VadABVu4p0Ki&#xD;\nUachY6U+oCrVBOpDRBTS9qBt0kZfyBDahUQX2TyhAm5L+6fXRt8CRZpYALWWy9oCiD7kZVsY45im&#xD;\nvafjYbsU42kVb3icQvGzaAECQQD3X+hbi+cpAdxNFW7J9RSrfoXv6eDlFHl7J2ok2zJpbhRErs8y&#xD;\nlZIWc7Xui1gM6XbqjlCVckyxoi3DhagPZo6BAkEA0f6WSDRFnDXwskGweCh14RN4IoF+VndrpXgj&#xD;\n0VGFI1upuFT+v8dqQR39zhOGVqI6JhfLb78L7EruvsyplIyYeQJBAICzrF9c1YK3Thfoy8BVO1DS&#xD;\nPfsJcpGc6mtRoV7VkE/cDr2BOZm2yc/WmdQnOUNWgCEes/xdAFv25dpxAnQoxoECQFpt5c2GJQvV&#xD;\n9qbsvs+frNOWDL/fP8aAeqyxBcuX7VuCl523jFSNzWXpQmjB47He/md1C7g9byb8Rb+IZuZ/fREC&#xD;\nQF4poEVUojjml0TJxGfoGNA+W0xAxztTch4J6VUHLbPEUP7AEnbMfrwl9L/qgWeqbQ1hhDMd91kz&#xD;\nn0pvxaZtdRs=&#xD;\n-----END PRIVATE KEY-----\n</key>\n    <secret_access_key>zlJmtRbBc2IZpPmUwr327JrUhGRltUHGESXfBG3o</secret_access_key>\n  </ec2_credentials>\n</provider_credentials>\n</provider_account>\n</provider_accounts>\n', 'image': '0e7a53aa-98c2-4142-80ea-4b7240d7afc8', 'build': '', 'providers': ['ec2-us-east-1']} 
 handle = <cqmf2.AgentEvent; proxy of <Swig Object of type 'qmf::AgentEvent *' at 0x30c3c90> > 
 addr = redhat.com:imagefactory:26bc65e8-fa05-4655-8fc1-ac55267ce36b:image_factory 
 subtypes = {} 
 userId = anonymous
2011-07-01 16:08:02,190 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(31548) Message: Getting metadata (['latest_unpushed']) from http://localhost:9090/images/0e7a53aa-98c2-4142-80ea-4b7240d7afc8
2011-07-01 16:08:02,191 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(31548) Message: Querying (http://localhost:9090/target_images/_query) with expression ($build == "473eeb09-f0cc-473b-a014-a1029aa0a20f" && $target == "ec2")
2011-07-01 16:08:02,198 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(31548) Message: Getting metadata (['template']) from http://localhost:9090/target_images/7699242f-e293-4010-aee4-6841a2f47125
2011-07-01 16:08:02,199 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(31548) Message: Created Image Warehouse instance http://localhost:9090 - buckets(target_images, templates, icicles, provider_images)
2011-07-01 16:08:02,208 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(31548) Message: Created Image Warehouse instance http://localhost:9090 - buckets(target_images, templates, icicles, provider_images)
2011-07-01 16:08:02,219 DEBUG oz.Guest.FedoraRemoteGuest pid(31548) Message: Name: fedora15_x86_64, UUID: 8ec08e26-9f78-479e-a907-063ad2be60bd
2011-07-01 16:08:02,219 DEBUG oz.Guest.FedoraRemoteGuest pid(31548) Message: MAC: 52:54:00:b3:c2:e1, distro: Fedora
2011-07-01 16:08:02,219 DEBUG oz.Guest.FedoraRemoteGuest pid(31548) Message: update: 15, arch: x86_64, diskimage: /var/tmp/fedora15_x86_64.dsk
2011-07-01 16:08:02,220 DEBUG oz.Guest.FedoraRemoteGuest pid(31548) Message: nicmodel: virtio, clockoffset: utc
2011-07-01 16:08:02,220 DEBUG oz.Guest.FedoraRemoteGuest pid(31548) Message: mousetype: ps2, disk_bus: virtio, disk_dev: vda
2011-07-01 16:08:02,220 DEBUG oz.Guest.FedoraRemoteGuest pid(31548) Message: icicletmp: /var/lib/oz/icicletmp/fedora15_x86_64, listen_port: 13428
2011-07-01 16:08:02,220 DEBUG oz.Guest.FedoraRemoteGuest pid(31548) Message: Original ISO path: /var/lib/oz/isos/Fedora15x86_64-iso.iso
2011-07-01 16:08:02,220 DEBUG oz.Guest.FedoraRemoteGuest pid(31548) Message: Modified ISO cache: /var/lib/oz/isos/Fedora15x86_64-iso-oz.iso
2011-07-01 16:08:02,220 DEBUG oz.Guest.FedoraRemoteGuest pid(31548) Message: Output ISO path: /var/tmp/fedora15_x86_64-iso-oz.iso
2011-07-01 16:08:02,221 DEBUG oz.Guest.FedoraRemoteGuest pid(31548) Message: ISO content path: /var/lib/oz/isocontent/fedora15_x86_64-iso
2011-07-01 16:08:02,221 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(31548) Message: Being asked to push for provider ec2-us-east-1
2011-07-01 16:08:02,221 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(31548) Message: distro: Fedora - update: 15 - arch: x86_64
2011-07-01 16:08:02,222 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(31548) Message: acting as EC2 user: 7785-6245-6303
2011-07-01 16:08:02,222 DEBUG imagefactory.BuildJob.BuildAdaptor pid(31548) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed status from NEW to PUSHING
2011-07-01 16:08:02,223 DEBUG imagefactory.BuildJob.BuildAdaptor pid(31548) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed percent complete from 0 to 0
2011-07-01 16:08:02,223 DEBUG imagefactory.BuildJob.BuildAdaptor pid(31548) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed status from PUSHING to FAILED
2011-07-01 16:08:02,224 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(31548) Message: Exception caught in ImageFactory
2011-07-01 16:08:02,225 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(31548) Message: Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/imagefactory/builders/FedoraBuilder.py", line 485, in push_image
    self.push_image_snapshot(target_image_id, provider, credentials)
  File "/usr/lib/python2.6/site-packages/imagefactory/builders/FedoraBuilder.py", line 497, in push_image_snapshot
    self.push_image_snapshot_ec2(target_image_id, provider, credentials)
  File "/usr/lib/python2.6/site-packages/imagefactory/builders/FedoraBuilder.py", line 653, in push_image_snapshot_ec2
    raise ImageFactoryException("No available JEOS for desired OS, verison combination")
ImageFactoryException: No available JEOS for desired OS, verison combination

2011-07-01 16:08:02,225 DEBUG imagefactory.BuildJob.BuildAdaptor pid(31548) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed status from FAILED to FAILED


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


[root@cf-aeolus aeolus-conductor]# /pub/scripts/cf-versions 
Red Hat Enterprise Linux Server release 6.1 (Santiago)
Linux cf-aeolus.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.1.0-2.el6_0.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.20110628141215gitb8aaf85.noarch
condor-7.6.0-4dcloud.el6.x86_64
iwhd-0.96.1.9e86-1.el6.x86_64
rubygem-image_factory_console-0.4.0-1.el6.20110629151206git0ca429a.noarch
rubygem-image_factory_connector-0.0.3-1.el6.20110628135944git2a88782.noarch
imagefactory-0.2.2_11_gc6dfc52-1.el6.noarch
aeolus-conductor-daemons-0.3.0-0.el6.20110628135944git2a88782.noarch
aeolus-conductor-0.3.0-0.el6.20110628135944git2a88782.noarch
[root@cf-aeolus aeolus-conductor]# 




How reproducible:

easily - also seen when a 64-bit image was attempted

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 wes hayutin 2011-09-28 16:38:54 UTC
making sure all the bugs are at the right version for future queries

Comment 3 wes hayutin 2011-10-03 17:32:20 UTC
need to update instance.stop to instance.terminate. (not this problem) but works when you do..

Comment 4 Aziza Karol 2011-10-04 07:17:19 UTC
Push is failing again.

I tried pushing F15 image to EC2 twice.

For first time push i observed :
2011-10-04 02:29:59,319 DEBUG imgfac.builders.BaseBuilder.Fedora_ec2_Builder pid(29531) Message: Executing bundle vol command: euca-bundle-vol -c /tmp/tmpjHgier -k /tmp/tmpSPFztQ -u 9598-0080-3741 -e /mnt,/tmp,/root/.ssh --arch x86_64 -d /mnt/bundles --kernel aki-427d952b -p d19f9620-a1d9-4900-80bb-f55e2c3fa45c -s 10240 --ec2cert /tmp/cert-ec2.pem --fstab /etc/fstab -v /
2011-10-04 02:33:48,630 DEBUG imgfac.builders.BaseBuilder.Fedora_ec2_Builder pid(29531) Message: Stopping EC2 instance and deleting temp security group
2011-10-04 02:33:50,153 ERROR boto pid(29531) Message: 400 Bad Request
2011-10-04 02:33:50,154 ERROR boto pid(29531) Message: <?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>UnsupportedOperation</Code><Message>The instance 'i-1e29657e' does not have an 'ebs' root device type and cannot be stopped.</Message></Error></Errors><RequestID>964e67bd-4420-4f80-88b9-84ede04ba774</RequestID></Response>
2011-10-04 02:33:50,155 DEBUG imgfac.builders.BaseBuilder.Fedora_ec2_Builder pid(29531) Message: Exception caught in ImageFactory
2011-10-04 02:33:50,160 DEBUG imgfac.builders.BaseBuilder.Fedora_ec2_Builder pid(29531) Message: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/imgfac/builders/Fedora_ec2_Builder.py", line 425, in push_image
    credentials)
  File "/usr/lib/python2.7/site-packages/imgfac/builders/Fedora_ec2_Builder.py", line 664, in push_image_snapshot_ec2
    instance.stop()
  File "/usr/lib/python2.7/site-packages/boto/ec2/instance.py", line 248, in stop
    rs = self.connection.stop_instances([self.id])
  File "/usr/lib/python2.7/site-packages/boto/ec2/connection.py", line 655, in stop_instances
    [('item', Instance)], verb='POST')
  File "/usr/lib/python2.7/site-packages/boto/connection.py", line 680, in get_list
    raise self.ResponseError(response.status, response.reason, body)
EC2ResponseError: EC2ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>UnsupportedOperation</Code><Message>The instance 'i-1e29657e' does not have an 'ebs' root device type and cannot be stopped.</Message></Error></Errors><RequestID>964e67bd-4420-4f80-88b9-84ede04ba774</RequestID></Response>

2011-10-04 02:33:50,161 DEBUG imgfac.BuildJob.BuildAdaptor pid(29531) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed status from PUSHING to FAILED


2nd time push:
2011-10-04 02:45:45,643 DEBUG imgfac.builders.BaseBuilder.Fedora_ec2_Builder pid(29531) Message: Waiting for EC2 instance to start: 290/300
2011-10-04 02:45:56,445 DEBUG imgfac.BuildJob.BuildAdaptor pid(29531) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed status from PUSHING to FAILED
2011-10-04 02:45:56,447 DEBUG imgfac.builders.BaseBuilder.Fedora_ec2_Builder pid(29531) Message: Exception caught in ImageFactory
2011-10-04 02:45:56,447 DEBUG imgfac.builders.BaseBuilder.Fedora_ec2_Builder pid(29531) Message: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/imgfac/builders/Fedora_ec2_Builder.py", line 425, in push_image
    credentials)
  File "/usr/lib/python2.7/site-packages/imgfac/builders/Fedora_ec2_Builder.py", line 556, in push_image_snapshot_ec2
    self.wait_for_ec2_instance_start(instance)
  File "/usr/lib/python2.7/site-packages/imgfac/builders/Fedora_ec2_Builder.py", line 463, in wait_for_ec2_instance_start
    raise ImageFactoryException("Instance failed to start after 300 seconds - stopping")
ImageFactoryException: Instance failed to start after 300 seconds - stopping

2011-10-04 02:45:56,447 DEBUG imgfac.BuildJob.BuildAdaptor pid(29531) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed status from FAILED to FAILED


[root@dell-per905-01 templates]# rpm -qa | egrep  'aeolus|imagefactory|iwhd'
aeolus-all-0.4.0-0.20111003184622git65a7d19.fc15.noarch
aeolus-conductor-doc-0.4.0-0.20111003184622git65a7d19.fc15.noarch
rubygem-imagefactory-console-0.5.0-4.20110824113238gitd9debef.fc15.noarch
rubygem-aeolus-image-0.1.0-3.20111003170706git8f23238.fc15.noarch
rubygem-aeolus-cli-0.1.0-3.20111003133323git9451323.fc15.noarch
aeolus-configure-2.0.2-4.20110930103205gitaf78594.fc15.noarch
aeolus-conductor-daemons-0.4.0-0.20111003184622git65a7d19.fc15.noarch
iwhd-0.98.15.z3-2.fc15.x86_64
imagefactory-0.6.2_11_g7b94a4a-1.fc15.noarch
aeolus-conductor-0.4.0-0.20111003184622git65a7d19.fc15.noarch

Comment 5 Aziza Karol 2011-10-05 08:49:29 UTC
Push fails with the following error.


2011-10-05 06:43:13,500 DEBUG imgfac.builders.BaseBuilder.Fedora_ec2_Builder pid(3302) Message: Being asked to push for provider ec2-us-west-1
2011-10-05 06:43:13,500 DEBUG imgfac.builders.BaseBuilder.Fedora_ec2_Builder pid(3302) Message: distro: Fedora - update: 15 - arch: x86_64
2011-10-05 06:43:13,502 DEBUG imgfac.builders.BaseBuilder.Fedora_ec2_Builder pid(3302) Message: acting as EC2 user: 9598-0080-3741
2011-10-05 06:43:13,502 DEBUG imgfac.BuildJob.BuildAdaptor pid(3302) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed status from NEW to PUSHING
2011-10-05 06:43:13,502 DEBUG imgfac.BuildJob.BuildAdaptor pid(3302) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed percent complete from 0 to 0
2011-10-05 06:43:13,503 DEBUG imgfac.BuildJob.BuildAdaptor pid(3302) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed status from PUSHING to FAILED
2011-10-05 06:43:13,505 DEBUG imgfac.builders.BaseBuilder.Fedora_ec2_Builder pid(3302) Message: Exception caught in ImageFactory
2011-10-05 06:43:13,505 DEBUG imgfac.builders.BaseBuilder.Fedora_ec2_Builder pid(3302) Message: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/imgfac/builders/Fedora_ec2_Builder.py", line 432, in push_image
    credentials)
  File "/usr/lib/python2.7/site-packages/imgfac/builders/Fedora_ec2_Builder.py", line 532, in push_image_snapshot_ec2
    raise ImageFactoryException("No available JEOS for desired OS, verison combination")
ImageFactoryException: No available JEOS for desired OS, verison combination

2011-10-05 06:43:13,506 DEBUG imgfac.BuildJob.BuildAdaptor pid(3302) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed status from FAILED to FAILED


[root@kvm-guest-03 templates]# rpm -qa | egrep 'aeolus|imagefactory'
rubygem-aeolus-image-0.1.0-3.20111003170706git8f23238.fc15.noarch
aeolus-conductor-0.4.0-0.20111004192348git2cf5ee6.fc15.noarch
aeolus-all-0.4.0-0.20111004192348git2cf5ee6.fc15.noarch
rubygem-imagefactory-console-0.5.0-4.20110824113238gitd9debef.fc15.noarch
aeolus-configure-2.0.2-4.20111004160858gitaf7e59a.fc15.noarch
aeolus-conductor-doc-0.4.0-0.20111004192348git2cf5ee6.fc15.noarch
aeolus-conductor-daemons-0.4.0-0.20111004192348git2cf5ee6.fc15.noarch
rubygem-aeolus-cli-0.1.0-3.20111003133323git9451323.fc15.noarch
imagefactory-0.7.0-1.fc15.noarch

Comment 6 Ian McLeod 2011-10-07 15:32:58 UTC
This looks to be a combination of two issues, both of which are now addressed.

1) We have had F15 JEOS images available for a few releases now.

2) F15 pulled in a new boto release that errors out when you attempt to "stop()" S3 backed instances.  As of 0.7.0 we detect this and behave appropriately with both the old and new boto versions.

So, please upgrade to 0.7.0, pull in the "jeosconf" configuration RPMs and you should be all set.

Comment 7 Aziza Karol 2011-10-10 06:16:09 UTC
Able to push F15 image to EC2.

imagefactory.log:
2011-10-10 01:51:05,451 DEBUG imgfac.qmfagent.ImageFactoryAgent.ImageFactoryAgent pid(28447) Message: Method called: name = push_image 
 args = {'credentials': '*** REDACTED ***', 'image': '9ff61802-d813-4e57-a874-001f2d83e0fe', 'build': '', 'providers': ['ec2-us-west-1']} 
 handle = <cqmf2.AgentEvent; proxy of <Swig Object of type 'qmf::AgentEvent *' at 0x1d6d5d0> > 
 addr = redhat.com:imagefactory:0203b2c7-ef04-474b-8305-914749687a16:image_factory 
 subtypes = {} 
 userId = anonymous
2011-10-10 01:51:05,452 DEBUG imgfac.ImageWarehouse.ImageWarehouse pid(28447) Message: Getting metadata (['latest_unpushed']) from http://localhost:9090/images/9ff61802-d813-4e57-a874-001f2d83e0fe
2011-10-10 01:51:05,456 DEBUG imgfac.ImageWarehouse.ImageWarehouse pid(28447) Message: Querying (http://localhost:9090/target_images/_query) with expression ($build == "1ad0a4fc-8ea2-487a-8575-36b421da6d64" && $target == "ec2")

2011-10-10 01:51:05,461 DEBUG imgfac.ImageWarehouse.ImageWarehouse pid(28447) Message: Getting metadata (['templ

........
2011-10-10 01:57:46,023 DEBUG imgfac.builders.BaseBuilder.Fedora_ec2_Builder pid(28447) Message: Register output: IMAGE	ami-d17d2194

2011-10-10 01:57:46,024 DEBUG imgfac.builders.BaseBuilder.Fedora_ec2_Builder pid(28447) Message: Extracted AMI ID: ami-d17d2194 
2011-10-10 01:57:46,027 INFO imgfac.ImageWarehouse.ImageWarehouse pid(28447) Message: Creating a bucket returned status 500.
2011-10-10 01:57:46,033 DEBUG imgfac.ImageWarehouse.ImageWarehouse pid(28447) Message: Setting metadata ({'object_type': 'icicle', 'uuid': 'b87f4e95-cd51-4e8e-a681-11f8c10ed261'}) for http://localhost:9090/icicles/b87f4e95-cd51-4e8e-a681-11f8c10ed261
2011-10-10 01:57:46,039 INFO imgfac.ImageWarehouse.ImageWarehouse pid(28447) Message: Creating a bucket returned status 500.
2011-10-10 01:57:46,044 DEBUG imgfac.ImageWarehouse.ImageWarehouse pid(28447) Message: Setting metadata ({'target_image': '369f79a8-c381-44f2-9030-72464d5de51a', 'uuid': 'cfbed7a1-a592-427c-b804-0d74048c83e7', 'icicle': 'b87f4e95-cd51-4e8e-a681-11f8c10ed261', 'target_identifier': 'ami-d17d2194', 'object_type': 'provider_image', 'provider': 'ec2-us-west-1'}) for http://localhost:9090/provider_images/cfbed7a1-a592-427c-b804-0d74048c83e7
2011-10-10 01:57:46,058 DEBUG imgfac.builders.BaseBuilder.Fedora_ec2_Builder pid(28447) Message: Terminating EC2 instance and deleting temp security group
2011-10-10 01:57:47,984 DEBUG imgfac.builders.BaseBuilder.Fedora_ec2_Builder pid(28447) Message: Instance status (shutting-down) - waiting for 'terminated'. [0 of 300 seconds elapsed]
2011-10-10 01:57:53,152 DEBUG imgfac.builders.BaseBuilder.Fedora_ec2_Builder pid(28447) Message: Instance status (shutting-down) - waiting for 'terminated'. [5 of 300 seconds elapsed]
2011-10-10 01:57:58,316 DEBUG imgfac.builders.BaseBuilder.Fedora_ec2_Builder pid(28447) Message: Instance status (shutting-down) - waiting for 'terminated'. [10 of 300 seconds elapsed]
2011-10-10 01:58:03,847 DEBUG imgfac.builders.BaseBuilder.Fedora_ec2_Builder pid(28447) Message: Removed temporary security group (imagefactory-cfbed7a1-a592-427c-b804-0d74048c83e7)
2011-10-10 01:58:03,847 DEBUG imgfac.builders.BaseBuilder.Fedora_ec2_Builder pid(28447) Message: Fedora_ec2_Builder instance 30956560 pushed image with uuid 369f79a8-c381-44f2-9030-72464d5de51a to provider_image UUID (cfbed7a1-a592-427c-b804-0d74048c83e7) and set metadata: {'target_image': '369f79a8-c381-44f2-9030-72464d5de51a', 'target_identifier': 'ami-d17d2194', 'icicle': 'b87f4e95-cd51-4e8e-a681-11f8c10ed261', 'provider': 'ec2-us-west-1'}
2011-10-10 01:58:03,847 DEBUG imgfac.BuildJob.BuildAdaptor pid(28447) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed percent complete from 0 to 100
2011-10-10 01:58:03,849 DEBUG imgfac.ImageWarehouse.ImageWarehouse pid(28447) Message: Setting metadata ({'latest_build': '1ad0a4fc-8ea2-487a-8575-36b421da6d64'}) for http://localhost:9090/images/9ff61802-d813-4e57-a874-001f2d83e0fe
2011-10-10 01:58:03,853 DEBUG imgfac.ImageWarehouse.ImageWarehouse pid(28447) Message: Setting metadata ({'latest_unpushed': None}) for http://localhost:9090/images/9ff61802-d813-4e57-a874-001f2d83e0fe
2011-10-10 01:58:03,856 DEBUG imgfac.BuildJob.BuildAdaptor pid(28447) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed status from PUSHING to COMPLETED


[root@dell-pesc430-03 templates]# rpm -qa | egrep 'aeolus|imagefactory'
rubygem-imagefactory-console-0.5.0-4.20110824113238gitd9debef.fc15.noarch
rubygem-aeolus-image-0.1.0-3.20111003170706git8f23238.fc15.noarch
rubygem-aeolus-cli-0.1.0-3.20111003133323git9451323.fc15.noarch
aeolus-conductor-0.5.0-0.20111007200330gite77b251.fc15.noarch
aeolus-conductor-daemons-0.5.0-0.20111007200330gite77b251.fc15.noarch
imagefactory-jeosconf-ec2-fedora-0.1.0-1.fc15.noarch
aeolus-conductor-doc-0.5.0-0.20111007200330gite77b251.fc15.noarch
imagefactory-jeosconf-ec2-rhel-0.1.0-1.fc15.noarch
aeolus-all-0.5.0-0.20111007200330gite77b251.fc15.noarch
aeolus-configure-2.2.0-1.20111007151942git26136f2.fc15.noarch
imagefactory-0.7.0-1.fc15.noarch

Comment 9 errata-xmlrpc 2012-05-15 20:08:08 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