Bug 708316

Summary: Building templates fail for RHEV-M Provider
Product: [Retired] CloudForms Cloud Engine Reporter: Shveta <ssachdev>
Component: aeolus-conductorAssignee: Tomas Sedovic <tsedovic>
Status: CLOSED CURRENTRELEASE QA Contact: wes hayutin <whayutin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.3.1CC: akarol, dajohnso, deltacloud-maint, dgao, ricardo.arguello, 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: 2011-06-29 10:02:51 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 2011-05-27 09:23:25 UTC
Description of problem:


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


How reproducible:


Steps to Reproduce:
1. Install updated aeolus
2. Configure a deltacloud instance using rhevm driver
3. From aeolus web interface configure a provider of type rhev and a provider
account.
4. Build template .
5. It fails..

  
Actual results:


Expected results:


Additional info:


 rpm -qa|grep aeolus
aeolus-conductor-0.2.0-4.el6.x86_64
aeolus-configure-2.0.0-10.el6.noarch
aeolus-conductor-daemons-0.2.0-4.el6.x86_64
aeolus-conductor-doc-0.2.0-4.el6.x86_64




From image factory log
========================================

0
2011-05-25 11:58:22,135 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(3613) Message: Exception during push_image
2011-05-25 11:58:22,135 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(3613) Message: Unexpected error: (<type 'exceptions.KeyError'>)
2011-05-25 11:58:22,135 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(3613) Message:              value: ('RHEVM ')
2011-05-25 11:58:22,154 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(3613) Message:          traceback: ['  File "/usr/lib/python2.6/site-packages/imagefactory/builders/FedoraBuilder.py", line 409, in push_image\n    self.push_image_snapshot(image_id, provider, credentials)\n', '  File "/usr/lib/python2.6/site-packages/imagefactory/builders/FedoraBuilder.py", line 438, in push_image_snapshot\n    region_conf=ec2_region_details[region]\n']
2011-05-25 11:58:22,154 DEBUG imagefactory.qmfagent.BuildAdaptor.BuildAdaptor pid(3613) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed status from PUSHING to FAILED
2011-05-25 12:07:32,007 DEBUG imagefactory.qmfagent.ImageFactoryAgent.ImageFactoryAgent pid(3613) Message: Method called: name = provider_image
 args = {'credentials': '<?xml version="1.0"?>\n<provider_credentials>\n  <ec2_credentials>\n    <account_number></account_number>\n    <access_key>Administrator@RHEVMANG</access_key>\n    <secret_access_key>Redhat123</secret_access_key>\n    <certificate></certificate>\n    <key></key>\n  </ec2_credentials>\n</provider_credentials>\n', 'provider': 'RHEVM ', 'image_id': 'c8ea944e-8807-4b8f-8485-442be517ed0b'}
 handle = <cqmf2.AgentEvent; proxy of <Swig Object of type 'qmf::AgentEvent *' at 0x1d54c00> >
 addr = redhat.com:imagefactory:1aa3515a-caf5-4379-beb6-a45a398e1ee7:image_factory
 subtypes = {}
 userId = anonymous
