Description of problem: When adding a custom fencing agent following example two from http://www.ovirt.org/Custom_Fencing#oVirt_3.5 , a CustomVdsFenceOptionMapping has to be set. If it is unset, testing pm will fail with: 2015-02-05 19:31:08,963 ERROR [org.ovirt.engine.core.bll.FenceExecutor] (ajp--127.0.0.1-8702-1) Failed to run Power Management command on Host , no running proxy Host was found. In the logs and: Test Failed, There is no other host in the data center that can be used to test the power management settings. In the web-interface. Setting CustomVdsFenceOptionMapping in vdc_options resolves this issue, and the fencing-agent behaves as expected. This is annoying, especially if no such mapping is needed, i.e. in case of intel-modular. A self-mapping however also works around the bug. 682 | CustomVdsFenceOptionMapping | intelmodular:port=port | general How reproducible: Steps to Reproduce: 1. Create custom fence-script in /usr/sbin/fence_yyy 2. engine-config -s CustomVdsFenceType="yyy" 3. engine-config -s CustomFencePowerWaitParam="yyy=power_wait" Actual results: Fencing/Powermanagement is not performed, with the aforementioned error. Expected results: Powermanagement is performed as intended.
removed 3.5.0 flag to allow tr 3.5.1, this still need a 3.5.z flag approved.
By design each custom agent should appear in the CustomVdsFenceOptionMapping if you have no option for intelmodular then the value of CustomVdsFenceOptionMapping should be "intelmodular:" Please try that and report your findings
Working. Suggest closing this not-a-bug then. Still, it would kind of be nice to see this reflected in the corresponding documentation.
revise that. With options set as you suggested, i can configure it correctly (adding port=N in the options field), and a test succeedes. After saving the configuration, the port-parameter however disappears from the options list, and power-management fails as the plug-specification is missing.
I had updated the documentation to include what you had suggested in comment #4 Can you please specify why you are sending the port field in the options and not using the dedicated port field with the corresponding mappings ?
Because there is no port-field if CustomVdsFenceOptionMapping is set to "intelmodular:". If it is set to "intelmodular:port=port" a field labled "SSH-Port" appears.
There are only two options 1) If the PM card requires port then the value should be in the UI SSH Port field and the CustomVdsFenceOptionMapping should map the port to the real parameter of the fence agent ("intelmodular:port=port" for intel modular) 2) If the PM card does not require port then it should appear in CustomVdsFenceOptionMapping with empty settings ("yyy:")
1), i guess. Closing not a bug. Seems like i did not really wrap my head around this mapping stuff yet. Sorry for bothering.