Zun

Add fail reason to container object

Bug #1634760 reported by Eli Qiao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun
Fix Released
Wishlist
Pradeep Kumar Singh

Bug Description

Add new filed to record why the status if ERROR etc for easy debugging.

    def _fail_container(self, container):
        container.status = fields.ContainerStatus.ERROR
        container.task_state = None
        container.save()

Eli Qiao (taget-9)
Changed in zun:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
hongbin (hongbin034) wrote :
Eli Qiao (taget-9)
summary: - s d s f
+ Add fail reason to container object
Changed in zun:
assignee: nobody → Pradeep Kumar Singh (pradeep-singh-u)
Revision history for this message
Pradeep Kumar Singh (pradeep-singh-u) wrote :

will fix this bug once https://review.openstack.org/#/c/391366 is merged.

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

Reviewed: https://review.openstack.org/391366
Committed: https://git.openstack.org/cgit/openstack/zun/commit/?id=3070012c3ef60c5efa5f1997f94cd6c5f84125dc
Submitter: Jenkins
Branch: master

commit 3070012c3ef60c5efa5f1997f94cd6c5f84125dc
Author: Pradeep Kumar Singh <email address hidden>
Date: Fri Oct 28 08:01:23 2016 +0000

    Add status_reason column to 'container' table

    This patch adds status_reason column to container
    database, so that user can get the reason for
    errors and failures of container operation. I
    will add the code to populate this field in next
    patch.

    Closes-Bug: #1634760
    Change-Id: I5a62e873df60ccdd7dbf9b7b0351d7e064378902

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