Bug 752494

Summary: Image import fails
Product: [Retired] CloudForms Cloud Engine Reporter: Jason Ganovsky <jganovsk>
Component: rubygem-aeolus-imageAssignee: Maros Zatko <mzatko>
Status: CLOSED CURRENTRELEASE QA Contact: wes hayutin <whayutin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: akarol, dajohnso, deltacloud-maint, dgao, etay, matt.wagner, mtaylor, 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: 2012-08-30 17:16:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
rails.log from launch failure of imported image
none
deltacloud-core log none

Description Jason Ganovsky 2011-11-09 17:08:06 UTC
Description of problem: Import failing


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


How reproducible:


[root@cf ~]# aeolus-image import --provider ec2-us-east-1 --target ec2 --id ami-df5d93b6
/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/import_command.rb:41:in `import_image'
	from /usr/lib/ruby/gems/1.8/gems/aeolus-cli-0.1.0/lib/aeolus_cli/command/config_parser.rb:230:in `import'
	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

Comment 1 wes hayutin 2011-11-15 23:05:10 UTC
ERROR:   => Unknown Error
[root@qeblade31 ~]# aeolus-cli import --provider ec2-us-east-1 --target ec2 --id ami-31d41658

ERROR:   => Unknown Error
[root@qeblade31 ~]# aeolus-cli import --provider ec2-us-east-1 --target ec2 --id ami-31d41658

Comment 2 wes hayutin 2011-11-15 23:05:37 UTC
[root@qeblade31 ~]# rpm -qa | grep aeolus
aeolus-conductor-daemons-0.6.0-0.20111114172747gitde62906.fc15.noarch
aeolus-configure-2.3.0-0.20111111160331git9bde372.fc15.noarch
aeolus-all-0.6.0-0.20111114172747gitde62906.fc15.noarch
aeolus-conductor-0.6.0-0.20111114172747gitde62906.fc15.noarch
aeolus-conductor-devel-0.6.0-0.20111114172747gitde62906.fc15.noarch
rubygem-aeolus-cli-0.1.0-3.20111115145311git5ec94c5.fc15.noarch
rubygem-aeolus-image-0.1.0-4.20111024205454git6b2b696.fc15.noarch
aeolus-conductor-doc-0.6.0-0.20111114172747gitde62906.fc15.noarch

Comment 3 wes hayutin 2011-11-16 14:33:26 UTC
Marios, please provide a git hash for any fix

Comment 4 Martyn Taylor 2011-11-17 16:13:15 UTC
Conductor --------

commit bbbc274c7f1d68876158e23c32ca1194d9d990ae
Author: Martyn Taylor <mtaylor>
Date:   Thu Nov 17 15:41:49 2011 +0000

    BZ#752494 Fixed Import in conductor API



Aeolus-image-rubygem --------------

commit dd829cd2d4a0d03550639a492002bd464a305434
Author: Martyn Taylor <mtaylor>
Date:   Thu Nov 17 10:05:39 2011 +0000

    BZ#752494 Handle 404 for status in rubygem

Comment 5 wes hayutin 2011-11-17 19:02:06 UTC
[root@qeblade31 ~]# aeolus-cli import --provider ec2-us-east-1 --target ec2 --id ami-31d41658

Image: b26e0332-b98c-4019-a3f2-b1925c72a69f
Build: 6872d275-28c1-403e-84fb-c87257a920fa
Target Image: a7cf0582-1939-42df-9bf9-83f600826e52
Provider Image: ca28b38e-22b9-4aae-ae8c-f83df50bfdea
Status: COMPLETE
[root@qeblade31 ~]# rpm -qa | grep aeolus
aeolus-conductor-doc-0.6.0-2.fc15.noarch
aeolus-configure-2.3.0-1.fc15.noarch
aeolus-all-0.6.0-2.fc15.noarch
rubygem-aeolus-cli-0.1.0-4.fc15.noarch
aeolus-conductor-0.6.0-2.fc15.noarch
rubygem-aeolus-image-0.1.0-6.fc15.noarch
aeolus-conductor-daemons-0.6.0-2.fc15.noarch
[root@qeblade31 ~]#

Comment 6 Jason Ganovsky 2011-11-21 20:55:38 UTC
Retested in 0.6.0.  The import appears to work for both RHEV and VMware however the resulting image cannot be launched.

RHEV results in a 500 error and VMware claims the image cannot be found in the datacenter

Comment 7 Jason Ganovsky 2011-11-21 21:09:41 UTC
Created attachment 534863 [details]
rails.log from launch failure of imported image

Comment 8 Matt Wagner 2011-11-21 21:58:59 UTC
Jason,

Do you see anything in your Deltacloud logs in /var/log/deltacloud-core/ ? It looks like Deltacloud is coming back to Conductor with a 500 error, but the exact nature of the error isn't being captured -- from your attached log:

