mark-unhealthy by physical resource ID
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Wishlist
|
Zane Bitter |
Bug Description
The resource mark-unhealthy command identifies the resource to be marked unhealthy by stack ID and resource name. This is particularly convenient for a user marking a resource unhealthy manually.
However, when a script or workflow is marking a resource unhealthy (e.g. based on an alarm), it would be more convenient to specify the physical resource ID. Not only would that save looking up the resource name, but it would avoid a race condition that could occur where continued problems with the old resource could end up marking the replacement as unhealthy.
To avoid any race, we'd need to atomically look up a resource by physical ID (we already have code to do this) and mark it as unhealthy.
Changed in heat: | |
assignee: | nobody → Tanvir Talukder (tanvirt16) |
Changed in heat: | |
milestone: | ocata-1 → ocata-2 |
Changed in heat: | |
assignee: | Tanvir Talukder (tanvirt16) → Zane Bitter (zaneb) |
Fix proposed to branch: master /review. openstack. org/395124
Review: https:/