Juggling CentOS 7 with yum/python2 and kolla-ansible install with python3

asked 2020-01-13 14:52:46 -0600

theque42 gravatar image

I've got a setup for running OpenStack courses where I am using kolla-ansible on CentOS 7.

I am trying to figure out if there is a well-known way of running the install and management with only python3.

Currently I install with all nodes (each cloud has a number of centos VMs) configured with their "normal" python2, run kolla-ansible deploy, and then using update-alternatives I switch to python3 before I install all the openstack-CLI's.

But that of course means I cant run the kolla-ansible command anymore....

I tried installing DNF on centos, so that I could switch to python3 before deploying with kolla-ansible, but that failed with strange errors (_during a neutron task I dont currently remember_) I could solve, like:

"Aborting, target uses selinux but python bindings (libselinux-python) aren't installed"

even though, to as far as I could assertain, they WERE installed.

So....is there an obvious way I should handle this? CentOS 8? The *oogling and fiddling I've done so far with CentOS 8 gave me the impression there were other issues there with correct versions of qemu, or whatever it was.

edit retag flag offensive close merge delete


Further attempts have run into the fact that kolla-ansible tries to force-install python2 via yum. Which if course fails if you've switched to dnf with python3

theque42 gravatar imagetheque42 ( 2020-01-15 04:25:27 -0600 )edit