Bug 761533

Summary: CLI imports from RHEV return false positives
Product: [Retired] CloudForms Cloud Engine Reporter: Steve Reichard <sreichar>
Component: aeolus-conductorAssignee: Angus Thomas <athomas>
Status: CLOSED DUPLICATE QA Contact: wes hayutin <whayutin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: akarol, deltacloud-maint, scollier, 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-12-10 15:07:58 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
logs tarball none

Description Steve Reichard 2011-12-08 14:56:32 UTC
Created attachment 542572 [details]
logs tarball

Description of problem:

I was exploring the importing of images, specifically RHEV.

I noticed no matter what was specified for "id" the cli would not return an error.   I had create a VM named 'spr' and created a template from that called 't_spr'.  'junk' was a test of something that didn't exist.

[root@cf-cloudforms9 ~]# aeolus-cli  import --provider rhevm --target rhevm --description '<image><name>spr image</name></image>' --id spr

Image: e8b68ab0-c911-4a61-b9c8-99b457e66072
Build: 12563b87-75cf-4c76-8a2b-7f8a903f800b
Target Image: ba93fa11-f79e-422a-b301-d3e67b85ff2d
Provider Image: 00bf99bd-e17e-4619-a98a-acf022b7f343
Status: COMPLETE
[root@cf-cloudforms9 ~]# aeolus-cli  import --provider rhevm --target rhevm --description '<image><name>spr template</name></image>' --id t_spr

Image: 59ab3451-09c9-4121-8eeb-2b9aa7026446
Build: 6a07c507-b8aa-4b2c-a17e-ef1647db745e
Target Image: 4bc17bcc-cbaa-4c75-a3a9-8ff0e2905536
Provider Image: f3df6abc-495c-4550-8806-a3dcd1cc9d0e
Status: COMPLETE
[root@cf-cloudforms9 ~]# aeolus-cli  import --provider rhevm --target rhevm --description '<image><name>junk</name></image>' --id junk

Image: 67c28d0e-a680-4aa7-80b1-6d9ae0faf86f
Build: 4accc989-4464-4fb4-b376-2e82f4493050
Target Image: 4b58c99b-e293-4224-aceb-b2e320b4a8bb
Provider Image: 31e0d4d5-6a19-42f6-9e94-57675d97c13e
Status: COMPLETE
[root@cf-cloudforms9 ~]# aeolus-cli  import --provider rhevm --target rhevm --description '<image><name>spr-UUID</name></image>' --id ae34084b-08e8-4f1c-a914-f6279681de28

Image: 3727b05b-05f5-4197-b482-6384092484c8
Build: 1dc01e00-3eae-4023-8290-3201836d5110
Target Image: 1b57bb33-847d-4c0e-93d4-ce5de1876bb8
Provider Image: a267b705-ffb3-47ea-b621-6ed6d70be1f0
Status: COMPLETE
[root@cf-cloudforms9 ~]# aeolus-cli  import --provider rhevm --target rhevm --description '<image><name>spr-temp-UUID</name></image>' --id a0dccd35-1205-497b-8662-8bb53a6766a7

Image: 9e53c524-1298-45ce-a39e-32ae62c6d98b
Build: 8bb7fc55-6d32-4d39-9404-167e04cfd1f9
Target Image: f4695227-115c-423b-b860-ae2d29f2c5ce
Provider Image: 8eebb620-b664-43d0-95c8-871efb818d34
Status: COMPLETE
[root@cf-cloudforms9 ~]# 


A tar of log is attached.

BTW, only the last one produced something that could be launched.  A template needs to be imported using the UUID.  I got the UUID by:

curl -o rhevm.cer http://cf-rhevm.cloud.lab.eng.bos.redhat.com:8080/ca.crt
curl -X GET -H "Accept: application/xml" -u admin@internal:100yard- --cacert rhevm.cer https://cf-rhevm.cloud.lab.eng.bos.redhat.com:8443/api/templates


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


[root@cf-cloudforms9 ~]# /pub/scripts/post_install_configuration_scripts/cf-versions 
Red Hat Enterprise Linux Server release 6.1 (Santiago)
Linux cf-cloudforms9.cloud.lab.eng.bos.redhat.com 2.6.32-131.17.1.el6.x86_64 #1 SMP Thu Sep 29 10:24:25 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
postgresql-8.4.9-1.el6_1.1.x86_64
mongodb-1.8.0-6.el6.x86_64
euca2ools-1.3.1-4.el6_0.noarch
ruby-1.8.7.299-7.el6_1.1.x86_64
rubygems-1.8.10-1.el6.noarch
deltacloud-core-0.4.1-8.el6.noarch
rubygem-deltacloud-client-0.4.0-3.el6.noarch
package libdeltacloud is not installed
hail-0.8-0.2.gf9c5b967.el6_0.x86_64
puppet-2.6.6-1.el6_0.noarch
aeolus-configure-2.3.0-1.el6.noarch
iwhd-1.0-1.el6.x86_64
imagefactory-0.8.9-1.el6.noarch
aeolus-conductor-daemons-0.6.0-3.el6.noarch
aeolus-conductor-0.6.0-3.el6.noarch
[root@cf-cloudforms9 ~]# 



How reproducible:

easily

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


Expected results:


Additional info:

Comment 1 Steve Reichard 2011-12-08 22:41:50 UTC
Just tested with vsphere.

Similar results.   The CLI would appear happy, preping the launch would alos be happy (image found?) but it would fail on launch.

Another different, with rhev only templates (not images) work when imported.  With vsphere only images (not templates) when imported.  The id for vsphere was the image name. (nice)

Comment 2 wes hayutin 2011-12-10 15:07:58 UTC

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