Zun

task_state is not accurate

Bug #1662077 reported by Eli Qiao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun
Fix Committed
Medium
haobing1

Bug Description

I noticed that only few task state now:

image_pulling container_creating sandbox_creating.

more task state should be added, such as "container_stopping", container_deleting etc.

stack@jfz1r04h12:~$ zun delete test
Delete for container test failed: Conflict (HTTP 409) (Request-ID: req-28c8c7ed-6e51-4f07-b77d-fea0b5d90067)
stack@jfz1r04h12:~$ vim /etzun^C
stack@jfz1r04h12:~$ zun stop test
Request to stop container test has been accepted.
stack@jfz1r04h12:~$ zun list
+--------------------------------------+------+--------+---------+------------+-----------+-------+
| uuid | name | image | status | task_state | addresses | ports |
+--------------------------------------+------+--------+---------+------------+-----------+-------+
| 80cd00d1-04a2-40d6-82fa-8af355ce8559 | test | cirros | Running | None | 10.0.0.74 | [] |
+--------------------------------------+------+--------+---------+------------+-----------+-------+
stack@jfz1r04h12:~$ zun list
+--------------------------------------+------+--------+---------+------------+-----------+-------+
| uuid | name | image | status | task_state | addresses | ports |
+--------------------------------------+------+--------+---------+------------+-----------+-------+
| 80cd00d1-04a2-40d6-82fa-8af355ce8559 | test | cirros | Stopped | None | 10.0.0.74 | [] |
+--------------------------------------+------+--------+---------+------------+-----------+-------+
stack@jfz1r04h12:~$ zun list
+--------------------------------------+------+--------+---------+------------+-----------+-------+
| uuid | name | image | status | task_state | addresses | ports |
+--------------------------------------+------+--------+---------+------------+-----------+-------+
| 80cd00d1-04a2-40d6-82fa-8af355ce8559 | test | cirros | Stopped | None | 10.0.0.74 | [] |
+--------------------------------------+------+--------+---------+------------+-----------+-------+

hongbin (hongbin034)
Changed in zun:
status: New → Triaged
importance: Undecided → Medium
haobing1 (haobing1)
Changed in zun:
assignee: nobody → haobing1 (haobing1)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to zun (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on zun (master)

Change abandoned by haobing (<email address hidden>) on branch: master
Review: https://review.openstack.org/444859

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

Reviewed: https://review.openstack.org/445259
Committed: https://git.openstack.org/cgit/openstack/zun/commit/?id=5c8f7c285f6ce335922280b473e16e7c1f6929cb
Submitter: Jenkins
Branch: master

commit 5c8f7c285f6ce335922280b473e16e7c1f6929cb
Author: liangjingtao <email address hidden>
Date: Mon Mar 13 20:33:29 2017 +0800

    Add more task states for container

    Now, only few task states.
    This patch add more task states to indicate
    the state of container.

    Change-Id: I09ad1b45ab8bc2a0d488f6932b2a5f25f9f40c63
    Close-Bug:#1662077

haobing1 (haobing1)
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.