Bug 749681 - unable to determine values for push command
Summary: unable to determine values for push command
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: rubygem-aeolus-image
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
Assignee: Martyn Taylor
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-27 21:29 UTC by Dave Johnson
Modified: 2012-08-30 17:16 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-30 17:16:27 UTC
Embargoed:


Attachments (Terms of Use)

Description Dave Johnson 2011-10-27 21:29:05 UTC
Description of problem:
======================================
In order to push you need to know the image,build, and targetimage ids.  However, if you build an image, there doesn't appear to be a way to get all these values through aeolus-image queries.  Basically the "list --targetimages $build_id" does not work.



List Examples:
aeolus-image list --images                    # list available images
aeolus-image list --builds $image_id          # list the builds of an image
aeolus-image list --targetimages $build_id    # list the target images from a build
aeolus-image list --providerimages $target_id # list the provider images from a target image
aeolus-image list --providerimages all        # list all provider images
aeolus-image list --targets                   # list the values available for the --target parameter
aeolus-image list --providers                 # list the values available for the --provider parameter
aeolus-image list --accounts                  # list the values available for the --account parameter

[root@qeblade26 ~]# aeolus-image list --images
ID                                       Name     OS     OS Version     Arch     Description     
------------------------------------     ----     --     ----------     ----     -----------     
7ee1374d-80b3-49dc-8d32-008e4f977fde                                                             

[root@qeblade26 ~]# aeolus-image list --builds 7ee1374d-80b3-49dc-8d32-008e4f977fde
ID                                       Image                                    
------------------------------------     ------------------------------------     
32bc9fd4-7dda-4a2d-bd6d-6e6b36c07e5b     7ee1374d-80b3-49dc-8d32-008e4f977fde     

[root@qeblade26 ~]# aeolus-image list --targetimages 32bc9fd4-7dda-4a2d-bd6d-6e6b36c07e5b
Could not find subcommand for list, run `./aeolus-image --help` for usage instructions

Version-Release number of selected component (if applicable):
================================================================
rubygem-aeolus-image-0.1.0-4.20111024205454git6b2b696.fc15.noarch

Comment 1 wes hayutin 2011-11-10 19:44:20 UTC
201111101434:59.340 - FINE: ssh root.lab.eng.bos.redhat.com aeolus-cli build --target mock --template=/root/RHEL61.tpl (com.redhat.qe.tools.SSHCommandRunner.run)
201111101435:00.935 - FINE: Stdout: 
Image: 8fde75f5-aff7-4a88-90fb-18c63d184109
Build: 7a526bf6-b5c8-418d-bcf7-84268930e93b
Target Image: eb3d811c-cdcc-4c76-aac8-8c1102e78d97	 :Status COMPLETED
 (com.redhat.qe.tools.SSHCommandRunner.runCommandAndWait)
201111101435:00.935 - FINE: Stderr:  (com.redhat.qe.tools.SSHCommandRunner.runCommandAndWait)
201111101435:00.935 - FINE: ExitCode: 0 (com.redhat.qe.tools.SSHCommandRunner.runCommandAndWait)
201111101435:00.938 - FINE: Image: 8fde75f5-aff7-4a88-90fb-18c63d184109 (com.redhat.qe.ce10.tasks.AssortedTasks.buildPushTemplate)
201111101435:00.938 - FINE: Build: 7a526bf6-b5c8-418d-bcf7-84268930e93b (com.redhat.qe.ce10.tasks.AssortedTasks.buildPushTemplate)
201111101435:00.938 - FINE: Target Image: eb3d811c-cdcc-4c76-aac8-8c1102e78d97	 :Status COMPLETED (com.redhat.qe.ce10.tasks.AssortedTasks.buildPushTemplate)
201111101435:00.939 - INFO: Image ID=8fde75f5-aff7-4a88-90fb-18c63d184109 (com.redhat.qe.ce10.tasks.AssortedTasks.buildPushTemplate)
201111101435:00.939 - INFO: Build ID=7a526bf6-b5c8-418d-bcf7-84268930e93b (com.redhat.qe.ce10.tasks.AssortedTasks.buildPushTemplate)
201111101435:00.939 - INFO: Target ID=eb3d811c-cdcc-4c76-aac8-8c1102e78d97 (com.redhat.qe.ce10.tasks.AssortedTasks.buildPushTemplate)
201111101435:00.940 - FINE: ssh root.lab.eng.bos.redhat.com ls /root/getTemplateStatus.py (com.redhat.qe.tools.SSHCommandRunner.run)
201111101435:01.350 - FINE: Stdout: /root/getTemplateStatus.py
 (com.redhat.qe.tools.SSHCommandRunner.runCommandAndWait)
