re-enable bios_template to setup hardware 04/1904/1
authordavidplunkett <dp7642@att.com>
Mon, 4 Nov 2019 03:24:24 +0000 (03:24 +0000)
committerdavidplunkett <dp7642@att.com>
Mon, 4 Nov 2019 03:24:24 +0000 (03:24 +0000)
Re-enable bios_template option to setup hardware for master
and worker nodes.

Signed-off-by: davidplunkett <dp7642@att.com>
Change-Id: I174fa3f64bbb8f0ea9815b94cc924d40eb2aa68a

dellgen10-sriov-a13.yaml
scripts/update_bios_settings.py
tools/2genesis.sh

index c4e22a2..f18d764 100644 (file)
@@ -235,7 +235,7 @@ hardware:
   generation: '10'
   hw_version: '3'
   bios_version: '2.8'
-  bios_template: 
+  bios_template: dell_r740_g14_uefi_base.xml.template
   boot_template: dell_r740_g14_uefi_httpboot.xml.template
   http_boot_device: NIC.Slot.2-1-1
   device_aliases:
index 1412dfc..a7d6ff1 100644 (file)
@@ -32,6 +32,9 @@ def create_node_rcfile(nodes, defaults, j2template, rcfile_suffix):
   if type(nodes) is list:
     for node in nodes:
       newnode = dict( defaults.items() + node.items() )
+      if not "bios_template" in newnode or not newnode["bios_template"]:
+        print 'Skipping host {} because of missing or empty key [bios_template]'.format(newnode['name'])
+        continue
       data = template.render(yaml=newnode)
       rcfile = "server-config/"+newnode['name']+rcfile_suffix
       print rcfile
index 2d63bf4..ca1941e 100755 (executable)
@@ -61,7 +61,7 @@ ssh $GENESIS_HOST << EOF
 EOF
 
 # Update BIOS settings on master and worker nodes
-#python $YAML_BUILDS/scripts/update_bios_settings.py $SITE.yaml
+python $YAML_BUILDS/scripts/update_bios_settings.py $SITE.yaml
 
 echo "#######################################"
 echo "# $0 finished"