Fix cluster config update
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
senlin |
Fix Released
|
High
|
liyi |
Bug Description
cluster config property can not be updated using API 'PATCH /v1/clusters/
Reproduce step:
1. call 'POST /v1/clusters' to create a cluster with body:
{
"cluster": {
"config": {"key1": "value1"},
"max_size": -1,
"metadata": {},
"min_size": 0,
"name": "mycluster",
"timeout": null
}
}
2. show the cluster with API '', output:
{
"cluster": {
"config": {
"key1": "value1"
},
"created_at": "2017-07-
"data": {},
"dependents": {},
"desired_
"domain": null,
"id": "faad15af-
"init_at": "2017-07-
"max_size": -1,
"metadata": {},
"min_size": 0,
"name": "mycluster",
"nodes": [],
"policies": [],
"profile_id": "853e46d8-
"profile_name": "stack_profile",
"project": "f1fe61dcda2f46
"status": "ACTIVE",
"status_
"timeout": 3600,
"updated_at": "2017-07-
"user": "8bcd2cdca7684c
}
}
The config property is correct!
3. update cluster with config '{"key1": "value-modify"}':
{
"cluster": {
"config": {"key1": "value-modify"}
}
}
4. show cluster detail:
{
"cluster": {
"config": {
"key1": "value1"
},
"created_at": "2017-07-
"data": {},
"dependents": {},
"desired_
"domain": null,
"id": "faad15af-
"init_at": "2017-07-
"max_size": -1,
"metadata": {},
"min_size": 0,
"name": "mycluster",
"nodes": [],
"policies": [],
"profile_id": "853e46d8-
"profile_name": "stack_profile",
"project": "f1fe61dcda2f46
"status": "ACTIVE",
"status_
"timeout": 3600,
"updated_at": "2017-07-
"user": "8bcd2cdca7684c
}
}
The config property didn't be updated.
Changed in senlin: | |
assignee: | nobody → liyi (whyliyi) |
Changed in senlin: | |
importance: | Undecided → High |
Fix proposed to branch: master /review. openstack. org/483146
Review: https:/