Data file path detection broken on Rocky Linux 9
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
kayobe | Status tracked in Bobcat | |||||
Antelope |
In Progress
|
Medium
|
Pierre Riteau | |||
Bobcat |
Fix Released
|
Medium
|
Pierre Riteau | |||
Xena |
Won't Fix
|
Medium
|
Pierre Riteau | |||
Yoga |
Fix Committed
|
Medium
|
Pierre Riteau | |||
Zed |
Fix Committed
|
Medium
|
Pierre Riteau |
Bug Description
I tried setting up a Kayobe dev environment on Rocky Linux 9.1 and 9.2 following instructions at https:/
It fails with:
$ ./dev/overcloud
Deploying a kayobe development environment. This consists of a
single node OpenStack control plane.
Using Kayobe config from /home/rocky/
Bootstrapping the Ansible control host
Installing galaxy role dependencies from kayobe
ERROR! The requirements file '/home/
Failed to install Ansible roles from /home/rocky/
Control host bootstrap failed - likely Ansible Galaxy flakiness. Sleeping 5 seconds before retrying
The problem originates from the detection of where Kayobe is installed.
On c8s, _get_base_path() in kayobe/utils.py would detect the data path using the egg link:
$ cat /home/centos/
/home/centos/kayobe
This works differently in Rocky Linux 9.1/9.2, there is no such kayobe.egg-link file:
$ ls -ld /home/rocky/
-rw-r--r--. 1 rocky rocky 97 May 18 19:30 /home/rocky/
-rw-r--r--. 1 rocky rocky 2411 May 18 19:30 /home/rocky/
drwxr-xr-x. 2 rocky rocky 182 May 18 19:30 /home/rocky/
Workaround:
export KAYOBE_
summary: |
- Data file path detection broken on Rocky Linux 9.2 + Data file path detection broken on Rocky Linux 9 |
description: | updated |
description: | updated |
Changed in kayobe: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Note this may affect earlier versions of Rocky Linux 9 and other distributions. It appears to be related to recent changes to editable installations in setuptools.
We don't use editable installs in CI so this could have been overlooked for a while.