cluster-node-add faild
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
senlin |
New
|
Undecided
|
chenyb4 |
Bug Description
When use senlin cluster-node-add has exist node,the node add faild, but the cluster-node-list record faild node message:
Add node to cluster:
# senlin cluster-node-add -n fabian_test cluster_001
WARNING (shell) "senlin cluster-node-add" is deprecated and will be removed by Apr 2017, please use "openstack cluster node members add" instead.
Request accepted by action: 6ae85970-
# senlin cluster-node-list cluster_001
WARNING (shell) "senlin cluster-node-list" is deprecated and will be removed by Apr 2017, please use "openstack cluster members list" instead.
+------
| id | name | index | status | physical_id | created_at |
+------
| 8f3f7cd1 | node-cbab4413-006 | 6 | ACTIVE | df8e0cf9 | 2017-07-
| 32b56212 | fabian_test | 7 | ACTIVE | 76ec24b9 | 2017-07-
+------
The cluster detail desired_capacity error:
# senlin cluster-show cluster_001
WARNING (shell) "senlin cluster-show" is deprecated and will be removed by Apr 2017, please use "openstack cluster show" instead.
+------
| Property | Value |
+------
| config | {} |
| created_at | 2017-05-
| data | {} |
| dependents | {} |
| desired_capacity | 1 |
| domain_id | - |
| id | cbab4413-
| init_at | 2017-05-
| location | - |
| max_size | 5 |
| metadata | {} |
| min_size | 0 |
| name | cluster_001 |
| node_ids | 32b56212-
| | 8f3f7cd1-
| profile_id | 8c7ca125-
| profile_name | profile_nova |
| project_id | 631b9209a992429
| status | ACTIVE |
| status_reason | CLUSTER_RESIZE: number of active nodes is equal or above desired_capacity (1). |
| timeout | 300 |
| updated_at | 2017-07-
| user_id | 0ed165520f9b443
+------
Log message:
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.139 2440 ERROR senlin.
2017-07-26 03:08:11.215 2440 ERROR senlin.engine.event [req-cec6fc0b-
2017-07-26 03:08:12.911 2441 DEBUG senlin.
2017-07-26 03:08:12.971 2441 ERROR senlin.engine.event [req-cec6fc0b-
So, I think cluster node add faild, the cluster it should not be recorded faild node message.
In the following way, the bug will appear
1. senlin node-create -p xxx xxxx
2. nova delete obj_name
3. senlin cluster-node-add obj_name
Changed in senlin: | |
assignee: | nobody → chenyb4 (chenyb4) |
When execute cluster- node-add, you must perform the node's current state detection. The node status of database records is not updated every moment.