Description of problem:
Version-Release number of selected component (if applicable):
Red Hat Virtualization Manager Version: 126.96.36.199-0.1.el7ev
Steps to Reproduce:
1. Create Cluster with power management enabled. (CISCO_UCS)
2. Put the host on maintenance so that the vms running on this will migrate to other host.
3. Now After going into "MAINTENANCE" status, try to reboot host by going to Power Management > Restart
Error screen appears:
Are you sure you want to Restart the following Host(s), ungracefully stopping running VM(s)?
Error messages displayed even the host does not have any VMs running on it.
# vdsClient -s 0 list table --> Shows nothing
# ps aux | grep qemu --> shows nothing
Messages should not be there.
Created attachment 1246335 [details]
Power Management Restart of the host can be executed even when host is Up (not only in Maintenance), so that's why we show this warning. This warning is shown in webadmin so if we checked for a host status and we didn't display warning if host was in Maintenance, it may not be enough, because host status could change in the mean time.
So from my point of view executing PM restart is a bit dangerous operation, so I'd prefer to not change current behaviour (display warning always) instead if adding a check for host status which may not be reliable.
We have discussed offline, Ravi could you please change the message in dialog to:
Are you sure you want to Restart the following Host(s)? If there are any VM(s) running on the host, they will be ungracefully stopped.
Verified on 4.1.1-2