Bug 720761 - aeolus-image list --images does not list imported images
Summary: aeolus-image list --images does not list imported images
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: rubygem-aeolus-image
Version: 0.3.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
Assignee: Martyn Taylor
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-12 17:09 UTC by wes hayutin
Modified: 2012-01-26 12:24 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-12-08 13:49:37 UTC
Embargoed:


Attachments (Terms of Use)

Description wes hayutin 2011-07-12 17:09:27 UTC
Description of problem:
using a vmware setup
1. create a template using vmware vphsere
2. get the id using dcloud
3. aeolus-image import --provider vmware --target vmware --id $idOfTemplate



[root@ibm-x3650-05 32fdc5cdf3f181e7b6987410cf607d15]# aeolus-image list --images
UUID                                     NAME                     OS         OS VERSION     ARCH       DESCRIPTION                     
5c9c587c-0eb1-40dd-bc96-2f142489a913     RHEL_westest05           RHEL-6     1              x86_64     RHEL61 x86_64 with postgres     
d2bba849-7af0-4dbd-a53a-44f6f39cc9d7     RHEL_westestVmware01     RHEL-6     1              x86_64     RHEL61 x86_64 with postgres     

[root@ibm-x3650-05 32fdc5cdf3f181e7b6987410cf607d15]#  aeolus-image import --provider vmware --target vmware --id lutter-template

Target Image: 8149e666-004e-4dd4-9471-d588a8d1e0a4
Image: 0adcb05e-00cf-4a4d-926f-6cf2185042e9
Build: d0df34cb-a09b-4e73-a181-87e4e434f7f6
Provider Image: 3b452004-d687-4d21-9706-e60757344fed
 
[root@ibm-x3650-05 32fdc5cdf3f181e7b6987410cf607d15]# 
[root@ibm-x3650-05 32fdc5cdf3f181e7b6987410cf607d15]#  aeolus-image import --provider vmware --target vmware --id lutter-template

Target Image: 44d26515-8954-4cd3-be9d-e83db1ddcbd0
Image: c209f528-d2f2-4b98-aa97-b5b2bc8b1095
Build: 9bbb7f26-669f-462d-878c-1a440a537b1a
Provider Image: ac217f57-869d-4991-88b3-74bc0aa2b3c0
[root@ibm-x3650-05 32fdc5cdf3f181e7b6987410cf607d15]#  aeolus-image import --provider vmware --target vmware --id lutter-template

Target Image: 1173894b-8ba2-4ab3-b9df-a507e71816c3
Image: 5c51c961-fd03-4e24-bc64-26e9d4537b96
Build: 1cf67d90-dbb4-46b2-91e9-27e7adddfa09
Provider Image: 2113986f-9383-4517-90a2-e0165d300dea
[root@ibm-x3650-05 32fdc5cdf3f181e7b6987410cf607d15]# hostname
ibm-x3650-05.ovirt.rhts.eng.bos.redhat.com
[root@ibm-x3650-05 32fdc5cdf3f181e7b6987410cf607d15]#  aeolus-image import --provider vmware --target vmware --id mfojtik-template

Target Image: abeed993-672b-4d67-b1c5-042e22e02d39
Image: 322086df-7c79-4ab9-8df2-d43661663af8
Build: 8107d516-b8a5-40b3-a192-e9ee489dc17b
Provider Image: 52c3d406-1633-44dc-9d80-77710a4a2f40
[root@ibm-x3650-05 32fdc5cdf3f181e7b6987410cf607d15]# aeolus-image list --images
UUID                                     NAME                     OS         OS VERSION     ARCH       DESCRIPTION                     
5c9c587c-0eb1-40dd-bc96-2f142489a913     RHEL_westest05           RHEL-6     1              x86_64     RHEL61 x86_64 with postgres     
d2bba849-7af0-4dbd-a53a-44f6f39cc9d7     RHEL_westestVmware01     RHEL-6     1              x86_64     RHEL61 x86_64 with postgres     
[root@ibm-x3650-05 32fdc5cdf3f181e7b6987410cf607d15]# 
[root@ibm-x3650-05 32fdc5cdf3f181e7b6987410cf607d15]# 
[root@ibm-x3650-05 32fdc5cdf3f181e7b6987410cf607d15]# curl -X GET http://$HOSTNAME:9090/
<api service="image_warehouse" version="0.96.1-9e86">
	<link rel="bucket_factory" href="http://ibm-x3650-05.ovirt.rhts.eng.bos.redhat.com:9090/_new"/>
	<link rel="provider_list" href="http://ibm-x3650-05.ovirt.rhts.eng.bos.redhat.com:9090/_providers"/>
	<link rel="bucket" href="http://ibm-x3650-05.ovirt.rhts.eng.bos.redhat.com:9090/templates"/>
	<link rel="bucket" href="http://ibm-x3650-05.ovirt.rhts.eng.bos.redhat.com:9090/images"/>
	<link rel="bucket" href="http://ibm-x3650-05.ovirt.rhts.eng.bos.redhat.com:9090/builds"/>
	<link rel="bucket" href="http://ibm-x3650-05.ovirt.rhts.eng.bos.redhat.com:9090/icicles"/>
	<link rel="bucket" href="http://ibm-x3650-05.ovirt.rhts.eng.bos.redhat.com:9090/target_images"/>
	<link rel="bucket" href="http://ibm-x3650-05.ovirt.rhts.eng.bos.redhat.com:9090/provider_images"/>
