Description of problem:
When user restarts a host while the proxy host is in a different cluster.
the following events are logged in the events tab:
Failed to restart Host aqua-6, (User: vdcadmin).
Failed to stop Host aqua-6, (User: vdcadmin).
Failed to power fence host aqua-6. Please check the host status and it's power management settings, and then manually reboot it and click "Confirm Host Has Been Rebooted"
Version-Release number of selected component (if applicable):
sf6
How reproducible:
always
Steps to Reproduce:
1. host-1 in cluster-1 in dc-1
2. host-2 in cluster-2 in dc-1 (status = Maintenance)
3. fence restart host-1
Actual results:
the misleading events
Failed to restart Host aqua-6, (User: vdcadmin).
Failed to stop Host aqua-6, (User: vdcadmin).
Failed to power fence host aqua-6. Please check the host status and it's power management settings, and then manually reboot it and click "Confirm Host Has Been Rebooted"
Expected results:
I would expect something like this:
host-2 is picked as a proxy and is sending restart command to host1
host-1 is restarting
host-1 is up
Additional info:
2013-02-11 16:13:23,718 INFO [org.ovirt.engine.core.bll.FenceExecutor] (pool-3-thread-49) [3c5dfc13] Atempt 3 to find fence proxy host failed...
2013-02-11 16:13:53,718 ERROR [org.ovirt.engine.core.bll.FenceExecutor] (pool-3-thread-49) [3c5dfc13] Failed to run Power Management command on Host aqua-6, no running proxy Host was found.
2013-02-11 16:13:53,751 ERROR [org.ovirt.engine.core.bll.RestartVdsCommand] (pool-3-thread-49) [3c5dfc13] Transaction rolled-back for command: org.ovirt.engine.core.bll.RestartVdsCommand.
2013-02-11 16:13:53,751 WARN [org.ovirt.engine.core.bll.RestartVdsCommand] (pool-3-thread-49) [3c5dfc13] Restart host action failed, updating host 460469c6-2144-476e-9c23-ba1f3c269f5c to No
nResponsive
2013-02-11 16:13:53,770 INFO [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (pool-3-thread-49) [3c5dfc13] START, SetVdsStatusVDSCommand(HostName = aqua-6, HostId = 460469c6-2144-4
76e-9c23-ba1f3c269f5c, status=NonResponsive, nonOperationalReason=NONE), log id: 13217481
2013-02-11 16:13:53,771 INFO [org.ovirt.engine.core.vdsbroker.SetVdsStatusVDSCommand] (pool-3-thread-49) [3c5dfc13] FINISH, SetVdsStatusVDSCommand, log id: 13217481
2013-02-11 16:13:55,659 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.GetHardwareInfoVDSCommand] (QuartzScheduler_Worker-43) [6c149253] START, GetHardwareInfoVDSCommand(HostName = aqua-6, HostId = 460469c6-2144-476e-9c23-ba1f3c269f5c, vds=Host[aqua-6]), log id: 12e407aa
From the logs it seems that you are failing to get a proxy at all
The message :
"Failed to run Power Management command on Host <name>, no running proxy Host was found." is generated only after looping all proxy preferences (cluster,dc by default) while no proxy is found.
Please provide the following query output
1)
select * from vdc_options where option_name = 'FenceProxyDefaultPreferences';
2)
select vds_name, pm_proxy_preferences from vds_static;