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 ------------|---------------------------------------------------------------------|---------|---------|------------------------------
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
Created redmine issue http://projects.theforeman.org/issues/12020 from this bug
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
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