Bug 719104

Summary: Unable to push F14 image to RHEV
Product: [Retired] CloudForms Cloud Engine Reporter: Steve Reichard <sreichar>
Component: iwhdAssignee: jrd <jrd>
Status: CLOSED CURRENTRELEASE QA Contact: wes hayutin <whayutin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.3.1CC: akarol, dajohnso, deltacloud-maint, matt.wagner, scollier, ssachdev, vvaldez
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-07-07 21:50:55 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-05 19:11:29 UTC
Description of problem:

While I have been able to build F14 images, I have not been able to push them to RHEV.  The most common error seen yields the following in the image factory.

"AttributeError: 'NoneType' object has no attribute 'group'" 


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

[root@cf-aeolus ~]# /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.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.20110628141215gitb8aaf85.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.20110701204941gitd66e27c.noarch
rubygem-image_factory_connector-0.0.3-1.el6.20110701204941gitd66e27c.noarch
imagefactory-0.2.2-1.el6.noarch
aeolus-conductor-daemons-0.3.0-0.el6.20110701204941gitd66e27c.noarch
aeolus-conductor-0.3.0-0.el6.20110701204941gitd66e27c.noarch
[root@cf-aeolus ~]# 



How reproducible:

Very

SA training saw similar errors

Steps to Reproduce:
1. build Fedora 14 image

Template
[root@cf-aeolus ~]# cat /pub/projects/cloudforms/files/spr-f14-i386-temp.xml
<template>
  <name>fedora14_i386</name>
  <os>
    <name>Fedora</name>
    <version>14</version>
    <arch>i386</arch>
    <install type='iso'>
      <iso>http://refarch.cloud.lab.eng.bos.redhat.com/pub/kits/os/Fedora/14/i386/Fedora-14-i386-DVD.iso</iso>
    </install>
  </os>
  <description>SPR's Fedora 14 i386 template</description>
</template>
[root@cf-aeolus ~]# 


Command
[root@cf-aeolus ~]# aeolus-image build --target rhev-m --template /pub/projects/cloudforms/files/spr-f14-i386-temp.xml

Target Image: b7357717-35f5-46fb-b4f2-670d0938077a
Image: 3a6dcb67-d7c1-4e55-b8ed-6a726598570c
Build: cf42d375-b856-47bb-9437-32a3477b7049
Status: BUILDING
Percent Complete: 0
[root@cf-aeolus ~]# 


2. Start push

[root@cf-aeolus ~]# aeolus-image push --provider rhevm --id 3a6dcb67-d7c1-4e55-b8ed-6a726598570c

Provider Image: 57204b7b-741c-4fc9-89e5-9bc770d9d3c4
Image: 3a6dcb67-d7c1-4e55-b8ed-6a726598570c
Build: cf42d375-b856-47bb-9437-32a3477b7049
Status: PUSHING
Percent Complete: 0
[root@cf-aeolus ~]# 


3. Search Logs for status

imagefactory.log


2011-07-05 13:42:03,474 DEBUG imagefactory.qmfagent.ImageFactoryAgent.ImageFactoryAgent pid(8854) Message: Method called: name = push_image 
 args = {'credentials': '<provider_accounts>\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_account>\n<name>cloud form 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_accounts>\n', 'image': '3a6dcb67-d7c1-4e55-b8ed-6a726598570c', 'build': '', 'providers': ['rhevm']} 
 handle = <cqmf2.AgentEvent; proxy of <Swig Object of type 'qmf::AgentEvent *' at 0x1f9a1e0> > 
 addr = redhat.com:imagefactory:82f0d26e-d488-47a0-9697-3f3b70a0ca72:image_factory 
 subtypes = {} 
 userId = anonymous
