[RFE] hook to run checks before departing relations
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Low
|
Unassigned |
Bug Description
This is a RFE (Request for Enhancement) for Juju.
Request for a new hook before departing all the relations for remove-unit execution.
This hook will provide the ability to do some application level checks when the application
is stable and block the removal of unit if the checks fail.
One of the use case:
remove-unit of nova-compute (in openstack) requires to check if any instances
are running on that compute node and delete the service from compute service
list. If in case, instances are running, remove-unit should be blocked.
This cannot be achieved in stop/remove hook since the application is not in
stable state.
(The relations are broken and application configurations are modified)
Similar discussion on Discourse (see last comment by enzoaguado Jun 11 on https:/
tags: | added: sts |
This issue became a need due to the bug 1873521