</api>
[root@ibm-x3650-05 32fdc5cdf3f181e7b6987410cf607d15]# curl -X GET http://$HOSTNAME:9090/images
<objects>
	<object>
		<bucket>images</bucket>
		<key>8cb6ba77-6c4d-44be-a256-4501479ef309</key>
	</object>
	<object>
		<bucket>images</bucket>
		<key>5c9c587c-0eb1-40dd-bc96-2f142489a913</key>
	</object>
	<object>
		<bucket>images</bucket>
		<key>1231bc9a-1897-42f3-9de9-1d2ad3e94667</key>
	</object>
	<object>
		<bucket>images</bucket>
		<key>d2bba849-7af0-4dbd-a53a-44f6f39cc9d7</key>
	</object>
	<object>
		<bucket>images</bucket>
		<key>8b4efa73-0938-418f-82c2-7415933a85ff</key>
	</object>
	<object>
		<bucket>images</bucket>
		<key>6a62d43e-a5f6-4d34-bd50-af71ddaf0f05</key>
	</object>
	<object>
		<bucket>images</bucket>
		<key>0adcb05e-00cf-4a4d-926f-6cf2185042e9</key>
	</object>
	<object>
		<bucket>images</bucket>
		<key>c209f528-d2f2-4b98-aa97-b5b2bc8b1095</key>
	</object>
	<object>
		<bucket>images</bucket>
		<key>5c51c961-fd03-4e24-bc64-26e9d4537b96</key>
	</object>
	<object>
		<bucket>images</bucket>
		<key>322086df-7c79-4ab9-8df2-d43661663af8</key>
	</object>
</objects>
[root@ibm-x3650-05 32fdc5cdf3f181e7b6987410cf607d15]# aeolus-image list --builds 322086df-7c79-4ab9-8df2-d43661663af8
8107d516-b8a5-40b3-a192-e9ee489dc17b
[root@ibm-x3650-05 32fdc5cdf3f181e7b6987410cf607d15]# aeolus-image list --images
UUID                                     NAME                     OS         OS VERSION     ARCH       DESCRIPTION                     
5c9c587c-0eb1-40dd-bc96-2f142489a913     RHEL_westest05           RHEL-6     1              x86_64     RHEL61 x86_64 with postgres     
d2bba849-7af0-4dbd-a53a-44f6f39cc9d7     RHEL_westestVmware01     RHEL-6     1              x86_64     RHEL61 x86_64 with postgres     
[root@ibm-x3650-05 32fdc5cdf3f181e7b6987410cf607d15]#

Comment 1 Martyn Taylor 2011-07-18 16:06:45 UTC
commit 7c8427e96dd11f4fe183aeb4e2174ba34c310bfb
Author: Martyn Taylor <mtaylor>
Date:   Thu Jul 14 15:19:39 2011 +0100

    BZ#720761 List Imported Images
    
    List the invalid images

