redhat-openstack / infrared

Plugin based framework that aims to provide an easy-to-use CLI for Ansible based projects
https://infrared.readthedocs.io/en/latest/index.html
Apache License 2.0
99 stars 97 forks source link

RHOSP 15 and 16 Unable to Copy Undercloud Sample Configuration #373

Closed LukeShortCloud closed 4 years ago

LukeShortCloud commented 4 years ago

On RHOSP 16 Trunk (Train), the /usr/share/python3-tripleoclient/ directory is actually named as /usr/share/python-tripleoclient/. This leads to a failure setting up the Undercloud.

$ ir tripleo-undercloud --version 16
...
TASK [copy default undercloud config] ********************************************************************************
fatal: [lshortundercloud-0]: FAILED! => {"changed": false, "msg": "Source /usr/share/python3-tripleoclient/undercloud.conf.sample not found"}

The logic in the code sets the directory to have "python3" instead of "python" for RHOSP >= 15.

LukeShortCloud commented 4 years ago

This problem also occurs on RHOSP 15.

$ ir --version
2.0.1.dev3760 (ansible-2.7.14, python-2.7.16)
$ ir tripleo-undercloud --version 15 --images-task rpm
...
TASK [copy default undercloud config] ********************************************************************************
fatal: [lshortrhosp15undercloud-0]: FAILED! => {"changed": false, "msg": "Source /usr/share/python3-tripleoclient/undercloud.conf.sample not found"}