Unexpected Heat stack_status cause cluster's wrong status

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

Bug Description

Heat will return a unkonwn stack_status which are not handled in Magnum cluster's object status filed.

2016-12-01 07:29:56.089 25243 WARNING magnum.service.periodic [-] Ignore error [Field value RESUME_FAILED is invalid] when syncing up cluster status.
2016-12-01 07:29:56.089 25243 ERROR magnum.service.periodic Traceback (most recent call last):
2016-12-01 07:29:56.089 25243 ERROR magnum.service.periodic File "/usr/lib/python2.7/site-packages/magnum/service/periodic.py", line 104, in sync_cluster_status
2016-12-01 07:29:56.089 25243 ERROR magnum.service.periodic self._sync_existing_cluster(cluster, stack)
2016-12-01 07:29:56.089 25243 ERROR magnum.service.periodic File "/usr/lib/python2.7/site-packages/magnum/service/periodic.py", line 153, in _sync_existing_cluster
2016-12-01 07:29:56.089 25243 ERROR magnum.service.periodic cluster.status = stack.stack_status
2016-12-01 07:29:56.089 25243 ERROR magnum.service.periodic File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/base.py", line 72, in setter
2016-12-01 07:29:56.089 25243 ERROR magnum.service.periodic field_value = field.coerce(self, name, value)
2016-12-01 07:29:56.089 25243 ERROR magnum.service.periodic File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/fields.py", line 195, in coerce
2016-12-01 07:29:56.089 25243 ERROR magnum.service.periodic return self._type.coerce(obj, attr, value)
2016-12-01 07:29:56.089 25243 ERROR magnum.service.periodic File "/usr/lib/python2.7/site-packages/oslo_versionedobjects/fields.py", line 317, in coerce
2016-12-01 07:29:56.089 25243 ERROR magnum.service.periodic raise ValueError(msg)
2016-12-01 07:29:56.089 25243 ERROR magnum.service.periodic ValueError: Field value RESUME_FAILED is invalid

Eli Qiao (taget-9)
Changed in magnum:
assignee: nobody → Eli Qiao (taget-9)
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/405083

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

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

commit 6033d0ef6f8f3a1ec2108b599104052670473ecb
Author: Eli Qiao <email address hidden>
Date: Thu Dec 1 11:38:57 2016 +0800

    Add RESUME_FAILED to cluster's status field

    Heat stack may return RESUME_FAILED, sync this status to cluster object.

    Closes-Bug: #1646324
    Change-Id: If48fc62d91fddeb579048a4ff5c4b238d3c5324c

Changed in magnum:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/magnum 4.0.0

This issue was fixed in the openstack/magnum 4.0.0 release.

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.