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
100 stars 95 forks source link

/usr/libexec/platform-python: No such file or directory on rhel-7.5 / OSP13 #367

Open zzzeek opened 5 years ago

zzzeek commented 5 years ago

I'm installing from a RHEL-7.5 guest image:

infrared virsh -vv --disk-pool=/home/infrared_images --topology-nodes=undercloud:1,controller:3,compute:1 --topology-network=zzzeek_networks --topology-extend=yes --
host-key /home/classic/.ssh/id_rsa --host-address=127.0.0.2 --image-url http://download-node-02.eng.bos.redhat.com/rel-eng/latest-RHEL-7.5/compose/Server/x86_64/images
/rhel-guest-image-7.5-146.x86_64.qcow2

then running OSP13 tripleo undercloud:

infrared_cmd tripleo-undercloud -vv --version 13 --inventory=/home/classic/dev/overcloud_basic/checkouts/infrared/.workspaces/stack/hosts-prov --registry-mirror=brew
-pulp-docker01.web.prod.ext.phx2.redhat.com:8888 --registry-undercloud-skip=true --images-task rpm --enable-testing-repos all --config-options DEFAULT.enable_telemetry
=false --config-options DEFAULT.undercloud_nameservers=10.16.36.29,10.11.5.19,10.5.30.160 --config-options DEFAULT.undercloud_ntp_servers=clock.corp.redhat.com

it fails with:

fatal: [undercloud-0]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 192.168.22.38 closed.\r\n", "module_stdout": "/bin/sh: /usr/libexec/platform-python: No such file or directory\r\n", "msg": "The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact er
ror", "rc": 127}

this is derived from the change at https://review.gerrithub.io/c/redhat-openstack/infrared/+/458946 which appears to assume one is using OSP14/15 with RHEL8.

Is redhat infrared supposed to work with OSP13/ RHEL7 or am I supposed to be using certain branches / versions for older OSP/ RHEL ?

zzzeek commented 5 years ago

the issue is resolved if I use rhel-7.6 which appears to have /usr/llibexec/platform-python.

whether or not this is a bug in infrared depends on what it's published requirements are.

zzzeek commented 5 years ago

@jfrancoa has proposed https://review.gerrithub.io/c/redhat-openstack/infrared/+/467487 to resolve