container is still in Running status after pause

Bug #1498326 reported by Eli Qiao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Undecided
Eli Qiao

Bug Description

how to reproduce:

taget@taget-ThinkStation-P300:~/devstack$ magnum container-pause 102
taget@taget-ThinkStation-P300:~/devstack$ magnum container-show 102
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property | Value |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| status | Running |
| uuid | 8c340c44-b52b-4ddd-9839-87bf890fb2d2 |
| links | [{u'href': u'http://10.238.157.47:9511/v1/containers/8c340c44-b52b-4ddd-9839-87bf890fb2d2', u'rel': u'self'}, {u'href': u'http://10.238.157.47:9511/containers/8c340c44-b52b-4ddd-9839-87bf890fb2d2', u'rel': u'bookmark'}] |
| created_at | 2015-09-22T06:31:38+00:00 |
| updated_at | 2015-09-22T06:53:49+00:00 |
| command | ping -c 100 10.248.2.5 |
| bay_uuid | 7ff3427c-f2b0-4b05-8faf-85f9634c95e5 |
| image | cirros |
| name | 102 |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

actual result:
| status | Running

expect result:
|status | Paused

Revision history for this message
Eli Qiao (taget-9) wrote :

taget@taget-ThinkStation-P300:~/magnum/magnum/tests/functional$ sudo docker -H tcp://172.24.4.120:2376 inspect 102
[ ...
    "State": {
        "Error": "",
        "ExitCode": 0,
        "FinishedAt": "2015-09-22T06:44:06.462582532Z",
        "OOMKilled": false,
        "Paused": true,
        "Pid": 3894,
        "Restarting": false,
        "Running": true,
        "StartedAt": "2015-09-22T06:49:34.667516654Z"
    },
    "Volumes": {},
    "VolumesRW": {}
}
]

Changed in magnum:
assignee: nobody → Eli Qiao (taget-9)
status: New → Confirmed
Revision history for this message
Eli Qiao (taget-9) wrote :

taget@taget-ThinkStation-P300:~/magnum/magnum/tests/functional$ sudo docker -H tcp://172.24.4.120:2376 ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6ae393de92ed cirros:0.3.3 "ping -c 100 10.248. 28 minutes ago Up 10 minutes (Paused) swarmbay-ncag57lkocw4-swarm-master-pgwcdz2un23i.novalocal/102
0d62d1064b88 cirros:0.3.3 "/bin/ping 10.248.2. 23 hours ago Up 23 hours swarmbay-ncag57lkocw4-swarm-master-pgwcdz2un23i.novalocal/hungry_mcclintock

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/226184

Changed in magnum:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/226184
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=a48efaa3dd4853c0b5d07d70aabe139267b73568
Submitter: Jenkins
Branch: master

commit a48efaa3dd4853c0b5d07d70aabe139267b73568
Author: Eli Qiao <email address hidden>
Date: Tue Sep 22 15:25:38 2015 +0800

    Fix container status when showing a paused containers

    We inspect a container when doing container-show, if the container is paused,
    inspect will return follows:

        "State": {
            "Error": "",
            ...
            "Paused": true,
            "Pid": 3894,
            "Restarting": false,
            "Running": true,
        },

    currently, we just mark an container object's status as Running in this case,
    but it is actually Paused.

    Change-Id: I132f1d676e4f15be3ea7fe51cbb7391702ce558c
    Closes-Bug: #1498326

Changed in magnum:
status: In Progress → Fix Committed
Adrian Otto (aotto)
Changed in magnum:
milestone: none → mitaka-1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.