Extend fencing to hosts using fence_kubevirt agent.

This commit extends the fencing class allowing operators to use
fence_kubevirt for nodes running on kubevirt / CNV.

Depends-On: I18fd2297063c7157d6b743c7fc9c161bf23dca39
Change-Id: I4f4658b3320c2cce2cf302dbb5f99bb463bd22ca
(cherry picked from commit 90005dd883)
(cherry picked from commit 2addd1d549)
This commit is contained in:
Martin Schuppert 2021-09-01 14:51:35 +02:00
parent 147f098f9a
commit b5b19bc5c3

View File

@ -134,6 +134,9 @@ class tripleo::fencing(
$kdump_devices = local_fence_devices('fence_kdump', $all_devices)
create_resources('pacemaker::stonith::fence_kdump', $kdump_devices, $common_params)
$kubevirt_devices = local_fence_devices('fence_kubevirt', $all_devices)
create_resources('pacemaker::stonith::fence_kubevirt', $kubevirt_devices, $common_params)
$rhev_devices = local_fence_devices('fence_rhevm', $all_devices)
create_resources('pacemaker::stonith::fence_rhevm', $rhev_devices, $common_params)
@ -142,8 +145,8 @@ class tripleo::fencing(
$data = {
'xvm' => $xvm_devices, 'ironic' => $ironic_devices, 'redfish' => $redfish_devices,
'ipmilan' => $ipmilan_devices, 'kdump' => $kdump_devices, 'rhevm' => $rhev_devices,
'cisco_ucs' => $ucs_devices
'ipmilan' => $ipmilan_devices, 'kdump' => $kdump_devices, 'kubevirt' => $kubevirt_devices,
'rhevm' => $rhev_devices, 'cisco_ucs' => $ucs_devices
}
$data.each |$items| {