Failed to force delete a cluster

Bug #1847241 reported by Bo Tran
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
senlin
Confirmed
Undecided
Unassigned

Bug Description

Hi,

When i using senlin with branch master, and i try delete a cluster using and I was received error log:

2019-10-08 18:12:44.870 1274975 INFO senlin.engine.service [req-7326cee0-7929-427f-b462-b87e41e32d2b 3502ac4dda5247829c20b6561c5d188a 4a92824aa74445f28d7cf814a54ee283 - - -] Deleting cluster centos_cluster
2019-10-08 18:12:45.018 1274975 INFO senlin.engine.service [req-7326cee0-7929-427f-b462-b87e41e32d2b 3502ac4dda5247829c20b6561c5d188a 4a92824aa74445f28d7cf814a54ee283 - - -] Cluster delete action queued: 68193610-6e14-42d9-b4f8-dff71533128a
2019-10-08 18:12:45.173 1274975 INFO senlin.engine.event [req-7326cee0-7929-427f-b462-b87e41e32d2b 3502ac4dda5247829c20b6561c5d188a 4a92824aa74445f28d7cf814a54ee283 - - -] centos_cluster[ea83c195] CLUSTER_DELETE[68193610] start: 68193610
2019-10-08 18:12:45.377 1274976 INFO senlin.engine.health_manager [req-f56842d6-776c-4711-9549-c64ab719bb9e - - - - -] Unregistering health check for cluster ea83c195-c79f-42f5-8026-d0580577ce72.
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base [req-f56842d6-776c-4711-9549-c64ab719bb9e - - - - -] Unexpected exception occurred during action CLUSTER_DELETE (68193610-6e14-42d9-b4f8-dff71533128a) execution: 'NoneType' object has no attribute 'name': AttributeError: 'NoneType' object has no attribute 'name'
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base Traceback (most recent call last):
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base File "/opt/stack/senlin/senlin/engine/actions/base.py", line 673, in ActionProc
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base result, reason = action.execute()
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base File "/opt/stack/senlin/senlin/engine/actions/cluster_action.py", line 1212, in execute
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base res, reason = self._execute(**kwargs)
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base File "/opt/stack/senlin/senlin/engine/actions/cluster_action.py", line 1179, in _execute
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base result, reason = method()
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base File "/opt/stack/senlin/env-senlin/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 160, in wrapper
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base result = f(*args, **kwargs)
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base File "/opt/stack/senlin/senlin/engine/actions/cluster_action.py", line 505, in do_delete
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base policy.policy_id)
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base File "/opt/stack/senlin/senlin/engine/cluster.py", line 411, in detach_policy
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base res, reason = policy.detach(self)
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base File "/opt/stack/senlin/senlin/policies/lb_policy.py", line 407, in detach
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base cluster.id, self.id)
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base File "/opt/stack/senlin/senlin/engine/cluster_policy.py", line 90, in load
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base return cls._from_object(context, binding)
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base File "/opt/stack/senlin/senlin/engine/cluster_policy.py", line 74, in _from_object
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base 'cluster_name': obj.cluster.name,
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base AttributeError: 'NoneType' object has no attribute 'name'
2019-10-08 18:12:45.745 1274975 ERROR senlin.engine.actions.base
2019-10-08 18:12:45.835 1274975 ERROR senlin.engine.event [req-f56842d6-776c-4711-9549-c64ab719bb9e - - - - -] centos_cluster[ea83c195] CLUSTER_DELETE[68193610] error: 'NoneType' object has no attribute 'name'

To get this log, i was perform with steps:

1. Create a cluster with profile type os.nova
2. Attach above cluster with health policy
3. Attach above cluster with load balancer policy
4. Do delete above cluster.

with above steps, in some case, i can also delete success but if i do this many. i will being received error log.

description: updated
Revision history for this message
Duc Truong (dtruong) wrote :

Yes, I also have seen this bug. The cluster gets deleted correctly, but the logs show that error.

Changed in senlin:
status: New → Confirmed
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.