500 Internal Server Error
/usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.4.0/lib/deltacloud.rb:403:in `handle_backend_error'
/usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.4.0/lib/deltacloud.rb:361:in `request'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:218:in `call'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:218:in `process_result'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:169:in `transmit'
/usr/lib/ruby/1.8/net/http.rb:543:in `start'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:166:in `transmit'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:60:in `execute'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:31:in `execute'
/usr/lib/ruby/gems/1.8/gems/rest-client-1.6.1/lib/restclient/resource.rb:63:in `post'
/usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.4.0/lib/deltacloud.rb:360:in `send'
/usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.4.0/lib/deltacloud.rb:360:in `request'
/usr/lib/ruby/gems/1.8/gems/deltacloud-client-0.4.0/lib/deltacloud.rb:306:in `method_missing'
/usr/share/aeolus-conductor/app/util/taskomatic.rb:162:in `create_dcloud_instance'
/usr/share/aeolus-conductor/app/util/taskomatic.rb:32:in `create_instance'

Comment 9 Jason Ganovsky 2011-11-22 18:39:34 UTC
Created attachment 535145 [details]
deltacloud-core log

Comment 10 wes hayutin 2011-11-28 01:16:41 UTC
removing bugs from ce-sprint from the tracker.. you can find these bugs by querying the "qa whiteboard" for ce-sprint-60

Comment 11 Jason Ganovsky 2012-01-05 00:41:48 UTC
Problem still persists for RHEV in 0.7.0

Comment 12 Jason Ganovsky 2012-01-05 00:59:57 UTC
Appears to be fixed for VMware in 0.7.0

Comment 13 wes hayutin 2012-01-05 13:56:00 UTC
Need to retest imports for ec2,vsphere,rhevm

Comment 14 Shveta 2012-01-06 14:52:52 UTC
Works for ec2 
========================================

[root@qe-blade-08 ~]# aeolus-image import --provider_account ssachdev --id ami-31d41658

Image: 668949aa-e772-4257-9ca9-99a6b5ac6220
Build: aa477d39-8c66-4247-a550-b5c16cfa9db6
Target Image: 511ec03c-7901-4cb0-8b05-337c99f7cacb
Provider Image: 0e78bc3d-f48c-4536-ba73-052e7a829568
Status: COMPLETE

Verified in 
rpm -qa|grep aeolus
aeolus-conductor-daemons-0.8.0-0.20111222233342gitd98cb57.el6.noarch
rubygem-aeolus-image-0.3.0-0.20111222173411gitc13b654.el6.noarch
rubygem-aeolus-cli-0.3.0-0.20111222173356git3cd6277.el6.noarch
aeolus-all-0.8.0-0.20111222233342gitd98cb57.el6.noarch
aeolus-conductor-0.8.0-0.20111222233342gitd98cb57.el6.noarch
aeolus-configure-2.5.0-0.20120104154940git196b80d.el6.noarch
aeolus-conductor-doc-0.8.0-0.20111222233342gitd98cb57.el6.noarch

Comment 15 Jason Ganovsky 2012-01-06 15:23:39 UTC
Yes - works for EC2 and VMware.  It *appears* to work for RHEV as the actual import command returns no error.  However launching the image fails.

Comment 16 Shveta 2012-01-06 16:45:57 UTC
===================================RHEV=================================

aeolus-image import --provider_account rhevm --id 071af3a1-1695-4c4c-81a1-e1c79b0af7d2
ERROR:  ImageNotFound => Could not find Image 071af3a1-1695-4c4c-81a1-e1c79b0af7d2 on provider

====================================================

aeolus-image import --provider_account rhevm --id 32d02b05-00c7-4208-9a07-d68448fd9605
Image: 28f66532-fdd0-4805-bf41-6c4e9694710f
Build: 830d3c46-1011-4aac-87be-d0bab3e1527c
Target Image: db3171a2-1cc9-4514-ae8a-c34d634e522a
Provider Image: 3742e9bc-7c8a-42e8-8cc9-aa0a9fd6ad80
Status: COMPLETE
============================Vsphere====================================
[root@qe-blade-08 ~]# aeolus-image import --provider_account vsphere --id ba42e385-3ff2-4970-a7ea-7d60e4eb7c20

ERROR:  ImageNotFound => Could not find Image ba42e385-3ff2-4970-a7ea-7d60e4eb7c20 on provider

[root@qe-blade-08 ~]# aeolus-image import --provider_account vsphere --id factory-image-ba42e385-3ff2-4970-a7ea-7d60e4eb7c20

Image: 4a76b581-f446-4dbb-966c-1f247ff4a519
Build: 8f9f34dc-af0b-4a43-98e8-dd212ceacfb3
Target Image: 29272fe6-4651-4005-9041-09b906a16fae
Provider Image: 0175c564-3531-44a7-9e6d-e7dbfc8c5006
Status: COMPLETE
========================================================================

Verified in 
rpm -qa|grep aeolus
aeolus-conductor-daemons-0.8.0-0.20111222233342gitd98cb57.el6.noarch
rubygem-aeolus-image-0.3.0-0.20111222173411gitc13b654.el6.noarch
rubygem-aeolus-cli-0.3.0-0.20111222173356git3cd6277.el6.noarch
aeolus-all-0.8.0-0.20111222233342gitd98cb57.el6.noarch
aeolus-conductor-0.8.0-0.20111222233342gitd98cb57.el6.noarch
aeolus-configure-2.5.0-0.20120104154940git196b80d.el6.noarch
aeolus-conductor-doc-0.8.0-0.20111222233342gitd98cb57.el6.noarch