Bug 1190122

Summary: [hammer cli] docker image info does not display tag information associated to it
Product: Red Hat Satellite Reporter: Kedar Bidarkar <kbidarka>
Component: HammerAssignee: David Davis <daviddavis>
Status: CLOSED ERRATA QA Contact: Elyézer Rezende <erezende>
Severity: medium Docs Contact:
Priority: unspecified    
Version: NightlyCC: bbuckingham, erezende, jmontleo
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/9133
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 05:23:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1190289    

Description Kedar Bidarkar 2015-02-06 12:03:21 UTC
Description of problem:
[root@zzzz yum.repos.d]# hammer -u admin -p changeme docker image info --id c6ec22dd-3f41-4a6e-8a70-d3421101faf2
/usr/lib/ruby/gems/1.8/gems/hammer_cli-0.1.4/lib/hammer_cli/./apipie/../abstract.rb:68: warning: already initialized constant DEFAULT_LABEL_INDENT
ID:       c6ec22dd-3f41-4a6e-8a70-d3421101faf2
Image ID: 6cece30db4f924da43969a12fdf47492ada22b372a0968d6ca8b71d25876629f
Size:     360271936
Tags:     
 1) Repository ID: 7
    Tag:
 2) Repository ID: 7
    Tag:


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

How reproducible:
always

Steps to Reproduce:
1. create a docker repo and sync few iamges
2. use 'hammer -u admin -p changeme docker image info --id c6ec22dd-3f41-4a6e-8a70-d3421101faf2' to display the image info.
3. Notice no, tags information is displayed.

Actual results:
No tags information is displayed.

Expected results:
Tag information should be displayed

Additional info:

Comment 1 RHEL Program Management 2015-02-06 12:03:41 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 2 RHEL Program Management 2015-02-06 12:33:19 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 4 David Davis 2015-02-11 17:17:23 UTC
So some tag information is displayed (like repo id) but now the tag name should be showing. EG:

ID:       c6ec22dd-3f41-4a6e-8a70-d3421101faf2
Image ID: 6cece30db4f924da43969a12fdf47492ada22b372a0968d6ca8b71d25876629f
Size:     360271936
Tags:     
 1) Repository ID: 7
    Tag: latest
 2) Repository ID: 7
    Tag: 2.1

Comment 6 Elyézer Rezende 2015-03-02 13:34:08 UTC
Verified on Satellite-6.1.0-RHEL-7-20150225.0

Verification steps:

!. hammer -u admin -p password docker image list
2. Selected an image with one or more tags
3. hammer -u admin -p password docker image info --id <selected_image_id>
4. Checked the output:

Tags:
 1) Repository ID: 145
    Tag:           7
 2) Repository ID: 145
    Tag:           centos7
 3) Repository ID: 145
    Tag:           latest

Comment 7 Bryan Kearney 2015-08-11 13:23:58 UTC
This bug is slated to be released with Satellite 6.1.

Comment 8 errata-xmlrpc 2015-08-12 05:23:51 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.

https://access.redhat.com/errata/RHSA-2015:1592