201111101435:01.351 - FINE: Stderr:  (com.redhat.qe.tools.SSHCommandRunner.runCommandAndWait)
201111101435:01.351 - FINE: ExitCode: 0 (com.redhat.qe.tools.SSHCommandRunner.runCommandAndWait)
201111101435:01.351 - INFO: testing template build status (com.redhat.qe.ce10.tasks.AssortedTasks.getTemplateStatus)
201111101435:01.351 - FINE: ssh root.lab.eng.bos.redhat.com /root/getTemplateStatus.py -i eb3d811c-cdcc-4c76-aac8-8c1102e78d97 (com.redhat.qe.tools.SSHCommandRunner.run)
201111101435:01.831 - FINE: Stdout: COMPLETED
 (com.redhat.qe.tools.SSHCommandRunner.runCommandAndWait)
201111101435:01.831 - FINE: Stderr:  (com.redhat.qe.tools.SSHCommandRunner.runCommandAndWait)
201111101435:01.832 - FINE: ExitCode: 0 (com.redhat.qe.tools.SSHCommandRunner.runCommandAndWait)
201111101435:01.832 - INFO: STATUS=COMPLETED (com.redhat.qe.ce10.tasks.AssortedTasks.getTemplateStatus)
201111101435:01.832 - INFO: Sleep for 2 minutes (com.redhat.qe.ce10.tasks.AssortedTasks.verifyTemplateIsBuilding)
201111101435:01.832 - INFO: Template RHEL_westest01 has COMPLETED building (com.redhat.qe.ce10.tasks.AssortedTasks.verifyTemplateIsBuilding)
201111101435:01.832 - INFO: Asserted: Asserted template RHEL_westest01 has been built successfully (com.redhat.qe.auto.testng.Assert.pass)
201111101435:01.832 - FINE: ssh root.lab.eng.bos.redhat.com aeolus-cli push  --account mock_mockuser --targetimage eb3d811c-cdcc-4c76-aac8-8c1102e78d97 (com.redhat.qe.tools.SSHCommandRunner.run)
201111101435:03.492 - FINE: Stdout: 
Target Image: eb3d811c-cdcc-4c76-aac8-8c1102e78d97
Provider Image: 7f1d6748-614f-4362-a089-2a302e57f940	 Status: COMPLETED
 (com.redhat.qe.tools.SSHCommandRunner.runCommandAndWait)

[root@qeblade31 ~]# rpm -qa | grep aeolus
aeolus-conductor-doc-0.6.0-0.20111110145640gitd58f462.fc15.noarch
aeolus-conductor-0.6.0-0.20111110145640gitd58f462.fc15.noarch
aeolus-all-0.6.0-0.20111110145640gitd58f462.fc15.noarch
rubygem-aeolus-cli-0.1.0-3.20111110100520gitbe66ffb.fc15.noarch
rubygem-aeolus-image-0.1.0-4.20111024205454git6b2b696.fc15.noarch
aeolus-configure-2.3.0-0.20111109080912git9fd4974.fc15.noarch
aeolus-conductor-daemons-0.6.0-0.20111110145640gitd58f462.fc15.noarch
aeolus-conductor-devel-0.6.0-0.20111110145640gitd58f462.fc15.noarch

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


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