Browse Source

Merge "Ensure lanplus is unset when using redfish" into stable/ussuri

changes/91/738091/1
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
759d2774a5
2 changed files with 2 additions and 4 deletions
  1. +0
    -1
      tripleo_common/tests/utils/test_stack_parameters.py
  2. +2
    -3
      tripleo_common/utils/stack_parameters.py

+ 0
- 1
tripleo_common/tests/utils/test_stack_parameters.py View File

@@ -598,7 +598,6 @@ class StackParametersTest(base.TestCase):
"delay": 28,
"ipaddr": "172.16.0.1:8000",
"ipport": "8000",
"lanplus": True,
"privlvl": 5,
"login": "root",
"passwd": "calvin",


+ 2
- 3
tripleo_common/utils/stack_parameters.py View File

@@ -170,12 +170,13 @@ def generate_fencing_parameters(ironic, compute, nodes_json, delay,

if driver_proto in {'ipmi', 'ipmitool', 'drac', 'idrac', 'ilo',
'redfish'}:
# IPMI fencing driver
if driver_proto == "redfish":
node_data["agent"] = "fence_redfish"
params["systems_uri"] = node["pm_system_id"]
else:
node_data["agent"] = "fence_ipmilan"
if ipmi_lanplus:
params["lanplus"] = ipmi_lanplus
params["ipaddr"] = node["pm_addr"]
params["passwd"] = node["pm_password"]
params["login"] = node["pm_user"]
@@ -189,8 +190,6 @@ def generate_fencing_parameters(ironic, compute, nodes_json, delay,
params["ssl_insecure"] = "true"
else:
params["ssl_insecure"] = "false"
if ipmi_lanplus:
params["lanplus"] = ipmi_lanplus
if delay:
params["delay"] = delay
if ipmi_cipher:


Loading…
Cancel
Save