salt modules: debian_ip: Accept uppercase ifaces 85/46585/2
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 2 Nov 2017 18:36:23 +0000 (19:36 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 3 Nov 2017 15:43:41 +0000 (16:43 +0100)
Since VMs are not affected by this limitation, only apply the fixup
to baremetal nodes.

JIRA: FUEL-299

Change-Id: Ib94c481627538d900295df03b8c8fdc7b61cd718
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
mcp/config/states/virtual_control_plane

index 0650869..9ebf4bf 100755 (executable)
@@ -13,6 +13,9 @@ CI_DEBUG=${CI_DEBUG:-0}; [[ "${CI_DEBUG}" =~ (false|0) ]] || set -x
 source "$(dirname "${BASH_SOURCE[0]}")/../../scripts/lib.sh"
 
 # KVM, compute node prereqs (libvirt first), VCP deployment
+salt -C 'kvm* or cmp*' file.line \
+  /usr/lib/python2.7/dist-packages/salt/modules/debian_ip.py \
+  content='iface = iface.lower()' mode='delete'
 salt -C 'kvm*' pkg.install bridge-utils
 salt -C 'kvm*' state.apply linux.network
 salt -C 'cmp*' state.apply linux.system