Detaching health policy fails to remove health check
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
senlin |
Fix Released
|
Undecided
|
Duc Truong |
Bug Description
Steps to reproduce:
1. Create cluster with min size 1 and desired capacity 1
2. Create health policy and attach to cluster
3. Scale-in cluster
4. Detach health policy. This will generate a traceback in logs:
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
2019-01-09 23:09:13.645 TRACE senlin.
The cluster scale-in operation will fail because it would take the cluster size below the min size. The scale-in operation disables the health checks and tries to execute the scale-in. However, after the scale-in fails, it does not enable the health checks again. Then when we try to detach the health policy, it fails with a traceback because the health check has been previously disabled.
Changed in senlin: | |
assignee: | nobody → Duc Truong (dtruong) |
status: | New → In Progress |
description: | updated |
Fix proposed to branch: master /review. openstack. org/629689
Review: https:/