Deployment fails due to inventory_path set to empty string on centos stream 9
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Committed
|
High
|
Unassigned |
Bug Description
So on my cs9 deployments I need to do the following in order to be able to deploy:
--- a/tripleo_
+++ b/tripleo_
@@ -51,7 +51,7 @@
- when: inventory_path is not defined or inventory_path != None
+ #when: inventory_path is not defined or inventory_path != None
Otherwise I will get the following error:
2021-09-08 19:30:54.086721 | 52540035-
2021-09-08 19:30:54.089837 | 52540035-
2021-09-08 19:30:54.104235 | 52540035-
2021-09-08 19:30:54.104966 | 52540035-
2021-09-08 19:30:54.107643 | 52540035-
2021-09-08 19:30:54.358310 | 52540035-
2021-09-08 19:30:54.359238 | 52540035-
2021-09-08 19:30:54.362723 | 52540035-
2021-09-08 19:30:54.633848 | 52540035-
eo-ansible-
If I dump the extra_vars inside tripleoclient/
2021-09-22 16:20:59.682 524975 WARNING tripleoclient.
So both inventory_path and python_interpreter are None (which is expected). But then I notice two
things:
A) If I print out inventory_path inside /usr/share/
condition: - when: inventory_path is not defined or inventory_path != None
B) If I look at the generated .sh file I see 'null' being passed around:
[stack@undercloud-0 ~]$ tail -n10 ./overcloud-
export BASH_FUNC_
eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot "$@"
}"
export _="/usr/
export OS_HEAT_
export OS_HEAT_
export OS_HEAT_PORT="8006"
export ANSIBLE_
echo -e "Running Ansible command"
ansible-playbook -i /home/stack/
The simple fix would be to add inventory_path == '' to the when condition, but we wouldn't be root-causing it fully?
Changed in tripleo: | |
status: | Triaged → In Progress |
Changed in tripleo: | |
status: | In Progress → Fix Committed |
Ansible versions I get on this systems are: macros- 2021.1. 2-1.el9. noarch 2.9.21- 1.el9.noarch core-dummy- 2.11.0- 0.1.el9. noarch role-container- registry- 1.3.1-0. 20210914193400. c17c316. el9.noarch tripleo- ipsec-11. 0.1-0.202109021 53307.b5559c8. el9.noarch role-collectd- config- 0.0.2-0. 20210921104552. 1992666. el9.noarch role-qdr- config- 0.0.1-0. 20210902155052. b456651. el9.noarch config_ template- 1.1.2-0. 20210921104318. 8a9b962. el9.noarch role-atos- hsm-1.0. 1-0.20210902150 239.c9f757d. el9.noarch role-chrony- 1.0.4-0. 20210902150459. 15ad507. el9.noarch role-lunasa- hsm-1.1. 1-0.20210902153 521.26da379. el9.noarch role-thales- hsm-1.0. 0-0.20210902150 033.e82db3b. el9.noarch freeipa- 0.3.8-3. el9.noarch collection- ansible- posix-1. 2.0-1.el9. noarch collection- ansible- utils-2. 3.0-2.el9. noarch collection- ansible- netcommon- 2.2.0-1. el9.noarch collection- community- general- 3.0.0-1. el9.noarch collection- containers- podman- 1.6.1-2. el9.noarch collections- openstack- 1.5.2-0. 20210922083845. 011515d. el9.noarch pacemaker- 1.0.4-0. 20210902125851. 666f706. el9.noarch role-openstack- operations- 0.0.1-0. 20210914192806. 2ab288f. el9.noarch role-metalsmith -deployment- 1.5.1-0. 20210921115814. 2a39acc. el9.noarch ansible- runner- 2.0.0a1- 1.el9.noarch tripleo- ipa-0.2. 2-0.20210521132 335.9159108. el9.noarch role-tripleo- modify- image-1. 2.3-0.202109021 55610.0b9fdcc. el9.noarch heat-agent- ansible- 2.3.0-0. 20210601030414. ba45ab4. el9.noarch ansible- 4.0.1-0. 20210921112826. 79949de. el9.noarch
[stack@undercloud-0 ~]$ rpm -qa |grep ansible
ansible-
ansible-
ansible-
ansible-
ansible-
ansible-
ansible-
ansible-
ansible-
ansible-
ansible-
ansible-
ansible-
ansible-
ansible-
ansible-
ansible-
ansible-
ansible-
ansible-
ansible-
ansible-
python3-
ansible-
ansible-
python3-
tripleo-