crmsh icon indicating copy to clipboard operation
crmsh copied to clipboard

Dev: ui_resource: Give warning start/stop/restart if "is-managed" or "maintenance" get detected

Open liangxin1300 opened this issue 3 years ago • 0 comments

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

liangxin1300 avatar Aug 06 '21 03:08 liangxin1300