node-delete faild

Bug #1690757 reported by chenyb4
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
senlin
Fix Released
Undecided
chenyb4

Bug Description

  When i create a cluster, and attach delete_policy to cluster. I was execute 'senlin node-delete xxx' appear error, the error as follow.

2017-05-14 23:37:25.891 4567 ERROR senlin.engine.actions.base [req-c8693fcf-f297-441b-9deb-f2ca458b3a6f 299399a37dd347ecb7b5fef804dc7093 1a4dbf91c59a491cb75593dc5d6149b5 - - -] Unexpected exception occurred during action NODE_DELETE (578a8293-0e84-423b-8e4d-425546cedc65) execution: 'NodeAction' object has no attribute 'node'
2017-05-14 23:37:25.891 4567 ERROR senlin.engine.actions.base Traceback (most recent call last):
2017-05-14 23:37:25.891 4567 ERROR senlin.engine.actions.base File "/root/senlin/senlin/engine/actions/base.py", line 478, in ActionProc
2017-05-14 23:37:25.891 4567 ERROR senlin.engine.actions.base result, reason = action.execute()
2017-05-14 23:37:25.891 4567 ERROR senlin.engine.actions.base File "/root/senlin/senlin/engine/actions/node_action.py", line 255, in execute
2017-05-14 23:37:25.891 4567 ERROR senlin.engine.actions.base self.policy_check(self.entity.cluster_id, 'BEFORE')
2017-05-14 23:37:25.891 4567 ERROR senlin.engine.actions.base File "/root/senlin/senlin/engine/actions/base.py", line 423, in policy_check
2017-05-14 23:37:25.891 4567 ERROR senlin.engine.actions.base method(cluster_id, self)
2017-05-14 23:37:25.891 4567 ERROR senlin.engine.actions.base File "/root/senlin/senlin/policies/deletion_policy.py", line 170, in pre_op
2017-05-14 23:37:25.891 4567 ERROR senlin.engine.actions.base self._update_action(action, [action.node.id])
2017-05-14 23:37:25.891 4567 ERROR senlin.engine.actions.base AttributeError: 'NodeAction' object has no attribute 'node'
2017-05-14 23:37:25.891 4567 ERROR senlin.engine.actions.base
2017-05-14 23:37:25.966 4567 ERROR senlin.engine.event [req-c8693fcf-f297-441b-9deb-f2ca458b3a6f 299399a37dd347ecb7b5fef804dc7093 1a4dbf91c59a491cb75593dc5d6149b5 - - -] node-2f52b868-001 [bf0a71b5] NODE_DELETE - error: 'NodeAction' object has no attribute 'node'

chenyb4 (chenyb4)
Changed in senlin:
assignee: nobody → chenyb4 (chenyb4)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to senlin (master)

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

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

Reviewed: https://review.openstack.org/464574
Committed: https://git.openstack.org/cgit/openstack/senlin/commit/?id=cb58bfca6b9235efee7ad4487c307cbddbc7d736
Submitter: Jenkins
Branch: master

commit cb58bfca6b9235efee7ad4487c307cbddbc7d736
Author: Yuanbin.Chen <email address hidden>
Date: Mon May 15 16:52:12 2017 +0800

    Fix node-delete attribute node error

    This patch fix node-delete node attribute error, update 'action.node.id'
    to 'action.entity.id'

     Closes-Bug: #1690757

    Change-Id: Ia4e58dd685ac02ff0c7f92994a6bc2c3c11556e5
    Signed-off-by: Yuanbin.Chen <email address hidden>

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

This issue was fixed in the openstack/senlin 4.0.0.0b2 development milestone.

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.