Zun

Validate container status before next action

Bug #1614386 reported by Eli Qiao
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun
Fix Committed
Medium
Arun Dhiman

Bug Description

There should be status validation before doing container operation, for example
ubuntu@ubuntu16:~/.ssh$ zun container-list
+--------------------------------------+------+----------+---------------+-------------+--------+
| uuid | name | status | image | command | memory |
+--------------------------------------+------+----------+---------------+-------------+--------+
| 8b2b160c-2b80-46d0-be86-e29ebadf4afd | test | Creating | cirros:latest | sleep 10000 | None |
+--------------------------------------+------+----------+---------------+-------------+--------+

ubuntu@ubuntu16:~/.ssh$ zun container-list
+--------------------------------------+------+---------+---------------+-------------+--------+
| uuid | name | status | image | command | memory |
+--------------------------------------+------+---------+---------------+-------------+--------+
| 8b2b160c-2b80-46d0-be86-e29ebadf4afd | test | Stopped | cirros:latest | sleep 10000 | None |
+--------------------------------------+------+---------+---------------+-------------+--------+

There is an container status Creating, we can not start it (docker-py will raise 409 error) until it become Stopped,

For other example please refer #1614384 https://bugs.launchpad.net/zun/+bug/1614384

Changed in zun:
assignee: nobody → Arun Dhiman (arundhiman86)
Eli Qiao (taget-9)
Changed in zun:
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Arun Dhiman (arundhiman86) wrote :

Pushed the commit for this bug at https://review.openstack.org/#/c/364214/

Changed in zun:
status: In Progress → Fix Committed
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.