Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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.