Bug 1724165
Summary: | ffwd-prepare fails with WorkflowActionError: Action tripleo.parameters.update execution failed: 400 Client Error: Bad Request for url: http://192.168.10.253:8080/home/stack/my_templates/network/scripts/run-os-net-config.sh | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Shatadru Bandyopadhyay <sbandyop> | ||||
Component: | openstack-tripleo-heat-templates | Assignee: | Nate Johnston <njohnston> | ||||
Status: | CLOSED ERRATA | QA Contact: | Sasha Smolyak <ssmolyak> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 13.0 (Queens) | CC: | beagles, bfournie, hjensas, lbezdick, mburns, michele, njohnston | ||||
Target Milestone: | --- | Keywords: | Triaged, ZStream | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | python-neutron-lib-1.13.0-2.el7ost openstack-tripleo-heat-templates-8.4.1-25.el7ost | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1808025 (view as bug list) | Environment: | |||||
Last Closed: | 2020-03-10 11:52:51 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1808025 | ||||||
Attachments: |
|
Description
Shatadru Bandyopadhyay
2019-06-26 11:32:36 UTC
(In reply to Shatadru Bandyopadhyay from comment #0) > Steps to Reproduce: > > # > /usr/share/openstack-tripleo-heat-templates/tools/yaml-nic-config-2-script.py --script-dir /home/stack/newtemp/ /home/stack/virt/network/three-nics-vlans/legacy/compute.yaml ? That's not a path to run-os-net-config.sh, it's a path to a directory. parser.add_argument('--script-dir', metavar='<script directory>', help="Relative path to run-os-net-config.sh", default="network/scripts/run-os-net-config.sh") It's supposed to take a relative path to the actual script. Some examples: With a structure similar to what you find in THT, it just works ############################################################### $ tree . └── network ├── config │ └── multiple-nics │ └── compute.yaml └── scripts └── run-os-net-config.sh $ /tmp/bz1724165/tripleo-heat-templates/tools/yaml-nic-config-2-script.py network/config/multiple-nics/compute.yaml Using script at ../../scripts/run-os-net-config.sh The yaml file will be overwritten and the original saved as /tmp/bz1724165/newtemp/network/config/multiple-nics/compute.yaml.20190709214724 Overwrite network/config/multiple-nics/compute.yaml? [y/n] y Converting network/config/multiple-nics/compute.yaml $ grep -i get_file network/config/multiple-nics/compute.yaml get_file: ../../scripts/run-os-net-config.sh To use a different path for the run-os-net-config.sh script you need to specify a path relative to the nic config file itself ############################################################################################################################# For example: [hjensas@floke newtemp2]$ tree . ├── nic-configs │ └── compute.yaml └── script └── run-os-net-config.sh 2 directories, 2 files $ /tmp/bz1724165/tripleo-heat-templates/tools/yaml-nic-config-2-script.py --script-dir ../script/run-os-net-config.sh nic-configs/compute.yaml ^^ relative location looking from ^^ Using script at ../script/run-os-net-config.sh The yaml file will be overwritten and the original saved as /tmp/bz1724165/newtemp2/nic-configs/compute.yaml.20190709221457 Overwrite nic-configs/compute.yaml? [y/n] y Converting nic-configs/compute.yaml $ grep -i get_file nic-configs/compute.yaml get_file: ../script/run-os-net-config.sh NOTE, you can also use an absolute path, for example: $ tree . └── nic-configs └── compute.yaml $ /tmp/bz1724165/tripleo-heat-templates/tools/yaml-nic-config-2-script.py --script-dir /tmp/bz1724165/tripleo-heat-templates/network/scripts/run-os-net-config.sh nic-configs/compute.yaml Using script at /tmp/bz1724165/tripleo-heat-templates/network/scripts/run-os-net-config.sh The yaml file will be overwritten and the original saved as /tmp/bz1724165/newtemp2/nic-configs/compute.yaml.20190709221845 Overwrite nic-configs/compute.yaml? [y/n] y Converting nic-configs/compute.yaml $ grep -i get_file nic-configs/compute.yaml get_file: /tmp/bz1724165/tripleo-heat-templates/network/scripts/run-os-net-config.sh Push change to add ../network/scripts/ to the search path. Upstream change approved, waiting for it to merge so I can backport. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:0769 |