2011-05-25 12:07:32,008 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(3613) Message: Getting metadata (('template', 'target')) from http://localhost:9090/images/c8ea944e-8807-4b8f-8485-442be517ed0b
2011-05-25 12:07:32,035 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(3613) Message: Created Image Warehouse instance http://localhost:9090 - buckets(images, templates, icicles, provider_images)
2011-05-25 12:07:32,053 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(3613) Message: Created Image Warehouse instance http://localhost:9090 - buckets(images, templates, icicles, provider_images)
2011-05-25 12:07:32,059 DEBUG oz.Guest.FedoraRemoteGuest pid(3613) Message: Name: rhev_temp, UUID: cb0cc11d-e68d-4305-a578-9c616522922f
2011-05-25 12:07:32,060 DEBUG oz.Guest.FedoraRemoteGuest pid(3613) Message: MAC: 52:54:00:05:47:4f, distro: Fedora
2011-05-25 12:07:32,060 DEBUG oz.Guest.FedoraRemoteGuest pid(3613) Message: update: 14, arch: x86_64, diskimage: /var/tmp/rhev_temp.dsk
2011-05-25 12:07:32,060 DEBUG oz.Guest.FedoraRemoteGuest pid(3613) Message: host IP: 0.0.0.0, nicmodel: virtio, clockoffset: utc
2011-05-25 12:07:32,060 DEBUG oz.Guest.FedoraRemoteGuest pid(3613) Message: mousetype: ps2, disk_bus: virtio, disk_dev: vda
2011-05-25 12:07:32,060 DEBUG oz.Guest.FedoraRemoteGuest pid(3613) Message: icicletmp: /var/lib/oz/icicletmp/rhev_temp, listen_port: 44887
2011-05-25 12:07:32,060 DEBUG oz.Guest.FedoraRemoteGuest pid(3613) Message: Cache original media?: True
2011-05-25 12:07:32,060 DEBUG oz.Guest.FedoraRemoteGuest pid(3613) Message: Original ISO path: /var/lib/oz/isos/Fedora14x86_64-url.iso
2011-05-25 12:07:32,060 DEBUG oz.Guest.FedoraRemoteGuest pid(3613) Message: Modified ISO cache: /var/lib/oz/isos/Fedora14x86_64-url-oz.iso
2011-05-25 12:07:32,061 DEBUG oz.Guest.FedoraRemoteGuest pid(3613) Message: Output ISO path: /var/tmp/rhev_temp-url-oz.iso
2011-05-25 12:07:32,061 DEBUG oz.Guest.FedoraRemoteGuest pid(3613) Message: ISO content path: /var/lib/oz/isocontent/rhev_temp-url
2011-05-25 12:07:33,342 DEBUG oz.Guest.FedoraRemoteGuest pid(3613) Message: Original URL http://download.fedoraproject.org/pub/fedora/linux/releases/14/Fedora/x86_64/os/ resolved to http://download.eng.pnq.redhat.com/pub/fedora/linux/releases/14/Fedora/x86_64/os/
2011-05-25 12:07:33,343 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(3613) Message: Being asked to push for provider RHEVM
2011-05-25 12:07:33,343 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(3613) Message: distro: Fedora - update: 14 - arch: x86_64
2011-05-25 12:07:33,345 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(3613) Message: acting as EC2 user:
2011-05-25 12:07:33,345 DEBUG imagefactory.qmfagent.BuildAdaptor.BuildAdaptor pid(3613) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed status from NEW to PUSHING
2011-05-25 12:07:33,346 DEBUG imagefactory.qmfagent.BuildAdaptor.BuildAdaptor pid(3613) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed percent complete from 0 to 0
2011-05-25 12:07:33,346 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(3613) Message: Exception during push_image
2011-05-25 12:07:33,347 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(3613) Message: Unexpected error: (<type 'exceptions.KeyError'>)
2011-05-25 12:07:33,347 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(3613) Message:              value: ('RHEVM ')
2011-05-25 12:07:33,348 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(3613) Message:          traceback: ['  File "/usr/lib/python2.6/site-packages/imagefactory/builders/FedoraBuilder.py", line 409, in push_image\n    self.push_image_snapshot(image_id, provider, credentials)\n', '  File "/usr/lib/python2.6/site-packages/imagefactory/builders/FedoraBuilder.py", line 438, in push_image_snapshot\n    region_conf=ec2_region_details[region]\n']
2011-05-25 12:07:33,348 DEBUG imagefactory.qmfagent.BuildAdaptor.BuildAdaptor pid(3613) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed status from PUSHING to FAILED

Comment 1 Tomas Sedovic 2011-06-29 09:55:07 UTC
There has been a lot of changes since this was reported. The template building is no longer done via the web UI and we've added some fixes to support RHEV-M, I think.

Please try to reproduce this on the newest dev version.

Comment 2 Shveta 2011-06-29 10:02:51 UTC
Closing the bug as templates cannot be made from Ui now . 

Recreated the bug in new dev version from cli 
https://bugzilla.redhat.com/show_bug.cgi?id=717580

Comment 3 wes hayutin 2011-12-08 14:03:28 UTC
perm close