2011-07-05 13:42:03,474 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(8854) Message: Getting metadata (['latest_unpushed']) from http://localhost:9090/images/3a6dcb67-d7c1-4e55-b8ed-6a726598570c
2011-07-05 13:42:03,476 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(8854) Message: Querying (http://localhost:9090/target_images/_query) with expression ($build == "cf42d375-b856-47bb-9437-32a3477b7049" && $target == "rhev-m")
2011-07-05 13:42:03,483 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(8854) Message: Getting metadata (['template']) from http://localhost:9090/target_images/b7357717-35f5-46fb-b4f2-670d0938077a
2011-07-05 13:42:03,484 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(8854) Message: Created Image Warehouse instance http://localhost:9090 - buckets(target_images, templates, icicles, provider_images)
2011-07-05 13:42:03,509 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(8854) Message: Created Image Warehouse instance http://localhost:9090 - buckets(target_images, templates, icicles, provider_images)
2011-07-05 13:42:03,513 DEBUG imagefactory.BuildJob.BuildAdaptor pid(8854) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed status from NEW to PUSHING
2011-07-05 13:42:03,514 DEBUG imagefactory.BuildJob.BuildAdaptor pid(8854) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed percent complete from 0 to 0
2011-07-05 13:42:36,694 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(8854) Message: Getting metadata (('ami-id',)) from http://localhost:9090/target_images/b7357717-35f5-46fb-b4f2-670d0938077a
2011-07-05 13:42:36,697 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(8854) Message: Got metadata output of: {'ami-id': 'failed curl failed GET url `https://cf-rhevm.cloud.lab.eng.bos.'}
2011-07-05 13:42:36,697 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(8854) Message: Exception caught in ImageFactory
2011-07-05 13:42:36,699 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(8854) Message: Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/imagefactory/builders/FedoraBuilder.py", line 971, in push_image_upload
    self.rhevm_push_image_upload(target_image_id, provider, credentials)
  File "/usr/lib/python2.6/site-packages/imagefactory/builders/FedoraBuilder.py", line 947, in rhevm_push_image_upload
    rhevm_uuid = m.group(1)
AttributeError: 'NoneType' object has no attribute 'group'

2011-07-05 13:42:36,699 DEBUG imagefactory.BuildJob.BuildAdaptor pid(8854) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed status from PUSHING to FAILED
2011-07-05 13:42:36,699 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(8854) Message: Exception caught in ImageFactory
2011-07-05 13:42:36,700 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(8854) Message: Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/imagefactory/builders/FedoraBuilder.py", line 482, in push_image
    self.push_image_upload(target_image_id, provider, credentials)
  File "/usr/lib/python2.6/site-packages/imagefactory/builders/FedoraBuilder.py", line 971, in push_image_upload
    self.rhevm_push_image_upload(target_image_id, provider, credentials)
  File "/usr/lib/python2.6/site-packages/imagefactory/builders/FedoraBuilder.py", line 947, in rhevm_push_image_upload
    rhevm_uuid = m.group(1)
AttributeError: 'NoneType' object has no attribute 'group'

2011-07-05 13:42:36,700 DEBUG imagefactory.BuildJob.BuildAdaptor pid(8854) Message: Raising event with agent handler (<ImageFactoryAgent(Thread-1, initial)>), changed status from FAILED to FAILED



iwhd.log

AND
  COMPARISON
    OBJECT FIELD build
    STRING cf42d375-b856-47bb-9437-32a3477b7049
  COMPARISON
    OBJECT FIELD target
    STRING rhev-m
adding username, size=22
adding nfs-dir, size=14
adding api-key, size=22
adding site, size=5
adding cluster, size=5
adding nfs-host, size=36
adding api-url, size=71
adding password, size=8
adding nfs-path, size=43
adding op, size=8
adding api-secret, size=8
iwhd: dc-rhev-image exited with code 1
[root@cf-aeolus log]#    




rails.log

Processing ProviderAccountsController#index (for 127.0.0.1 at 2011-07-05 13:42:00) [GET]
  Parameters: {"action"=>"index", "controller"=>"provider_accounts"}
Completed in 50ms (View: 14, DB: 28) | 200 OK [http://localhost/conductor/provider_accounts]


Processing ApplicationController#index (for 127.0.0.1 at 2011-07-05 13:42:41) [POST]
  Parameters: {"uuid"=>"57204b7b-741c-4fc9-89e5-9bc770d9d3c4", "status"=>"failed"}

ActionController::RoutingError (No route matches "/builds/update_status" with {:method=>:post}):
  haml (3.0.18) rails/./lib/sass/plugin/rack.rb:41:in `call'
  haml (3.0.18) rails/./lib/sass/plugin/rack.rb:41:in `call'
  thin (1.2.5) lib/thin/connection.rb:76:in `pre_process'
  thin (1.2.5) lib/thin/connection.rb:74:in `catch'
  thin (1.2.5) lib/thin/connection.rb:74:in `pre_process'
  thin (1.2.5) lib/thin/connection.rb:57:in `process'
  thin (1.2.5) lib/thin/connection.rb:42:in `receive_data'
  eventmachine (0.12.10) lib/eventmachine.rb:256:in `run_machine'
  eventmachine (0.12.10) lib/eventmachine.rb:256:in `run'
  thin (1.2.5) lib/thin/backends/base.rb:57:in `start'
  thin (1.2.5) lib/thin/server.rb:156:in `start'
  thin (1.2.5) lib/thin/controllers/controller.rb:80:in `start'
  thin (1.2.5) lib/thin/runner.rb:177:in `send'
  thin (1.2.5) lib/thin/runner.rb:177:in `run_command'
  thin (1.2.5) lib/thin/runner.rb:143:in `run!'
  thin (1.2.5) bin/thin:6
  /usr/bin/thin:19:in `load'
  /usr/bin/thin:19

Rendering template within layouts/application
Rendering layouts/error


Processing ApplicationController#index (for 127.0.0.1 at 2011-07-05 13:42:46) [POST]
  Parameters: {"uuid"=>"57204b7b-741c-4fc9-89e5-9bc770d9d3c4", "status"=>"failed"}

ActionController::RoutingError (No route matches "/builds/update_status" with {:method=>:post}):
  haml (3.0.18) rails/./lib/sass/plugin/rack.rb:41:in `call'
  haml (3.0.18) rails/./lib/sass/plugin/rack.rb:41:in `call'
  thin (1.2.5) lib/thin/connection.rb:76:in `pre_process'
  thin (1.2.5) lib/thin/connection.rb:74:in `catch'
  thin (1.2.5) lib/thin/connection.rb:74:in `pre_process'
  thin (1.2.5) lib/thin/connection.rb:57:in `process'
  thin (1.2.5) lib/thin/connection.rb:42:in `receive_data'
  eventmachine (0.12.10) lib/eventmachine.rb:256:in `run_machine'
  eventmachine (0.12.10) lib/eventmachine.rb:256:in `run'
  thin (1.2.5) lib/thin/backends/base.rb:57:in `start'
  thin (1.2.5) lib/thin/server.rb:156:in `start'
  thin (1.2.5) lib/thin/controllers/controller.rb:80:in `start'
  thin (1.2.5) lib/thin/runner.rb:177:in `send'
  thin (1.2.5) lib/thin/runner.rb:177:in `run_command'
  thin (1.2.5) lib/thin/runner.rb:143:in `run!'
  thin (1.2.5) bin/thin:6
  /usr/bin/thin:19:in `load'
  /usr/bin/thin:19

Rendering template within layouts/application
Rendering layouts/error
[root@cf-aeolus aeolus-conductor]# 



The RHEV-M was checked out.
The DC was up, with the export domian active.
No related events were noted.
The vdc.log had no entries that corresponded to this time.



Actual results:


Expected results:


Additional info:

Comment 1 Steve Reichard 2011-07-05 20:27:06 UTC
BTW,

This was not the same error seen when a dual provider build was attempted then pushed to both EC2 and RHEV.

[root@cf-aeolus ~]# aeolus-build --target ec2,rhevm --template /pub/projects/cloudforms/files/spr-f14-i386-temp.xml
-bash: aeolus-build: command not found
[root@cf-aeolus ~]# aeolus-image build --target ec2,rhevm --template /pub/projects/cloudforms/files/spr-f14-i386-temp.xml

Target Image: f2b2abce-fd3c-427a-9964-77bc3a51baf3
Image: 158b6451-dbb6-47c9-afe3-02aba458102d
Build: 041a4f76-ffe9-4bda-9024-f6a936e0e0cc
Status: New
Percent Complete: 0

Target Image: 7fa1514a-6ab7-43aa-bf4d-7014be011607
Image: 158b6451-dbb6-47c9-afe3-02aba458102d
Build: 041a4f76-ffe9-4bda-9024-f6a936e0e0cc
Status: FAILED
Percent Complete: 0
[root@cf-aeolus ~]# aeolus-image build --target ec2,rhev-m --template /pub/projects/cloudforms/files/spr-f14-i386-temp.xml

Target Image: e279f012-d5e6-471b-a86e-e53ba1a82970
Image: 3b33dd61-536d-4069-976c-9d989b9e548d
Build: f24684bf-493f-4648-b800-1bab670a2bc2
Status: New
Percent Complete: 0

Target Image: 210b3f92-ef6b-4806-bc91-7d4ac4c51fd7
Image: 3b33dd61-536d-4069-976c-9d989b9e548d
Build: f24684bf-493f-4648-b800-1bab670a2bc2
Status: BUILDING
Percent Complete: 0
[root@cf-aeolus ~]# aeolus-image push --provider ec2-us-east-1 --id 3b33dd61-536d-4069-976c-9d989b9e548d

Provider Image: a9563372-f9c7-464a-add2-464b3caa7312
Image: 3b33dd61-536d-4069-976c-9d989b9e548d
Build: f24684bf-493f-4648-b800-1bab670a2bc2
Status: PUSHING
Percent Complete: 0
[root@cf-aeolus ~]# aeolus-image push --provider rhevm --id 3b33dd61-536d-4069-976c-9d989b9e548d
/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:0x7f1a5ba216c0> (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-05 12:46:30 warning Connection [33


634 localhost:5672] closed
[root@cf-aeolus ~]#




imagefactory.log


2011-07-05 12:46:28,065 DEBUG imagefactory.qmfagent.ImageFactoryAgent.ImageFactoryAgent pid(8854) Message: Method called: name = push_image
 args = {'credentials': '<provider_accounts>\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_account>\n<name>cloud form 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_accounts>\n', 'image': '3b33dd61-536d-4069-976c-9d989b9e548d', 'build': '', 'providers': ['rhevm']}

handle = <cqmf2.AgentEvent; proxy of <Swig Object of type 'qmf::AgentEvent *' at 0x1f9a1e0> >
 addr = redhat.com:imagefactory:82f0d26e-d488-47a0-9697-3f3b70a0ca72:image_factory
 subtypes = {}
 userId = anonymous
2011-07-05 12:46:28,067 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(8854) Message: Getting metadata (['latest_unpushed']) from http://localhost:9090/images/3b33dd61-536d-4069-976c-9d989b9e548d
2011-07-05 12:46:28,073 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(8854) Message: Querying (http://localhost:9090/target_images/_query) with expression ($build == "None" && $target == "rhev-m")

2011-07-05 12:46:28,081 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(8854) Message: Getting metadata (['template']) from http://localhost:9090/target_images/None
2011-07-05 12:46:28,082 DEBUG imagefactory.ImageWarehouse.ImageWarehouse pid(8854) Message: Created Image Warehouse instance http://localhost:9090 - buckets(target_images, templates, icicles, provider_images)
2011-07-05 12:46:28,082 ERROR imagefactory.qmfagent.ImageFactoryAgent.ImageFactoryAgent pid(8854) 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...

Comment 2 Steve Reichard 2011-07-06 18:05:14 UTC
Yesterday I saw zaitcev mention that a curl to out RHEVM API hung for him.  Thinking this could be the issue (but how do we get Data Centers when mapping realms?) I spent some time investigating.   Seems like when JBoss is started via microsoft services, errors were happening.  This is not happening when JBoss is start interactively (run.bat).

Having started it so that data is returned correctly, they system was re-installed and both test cases were re-run.  Both (image built for rhev, and multi-provider images) had respective errors similar to before.

Comment 3 Dave Johnson 2011-07-06 18:24:39 UTC
Steve, this sounds similar to what I was experiencing, at least to the extent that my rhev pushes were failing.  Your errors are slightly different though, I was getting a nil for ami-id. 

Anyways, I found bug 719122 was the cause of my push failures.  You may want to restart iwhd service and try again, maybe even a full 'aeolus-cleanup; aeolus-configure'

Comment 4 Steve Reichard 2011-07-06 22:21:57 UTC
Since the RHEVM configuration is part of the initial aeolus-configure (I modify /etc/aeolus-configure/nodes/default_c* prior to running the first aeolus-configure), this seems odd. But I can script restarting iwhd, so if it works...


I gave it a try and it worked!!

Thanks!


Will do some more testing with a clean install.

Comment 5 Steve Reichard 2011-07-07 21:50:55 UTC
Marking as dup of 719122

*** This bug has been marked as a duplicate of bug 719122 ***

Comment 6 wes hayutin 2011-12-08 14:16:06 UTC
perm close