Bug 1230915 - hammer container list does not show the id
Summary: hammer container list does not show the id
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Container Management
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Partha Aji
QA Contact: Og Maciel
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-11 18:45 UTC by Elyézer Rezende
Modified: 2022-07-09 07:29 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-15 09:18:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2622 0 normal SHIPPED_LIVE Moderate: Satellite 6.1.5 bug fix update 2015-12-15 14:17:45 UTC

Description Elyézer Rezende 2015-06-11 18:45:35 UTC
Description of problem:
hammer docker container list does not show the id information for the container

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

How reproducible:
Aways

Steps to Reproduce:
1. hammer container list

Actual results:
ID information is not present

Expected results:
ID information is present

Additional info:

hammer> docker container list
------------|---------------------------------------------------------------------|---------|---------|------------------------------
NAME        | IMAGE REPOSITORY                                                    | TAG     | COMMAND | COMPUTE RESOURCE
------------|---------------------------------------------------------------------|---------|---------|------------------------------
centos-1    | default_organization-dockerproduct-centos                           | 7       | top     | InternalDockerComputeResource
ubuntu-1    | ubuntu                                                              | 14.04.2 | top     | InternalDockerComputeResource
wordpress-1 | wordpress                                                           | 4.2     | top     | InternalDockerComputeResource
test-1      | default_organization-library-dockercontentview-dockerproduct-centos | latest  | top     | InternalDockerComputeResource
busybox-cv  | default_organization-dev-dockercontentview-dockerproduct-busybox    | latest  | top     | InternalDockerComputeResource
------------|---------------------------------------------------------------------|---------|---------|------------------------------

Comment 2 Elyézer Rezende 2015-07-15 01:02:50 UTC
This can block a CLI user because not having the ID it the user can start facing:

hammer> docker container info --name busybox-cv
Error: container found more than once

But was created only one container and without the id is not possible to get the information about the container and no other operation will be possible to do, like power down:

hammer> docker container stop --name busybox-cv
Error: container found more than once

I high recommend to add this for 6.1.1

Comment 3 Partha Aji 2015-09-30 20:02:45 UTC
Created redmine issue http://projects.theforeman.org/issues/12020 from this bug

Comment 5 Og Maciel 2015-11-30 15:27:19 UTC
Verified on Satellite 6.1.5 Compose 2 on RHEL 7.2 system.


[root@qe-sat6-rhel7 ~]# hammer -u admin -p changeme docker container list
---|-------------------------------|------------------|--------|-----------|---------------------------------------
ID | NAME                          | IMAGE REPOSITORY | TAG    | COMMAND   | COMPUTE RESOURCE
---|-------------------------------|------------------|--------|-----------|---------------------------------------
1  | I5u7wEt4ah5LBjFgXLetFNnBkHSxX | busybox          | latest | top       | 5Ywdcq
2  | qCBxK4QazGqsJh4QIv            | busybox          | latest | top       | 烣攈篂溍燉烄鲝鄲辧軝歧蜀鮚詔絙濓怵戾杵
3  | tsNKULniSEkMEV                | busybox          | latest | top       | SqMNWJjmrQ
4  | AcLcaRDGH                     | busybox          | latest | top       | peqgIzgrUM
5  | 4lgF0MlorOKZb773IwnLnyNSc98   | busybox          | latest | top       | SqMNWJjmrQ
6  | lRaAOQPGSi5sPbTXxOtT5tiYUlaN5 | busybox          | latest | top       | peqgIzgrUM
7  | 9Cm                           | busybox          | latest | date      | SqMNWJjmrQ
8  | Fd6gL3D                       | busybox          | latest | date      | peqgIzgrUM
11 | GksvYOzTkr                    | busybox          | latest | top       | 88Nyhhvu
12 | 1ZI4TedQPF                    | busybox          | latest | top       | Gr5fTp9k
13 | Vbtfz1Bp6c                    | busybox          | latest | top       | hEaZumDI
14 | MCcMcAFFkB                    | busybox          | latest | top       | x5Qzlcxp
17 | rhel-70-docker-01             | rhel7.0          | latest | /bin/bash | docker
18 | rhel-70-docker-02             | rhel7.0          | latest | /bin/bash | docker
---|-------------------------------|------------------|--------|-----------|---------------------------------------

[root@qe-sat6-rhel7 ~]# hammer -u admin -p changeme docker container info --id=17
ID:               17
Name:             rhel-70-docker-01
Image repository: rhel7.0
Tag:              latest
Command:          /bin/bash
Compute resource: docker
UUID:             4a356240b705841f2e49487255fb47ad682d7699b1871900604fb731de3ba532
Entrypoint:
CPU set:          0-2
CPU shares:
Memory (Bytes):   512m
TTY:              yes
Attach STDIN:     yes
Attach STDOUT:    yes
Attach STDERR:    yes
Registry:         Red Hat Registry
Organizations:
    Default Organization
Created at:       2015/11/30 14:21:16
Updated at:       2015/11/30 14:21:16

Comment 7 errata-xmlrpc 2015-12-15 09:18:50 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:2622


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