Comment 2 wes hayutin 2011-07-19 18:57:13 UTC
[root@hp-dl180g6-01 ~]# aeolus-image list --images
UUID                                     NAME                     TARGET      OS         OS VERSION     ARCH       DESCRIPTION                     
0ee69724-4de3-47e5-bcfc-b75b2888428d     RHEL_postgres            ec2         RHEL-6     1              x86_64     RHEL61 x86_64 with postgres     
e1df5ef9-2ef0-4978-b253-f241b3271525     RHEL_westestVmware01     ec2         RHEL-6     1              x86_64     RHEL61 x86_64 with postgres     
e1df5ef9-2ef0-4978-b253-f241b3271525     RHEL_westestVmware01     vsphere     RHEL-6     1              x86_64     RHEL61 x86_64 with postgres     
6db9dfd1-65cc-4cb1-9dfc-f3118f825c34     RHEL_westestVmware01     ec2         RHEL-6     1              x86_64     RHEL61 x86_64 with postgres     
[root@hp-dl180g6-01 ~]# aeolus-image import --provider ec2-us-west-1 --target ec2 --id  ami-592d7f1c

Target Image: d0696f88-4edc-492d-aab7-4491e75d71bc
Image: b4e9873c-6f70-40ec-9afa-67a13c50c1a0
Build: 7d6bbaf4-f6b7-4c67-a4c3-84d7125ab03f
Provider Image: ab01a62b-c11d-49eb-b85c-83f65fd10990
[root@hp-dl180g6-01 ~]# aeolus-image list --images
UUID                                     NAME                     TARGET      OS         OS VERSION     ARCH       DESCRIPTION                     
0ee69724-4de3-47e5-bcfc-b75b2888428d     RHEL_postgres            ec2         RHEL-6     1              x86_64     RHEL61 x86_64 with postgres     
e1df5ef9-2ef0-4978-b253-f241b3271525     RHEL_westestVmware01     ec2         RHEL-6     1              x86_64     RHEL61 x86_64 with postgres     
e1df5ef9-2ef0-4978-b253-f241b3271525     RHEL_westestVmware01     vsphere     RHEL-6     1              x86_64     RHEL61 x86_64 with postgres     
6db9dfd1-65cc-4cb1-9dfc-f3118f825c34     RHEL_westestVmware01     ec2         RHEL-6     1              x86_64     RHEL61 x86_64 with postgres     
[root@hp-dl180g6-01 ~]# 



[root@hp-dl180g6-01 ~]# rpm -qa | grep aeolus
aeolus-conductor-doc-0.3.0-0.el6.20110718142517git4cd3a5e.noarch
aeolus-conductor-daemons-0.3.0-0.el6.20110718142517git4cd3a5e.noarch
rubygem-aeolus-image-0.0.1-1.el6.20110718142517git4cd3a5e.noarch
aeolus-all-0.3.0-0.el6.20110718142517git4cd3a5e.noarch
aeolus-conductor-0.3.0-0.el6.20110718142517git4cd3a5e.noarch
aeolus-configure-2.0.1-0.el6.20110718092611gitdc7eac0.noarch
[root@hp-dl180g6-01 ~]#

Comment 3 wes hayutin 2011-07-19 18:58:19 UTC
are we sure this is in the build?

Comment 4 wes hayutin 2011-07-21 15:03:36 UTC
[root@hp-ml150g6-01 ~]# aeolus-image import --provider ec2-us-east-1 --target ec2 --id  ami-5e837b37

Target Image: 7ea6d181-68bf-45c3-913b-d83e9bc3b17a
Image: a049a01d-7279-4f70-8037-9d3f4b5ef09e
Build: b096daa6-82da-4b7c-a5f8-6b4be2fd87f6
Provider Image: 5107e675-8791-4848-8cd9-0b1ad32758e2
[root@hp-ml150g6-01 ~]# aeolus-image list --images
IMAGE ID                                 LASTEST PUSHED BUILD                     NAME             TARGET     OS     OS VERSION     ARCH     DESCRIPTION     
a049a01d-7279-4f70-8037-9d3f4b5ef09e     b096daa6-82da-4b7c-a5f8-6b4be2fd87f6     ami-5e837b37     ec2                                                       
[root@hp-ml150g6-01 ~]# 
[root@hp-ml150g6-01 ~]# rpm -q imagefactory
imagefactory-0.4.0-1.el6.noarch

Comment 5 wes hayutin 2011-07-22 13:46:05 UTC
moving verified bugs off the tracker

Comment 6 wes hayutin 2011-08-01 19:55:08 UTC
release pending...

Comment 7 wes hayutin 2011-08-01 19:56:54 UTC
release pending...

Comment 9 wes hayutin 2011-12-08 13:49:37 UTC
perm close


Note You need to log in before you can comment on or make changes to this bug.