Bug 1361949
| Summary: | [RFE] Implement atomic ps command to support list containers | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Alex Jia <ajia> |
| Component: | atomic | Assignee: | Brent Baude <bbaude> |
| Status: | CLOSED ERRATA | QA Contact: | atomic-bugs <atomic-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.4 | CC: | dwalsh, jhonce |
| Target Milestone: | rc | Keywords: | Extras, FutureFeature |
| Target Release: | --- | Flags: | jhonce:
needinfo-
|
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-12-06 17:41:43 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: | |||
|
Description
Alex Jia
2016-08-01 03:16:39 UTC
Fixed in atomic-1.11 The atomic ps command has been replaced by new atomic containers list command in atomic-1.12.0-1.el7.x86_64, and it works well to list single running container, but failed to list multiple running containers in atomic-1.12.0-1.el7.x86_64, for now, the issue has been fixed in atomic-1.12.2-2.el7.x86_64. 1. in atomic-1.12.0-1.el7.x86_64 # docker run -dit busybox /bin/sh 861248a708663444bbe8fdee2350ed51b7fb64dc6147ea4f377dcd9b278c5b01 # docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 861248a70866 busybox "/bin/sh" 3 seconds ago Up 2 seconds zen_perlman # atomic containers list CONTAINER ID IMAGE COMMAND CREATED STATUS RUNTIME 861248a70866 busybox /bin/sh 2016-09-18 04:16 running Docker # docker run -dit registry.access.redhat.com/rhel7 /bin/sh e62a3f895e1006085648267ae6a6844540f64c36ecd7382752a08e9dc98e9875 # docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e62a3f895e10 registry.access.redhat.com/rhel7 "/bin/sh" 3 seconds ago Up 2 seconds sleepy_banach 861248a70866 busybox "/bin/sh" 4 minutes ago Up 4 minutes zen_perlman # atomic containers list 'ImageId' 2. in the latest atomic-1.12.2-2.el7.x86_64 # atomic containers list CONTAINER ID IMAGE COMMAND CREATED STATUS RUNTIME a2cce0707793 registry.access.redh /bin/sh 2016-09-18 04:23 running Docker 8f9c1effdf8c busybox /bin/sh 2016-09-18 04:22 running Docker 56fbe2b14684 registry.access.redh /bin/sh 2016-09-18 04:22 running Docker We will get an error like 'ImageId' when the running containers are more than 2, such as 3 running containers. [root@atomic-host-001 cloud-user]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES cb203075e312 centos/tools "/usr/bin/bash" 26 seconds ago Up 22 seconds tools 98698c836bd7 rhel7 "cat" About a minute ago Up 23 seconds jolly_mahavira 620d4a38ff73 busybox "/bin/sh" About a minute ago Up About a minute nauseous_borg [root@atomic-host-001 cloud-user]# atomic containers list 'ImageId' [root@atomic-host-001 cloud-user]# rpm -q atomic docker atomic-1.12.5-2.el7.x86_64 docker-1.10.3-55.el7.x86_64 $ git rev-parse HEAD 61b03d3c94023e4913b05347d2b67cc2ab18c063 [root@atomic-host-001 cloud-user]# cd atomic/ [root@atomic-host-001 atomic]# ./atomic containers list 'ImageId' [root@atomic-host-001 cloud-user]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 69664df9dd82 rhel7 "cat" About a minute ago Up About a minute kickass_hopper cb203075e312 centos/tools "/usr/bin/bash" 17 minutes ago Up 17 minutes tools 620d4a38ff73 busybox "/bin/sh" 19 minutes ago Up 18 minutes nauseous_borg I have opened https://github.com/projectatomic/atomic/pull/667 To fix this issue. Basically this only happens if you have a vulnerable image on your system. This feature was added and will be in RHEL7.3, there is a bug though. atomic containers list works fine, unless you have a container/image on your system which has known vulnerability. Fixed in atomic-1.13 It works well for me. [root@atomic-host-001 cloud-user]# rpm -q atomic skopeo docker atomic-1.13.3-1.el7.x86_64 skopeo-0.1.17-0.4.git550a480.el7.x86_64 docker-1.10.3-57.el7.x86_64 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://rhn.redhat.com/errata/RHBA-2016-2857.html |