Not able to delete a failed bay

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

Bug Description

magnum bay-delete XXX was not able to delete the bay, because magnum conductor failed on deleting a Heat stack. Below is the error:

2015-12-13 00:00:52.538 ERROR oslo.service.loopingcall [req-ccc637f0-8e6d-4fbd-9371-097abba9926d admin admin] Fixed interval looping call 'magnum.conductor.handlers.bay_conductor.HeatPoller.poll_and_check' failed
2015-12-13 00:00:52.538 TRACE oslo.service.loopingcall Traceback (most recent call last):
2015-12-13 00:00:52.538 TRACE oslo.service.loopingcall File "/usr/local/lib/python2.7/dist-packages/oslo_service/loopingcall.py", line 113, in _run_loop
2015-12-13 00:00:52.538 TRACE oslo.service.loopingcall result = func(*self.args, **self.kw)
2015-12-13 00:00:52.538 TRACE oslo.service.loopingcall File "/opt/stack/magnum/magnum/conductor/handlers/bay_conductor.py", line 245, in poll_and_check
2015-12-13 00:00:52.538 TRACE oslo.service.loopingcall self._sync_bay_and_template_status(stack)
2015-12-13 00:00:52.538 TRACE oslo.service.loopingcall File "/opt/stack/magnum/magnum/conductor/handlers/bay_conductor.py", line 288, in _sync_bay_and_template_status
2015-12-13 00:00:52.538 TRACE oslo.service.loopingcall self.template_def.update_outputs(stack, self.baymodel, self.bay)
2015-12-13 00:00:52.538 TRACE oslo.service.loopingcall File "/opt/stack/magnum/magnum/conductor/template_definition.py", line 321, in update_outputs
2015-12-13 00:00:52.538 TRACE oslo.service.loopingcall output.set_output(stack, baymodel, bay)
2015-12-13 00:00:52.538 TRACE oslo.service.loopingcall File "/opt/stack/magnum/magnum/conductor/template_definition.py", line 415, in set_output
2015-12-13 00:00:52.538 TRACE oslo.service.loopingcall output_value = self.get_output_value(stack)
2015-12-13 00:00:52.538 TRACE oslo.service.loopingcall File "/opt/stack/magnum/magnum/conductor/template_definition.py", line 138, in get_output_value
2015-12-13 00:00:52.538 TRACE oslo.service.loopingcall for output in stack.outputs:
2015-12-13 00:00:52.538 TRACE oslo.service.loopingcall File "/usr/local/lib/python2.7/dist-packages/heatclient/openstack/common/apiclient/base.py", line 492, in __getattr__
2015-12-13 00:00:52.538 TRACE oslo.service.loopingcall return self.__getattr__(k)
2015-12-13 00:00:52.538 TRACE oslo.service.loopingcall File "/usr/local/lib/python2.7/dist-packages/heatclient/openstack/common/apiclient/base.py", line 494, in __getattr__
2015-12-13 00:00:52.538 TRACE oslo.service.loopingcall raise AttributeError(k)
2015-12-13 00:00:52.538 TRACE oslo.service.loopingcall AttributeError: outputs
2015-12-13 00:00:52.538 TRACE oslo.service.loopingcall

hongbin (hongbin034)
Changed in magnum:
assignee: nobody → hongbin (hongbin034)
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/257056
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=29e73e3fa1eb122ccfdbf822b028d2ea86ee4fd1
Submitter: Jenkins
Branch: master

commit 29e73e3fa1eb122ccfdbf822b028d2ea86ee4fd1
Author: Hongbin Lu <email address hidden>
Date: Sun Dec 13 12:28:56 2015 -0500

    Handle the case that stack has no "outputs"

    Object "stack" returned by Heat doesn't necessary have the "outputs"
    attribute. This could happen when a stack is in failure state. Magnum
    needs to handle this case robustly.

    Closes-Bug: #1525678
    Change-Id: I288af63bd9e2704f9869f3eaf8d8d4c6495a7973

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

This issue was fixed in the openstack/magnum 2.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.