Description of problem: I converted my nic-configs and updated the swift plan. The GUI stopped working and kept giving me this error: Deployment parameters could not be loaded 400 Client Error: Bad Request for url: https://puma01.scl.lab.tlv.redhat.com:13808/usr/share/openstack-tripleo-heat-templates/network/scripts/run-os-net-config.sh You can see from the error message that the path to the file is absolute, and not relative to the plan. The path should just be "network/scripts/run-os-net-config.sh". Looking in the converted nic-configs, I see this: get_file: /usr/share/openstack-tripleo-heat-templates/network/scripts/run-os-net-config.sh The path should have been relative... Version-Release number of selected component (if applicable): openstack-tripleo-heat-templates-8.0.2-0.20180414062830.5f869f2.el7ost.noarch How reproducible: 100% Steps to Reproduce: 1. Convert your nic-configs from OSP12: /usr/share/openstack-tripleo-heat-templates/tools/yaml-nic-config-2-script.py <<nic-config-file>> 2. Look for absolute paths in the converted file Actual results: There are absolute path in the file, which will only work if you deploy from the CLI but not for GUI users Expected results: Paths should be relative and point inside the plans
The script takes an optional parameter to define a relative path for the script file. By default it will use an absolute path but if you want a relative just define it using --script-dir when using the script. $ /usr/share/openstack-tripleo-heat-templates/tools/yaml-nic-config-2-script.py --help usage: yaml-nic-config-2-script.py [-h] [--script-dir <script directory>] <file> [<file> ...] Convert an old style NIC config file into the new format using run-os-net- config.sh positional arguments: <file> List of one or more NIC config files to convert optional arguments: -h, --help show this help message and exit --script-dir <script directory> Relative path to run-os-net-config.sh