-
Bug
-
Resolution: Done
-
High
-
None
During the Unicycle deployment, the Genesis node completed the installation and started with the next Master node.
When executing the update_bios_settings.py script, it failed with the following error:
server-config/aknode23rc.raid
tools/j2/serverrc_raid.j2 -> server-config/aknode23rc.raid
Traceback (most recent call last):
File "/opt/akraino/yaml_builds/scripts/update_bios_settings.py", line 81, in <module>
create_node_rcfile(siteyaml["masters"], defaults, "tools/j2/serverrc_raid.j2", "rc.raid")
File "/opt/akraino/yaml_builds/scripts/update_bios_settings.py", line 50, in create_node_rcfile
command = '/opt/akraino/redfish/apply_dellxml.sh --rc {0} --template {1} --no-confirm'.format(rcfile, newnode["bios_template"])
KeyError: 'bios_template'
After looking at the script we noticed that the path for the serverrc_raid.j2 file in the update_bios_settings.py script is incorrect. The script shows the following path:
if 'masters' in siteyaml:
create_node_rcfile(siteyaml["masters"], defaults, "tools/j2/serverrc_raid.j2", "rc.raid")
But the tools directory isn't in the parent directory of scripts. The serverrc_raid.j2 directory path is as follows:
root@aknode29:/opt/akraino/yaml_builds/tools/j2# ls
serverrc.j2 serverrc_raid.j2 set_site_env.sh
The update_bios_settings.py script needs to be correct to reflect the correct directory path for the serverrc_raid.j2 file.