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.
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-b87e41e32d 2b 3502ac4dda52478 29c20b6561c5d18 8a 4a92824aa74445f 28d7cf814a54ee2 83 - - -] Deleting cluster centos_cluster engine. service [req-7326cee0- 7929-427f- b462-b87e41e32d 2b 3502ac4dda52478 29c20b6561c5d18 8a 4a92824aa74445f 28d7cf814a54ee2 83 - - -] Cluster delete action queued: 68193610- 6e14-42d9- b4f8-dff7153312 8a 7929-427f- b462-b87e41e32d 2b 3502ac4dda52478 29c20b6561c5d18 8a 4a92824aa74445f 28d7cf814a54ee2 83 - - -] centos_ cluster[ ea83c195] CLUSTER_ DELETE[ 68193610] start: 68193610 engine. health_ manager [req-f56842d6- 776c-4711- 9549-c64ab719bb 9e - - - - -] Unregistering health check for cluster ea83c195- c79f-42f5- 8026-d0580577ce 72. engine. actions. base [req-f56842d6- 776c-4711- 9549-c64ab719bb 9e - - - - -] Unexpected exception occurred during action CLUSTER_DELETE (68193610- 6e14-42d9- b4f8-dff7153312 8a) execution: 'NoneType' object has no attribute 'name': AttributeError: 'NoneType' object has no attribute 'name' engine. actions. base Traceback (most recent call last): engine. actions. base File "/opt/stack/ senlin/ senlin/ engine/ actions/ base.py" , line 673, in ActionProc engine. actions. base result, reason = action.execute() engine. actions. base File "/opt/stack/ senlin/ senlin/ engine/ actions/ cluster_ action. py", line 1212, in execute engine. actions. base res, reason = self._execute( **kwargs) engine. actions. base File "/opt/stack/ senlin/ senlin/ engine/ actions/ cluster_ action. py", line 1179, in _execute engine. actions. base result, reason = method() engine. actions. base File "/opt/stack/ senlin/ env-senlin/ local/lib/ python2. 7/site- packages/ osprofiler/ profiler. py", line 160, in wrapper engine. actions. base result = f(*args, **kwargs) engine. actions. base File "/opt/stack/ senlin/ senlin/ engine/ actions/ cluster_ action. py", line 505, in do_delete engine. actions. base policy.policy_id) engine. actions. base File "/opt/stack/ senlin/ senlin/ engine/ cluster. py", line 411, in detach_policy engine. actions. base res, reason = policy.detach(self) engine. actions. base File "/opt/stack/ senlin/ senlin/ policies/ lb_policy. py", line 407, in detach engine. actions. base cluster.id, self.id) engine. actions. base File "/opt/stack/ senlin/ senlin/ engine/ cluster_ policy. py", line 90, in load engine. actions. base return cls._from_ object( context, binding) engine. actions. base File "/opt/stack/ senlin/ senlin/ engine/ cluster_ policy. py", line 74, in _from_object engine. actions. base 'cluster_name': obj.cluster.name, engine. actions. base AttributeError: 'NoneType' object has no attribute 'name' engine. actions. base 776c-4711- 9549-c64ab719bb 9e - - - - -] centos_ cluster[ ea83c195] CLUSTER_ DELETE[ 68193610] error: 'NoneType' object has no attribute 'name'
2019-10-08 18:12:45.018 1274975 INFO senlin.
2019-10-08 18:12:45.173 1274975 INFO senlin.engine.event [req-7326cee0-
2019-10-08 18:12:45.377 1274976 INFO senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.745 1274975 ERROR senlin.
2019-10-08 18:12:45.835 1274975 ERROR senlin.engine.event [req-f56842d6-
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.