From 84603a06af326fbc4ca09fa7c28d9a44a80f1f42 Mon Sep 17 00:00:00 2001 From: David Vallee Delisle Date: Mon, 29 Oct 2018 12:53:57 -0400 Subject: [PATCH] Generating fencing for capitalized MACs Because the ports are stored in lower case, we need to use lower case MACs as our search key. Change-Id: I7e3727987265ef5222c95678c69cc4a50176dd16 Closes-Bug: #1800504 --- tripleo_common/actions/parameters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tripleo_common/actions/parameters.py b/tripleo_common/actions/parameters.py index eb2b9af2b..e64ae3451 100644 --- a/tripleo_common/actions/parameters.py +++ b/tripleo_common/actions/parameters.py @@ -394,7 +394,7 @@ class GenerateFencingParametersAction(base.TripleOAction): if "ports" in node: # Not all Ironic drivers present a MAC address, so we only # capture it if it's present - mac_addr = node['ports'][0]['address'] + mac_addr = node['ports'][0]['address'].lower() node_data["host_mac"] = mac_addr # If the MAC isn't in the hostmap, this node hasn't been