cluster lock can not be release
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
senlin |
Fix Committed
|
Undecided
|
Duc Truong |
Bug Description
senlin/ocata
when a cluster was locked by some action
mysql> select * from cluster_lock;
+------
| cluster_id | action_ids | semaphore |
+------
| 5e72360f-
+------
this lock can not be released , the later action will grap clock ,but failed ,if this cluster has a health check, it will be
| e2b972dc | detach_
| 3eb530e9 | detach_
| 0c5704f2 | detach_
I simulation this Scenes by CLUSTER_
if this is a check action,these action will increase by time,senlin-engine pressure is getting bigger and bigger
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4051 admin 20 0 261732 103780 5420 R 26.8 0.6 35:57.72 senlin-engine
13411 rabbitmq 20 0 5374964 911292 2580 S 7.0 5.5 1509:29 beam.smp
2525 nova 20 0 506244 97080 2336 S 5.0 0.6 1694:25 nova-conductor
7798 influxdb 20 0 1209724 174092 7336 S 5.0 1.1 217:16.46 influxd
at last,all action will timeout. I think senlin should has a function to release the cluster lock
ccfdb158 | webhook_76631dc0 | CLUSTER_SCALE_OUT | FAILED | a260a9f6 | | | 2017-10- 22T07:52: 05Z | 22T07:52: 35Z | 22T07:53: 05Z | 22T07:53: 35Z | 22T07:54: 05Z | 22T07:54: 36Z | 22T07:55: 06Z | 22T07:55: 37Z | 22T07:56: 07Z | 22T07:56: 37Z | 22T07:57: 07Z | 22T07:57: 38Z | 22T07:58: 10Z | 22T07:58: 40Z | 22T07:59: 09Z | 22T07:59: 41Z | ----+-- ------- ------- ------- -----+- ------- ------- ------- -+----- ------+ ------- ----+-- ------- ---+--- ------- ---+--- ------- ------- -----+
| 68b18716 | webhook_76631dc0 | CLUSTER_SCALE_OUT | FAILED | a260a9f6 | | | 2017-10-
| c3be7de2 | webhook_76631dc0 | CLUSTER_SCALE_OUT | RUNNING | a260a9f6 | | | 2017-10-
| dc191a32 | webhook_76631dc0 | CLUSTER_SCALE_OUT | RUNNING | a260a9f6 | | | 2017-10-
| 866ead83 | webhook_76631dc0 | CLUSTER_SCALE_OUT | RUNNING | a260a9f6 | | | 2017-10-
| 87f3d245 | webhook_76631dc0 | CLUSTER_SCALE_OUT | RUNNING | a260a9f6 | | | 2017-10-
| b0bbd9fa | webhook_76631dc0 | CLUSTER_SCALE_OUT | RUNNING | a260a9f6 | | | 2017-10-
| ae89a892 | webhook_76631dc0 | CLUSTER_SCALE_OUT | RUNNING | a260a9f6 | | | 2017-10-
| 127fcc26 | webhook_76631dc0 | CLUSTER_SCALE_OUT | RUNNING | a260a9f6 | | | 2017-10-
| 11bc01c5 | webhook_76631dc0 | CLUSTER_SCALE_OUT | RUNNING | a260a9f6 | | | 2017-10-
| 66071adb | webhook_76631dc0 | CLUSTER_SCALE_OUT | RUNNING | a260a9f6 | | | 2017-10-
| bbcc478c | webhook_76631dc0 | CLUSTER_SCALE_OUT | RUNNING | a260a9f6 | | | 2017-10-
| 4868f63a | webhook_76631dc0 | CLUSTER_SCALE_OUT | RUNNING | a260a9f6 | | | 2017-10-
| cff6c1a6 | webhook_76631dc0 | CLUSTER_SCALE_OUT | RUNNING | a260a9f6 | | | 2017-10-
| 70d777f9 | webhook_76631dc0 | CLUSTER_SCALE_OUT | RUNNING | a260a9f6 | | | 2017-10-
| 146ec5bc | webhook_76631dc0 | CLUSTER_SCALE_OUT | RUNNING | a260a9f6 | | | 2017-10-
+------
I met this problem again
mysql> select * from cluster_lock; ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- -----+- ------- ---+ ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- -----+- ------- ---+ 33e0-44b8- 90e7-5cd29889a2 dc | ["68b18716- a104-4ca1- 9022-af1c45a977 43"] | -1 | ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- -----+- ------- ---+
+------
| cluster_id | action_ids | semaphore |
+------
| a260a9f6-
+------
this lock can not be release