crmsh
crmsh copied to clipboard
Dev: ui_resource: Give warning start/stop/restart if "is-managed" or "maintenance" get detected
It should better to give warning when start/stop/restart a RA while this RA is in unmanaged
mode
Add checking items in is_managed
:
- check if all nodes are in maintenance
- check if node running this resource is in maintenance
- check the rsc maintenance meta attribute
Example:
# crm resource start d
WARNING: resource.start: Resource d is unmanaged (cluster property maintenance-mode is true)
# crm resource stop d
WARNING: resource.stop: Resource d is unmanaged (node which running "d" is in maintenance)
# crm node standby 15sp2-1
WARNING: node.standby: Node "15sp2-1" is in maintenance