Bug 761282

Summary: import with image description results in empty details, no link to image
Product: [Retired] CloudForms Cloud Engine Reporter: Dave Johnson <dajohnso>
Component: aeolus-conductorAssignee: Tomas Sedovic <tsedovic>
Status: CLOSED ERRATA QA Contact: wes hayutin <whayutin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: akarol, deltacloud-maint, ssachdev, tsedovic
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 21:22:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 766139    
Bug Blocks:    
Attachments:
Description Flags
ss none

Description Dave Johnson 2011-12-07 23:10:01 UTC
Description of problem:
==========================
image import has a description field that points to a file, I am guessing that this is a template.  Whether that is right or not, when I do that, I end up with a entry in the (web ui) images table without any links to the actual image details.  

See the screenshot, the items missing links are from imports where a template file was used for a description.  (no link to image details)

Comment 1 Dave Johnson 2011-12-07 23:11:16 UTC
Created attachment 542247 [details]
ss

Comment 2 Dave Johnson 2011-12-07 23:12:27 UTC
BTW, maybe the image description is not suppose to be a template xml, in that case, use this bz to add some validation to whatever is suppose to be in or not in that image description file ;)

Comment 3 Tomas Sedovic 2011-12-16 16:29:30 UTC
Right now the only thing you can set via the description xml is the imported image's name.

This patch replaces the xml upload widget with a text field for setting the name. It's less confusing for now. We'll update the UI when it's possible to set more things than just the name.

https://fedorahosted.org/pipermail/aeolus-devel/2011-December/007545.html

Comment 4 Tomas Sedovic 2011-12-19 12:36:39 UTC
Fixed in commit: 3173e6216577eca6945fd7cb500104292c8077b2

Comment 5 Shveta 2011-12-30 05:41:30 UTC
[root@hp-bl260cg5-01 ~]# aeolus-image import --provider_account ssachdev --id ami-31d41658

Image: 547fc6ed-a455-42e2-9013-6acbe8377ff8
Build: 247071d8-050f-4ccd-bd99-880d452e1335
Target Image: 7d7a94c6-7c43-426c-a2fc-a2823201537b
Provider Image: 839c8ea3-1f66-4153-be5b-31a756732c59
Status: COMPLETE
=================================================================
[root@hp-bl260cg5-01 ~]# aeolus-image import --provider_account ssachdev --id ami-31d41658 --description "<image><name>xml-name</name></image>"

Image: 6cdb2674-55ab-4246-a34f-32a60f0a0a9c
Build: 7c7ca1e0-3d12-48b8-b932-b6e729310632
Target Image: 53e59d91-5cea-4538-bcaa-438163a57ef3
Provider Image: c4dbaa68-d50b-4d1d-a1ad-976ce45d8025
Status: COMPLETE
========================================================================

[root@hp-bl260cg5-01 ~]#  aeolus-image import --provider_account ssachdev --id ami-31d41658 --description /root/temp.tpl 

Image: fb391a90-c62e-4ddb-8c02-a79e66be4bed
Build: 71722436-d2d5-4309-8523-693d1432e819
Target Image: cc3d5f21-0e51-4f7d-91ad-070ff87d6ac4
Provider Image: f8464433-ddec-476e-a524-fbac26568bdb
Status: COMPLETE
====================================================
Import works.


rpm -qa|grep aeolus
aeolus-conductor-doc-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-conductor-0.8.0-0.20111222233342gitd98cb57.el6.noarch
aeolus-configure-2.5.0-0.20111222173430git17b704a.el6.noarch
aeolus-all-0.8.0-0.20111222233342gitd98cb57.el6.noarch
aeolus-conductor-daemons-0.8.0-0.20111222233342gitd98cb57.el6.noarch

Comment 6 wes hayutin 2012-01-03 14:30:57 UTC
These bugs are verified, removing from ce-sprint

Comment 8 errata-xmlrpc 2012-05-15 21:22:53 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-0583.html