problem
The resetConfiguration API returns success but fails to actually reset certain cluster-scoped configurations to their default values. Specifically observed with cpu.overprovisioning.factor (Decimal type).
versions
ACS 4.22 (probably exists on previous version as well)
The steps to reproduce the bug
- Ensure a cluster exists with a modified cpu.overprovisioning.factor value (e.g., 2.0 instead of default 1.0)
- Attempt to reset the configuration via CLI:
reset configuration name=cpu.overprovisioning.factor clusterid=<CLUSTER_ID>
- Verify the value after reset:
list configurations clusterid=<CLUSTER_ID> name=cpu.overprovisioning.factor
Expected Behavior
- The resetConfiguration API should reset the value to the default (1.0)
- The returned response should show "value": "1.0"
- Subsequent list configurations should show "value": "1.0"
Actual Behavior
- The API returns a response indicating success with "value": "2" (truncated, should be 1.0)
- The actual value remains 2.0 (unchanged)
- The configuration is NOT reset to its default value
Evidence
(localcloud) 🐱 > list configurations clusterid=39ae3d32-8d5e-460e-a056-5004d5dbb908 name=cpu.overprovisioning.factor
{
"configuration": [
{
"defaultvalue": "1.0",
"name": "cpu.overprovisioning.factor",
"scope": "cluster",
"type": "Decimal",
"value": "2.0"
}
]
}
- attempt to reset config to default
(localcloud) 🐱 > reset configuration name=cpu.overprovisioning.factor clusterid=39ae3d32-8d5e-460e-a056-5004d5dbb908
{
"configuration": {
"defaultvalue": "1.0",
"name": "cpu.overprovisioning.factor",
"scope": "Cluster",
"type": "Decimal",
"value": "2"
}
}
(localcloud) 🐱 > list configurations clusterid=39ae3d32-8d5e-460e-a056-5004d5dbb908 name=cpu.overprovisioning.factor
{
"configuration": [
{
"defaultvalue": "1.0",
"name": "cpu.overprovisioning.factor",
"value": "2.0" <-- NOT RESET
}
]
}
Environment 2: 10.0.32.242 (without PR #11728)
(localcloud) 🐱 > list configurations clusterid=2347bf43-ab8e-4987-a62d-9588b622f647 name=cpu.overprovisioning.factor
{
"configuration": [
{
"defaultvalue": "1.0",
"name": "cpu.overprovisioning.factor",
"scope": "cluster",
"type": "Decimal",
"value": "2.0" <-- NOT RESET
}
]
}
- works on the Global settings level
What to do about it?
No response
problem
The
resetConfigurationAPI returns success but fails to actually reset certain cluster-scoped configurations to their default values. Specifically observed withcpu.overprovisioning.factor(Decimal type).versions
ACS 4.22 (probably exists on previous version as well)
The steps to reproduce the bug
Expected Behavior
Actual Behavior
Evidence
What to do about it?
No response