Venv for kolla-ansible does not respect selected python

Open
#16 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
ansible, python

Research direction

Start at Beokay’s handling of the selected Python version and the setup path for the kolla-ansible virtual environment. Compare the generated venvs and the playbook’s kolla_ansible_venv handling, then verify that both environments use the user-selected interpreter rather than the system python3.

Written by the indexing model from the issue text.

Description

Setting a custom Python version (e.g. python3.10) on Beokay does not set the environment up correctly for the kayobe-ansible virtual environment, instead using the system default python3 rather than the specified version to Beokay

There's a couple of missing pieces from Beokay's side to make this work:

  • We don't create a venv for kolla-ansible so the playbook has to guess, if we created it with the right version and set the env Kolla would do the correct thing
  • Alternatively, we could pass the user's selected Python version along to the playbook using kolla_ansible_venv or a similar var to let Kolla do the lifting

Currently a user will get mismatched environments in venv, one pointing to their selected Python the other pointing to the OS Python.

Dominant language
Python
Stars
6
Forks
5
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stackhpc/beokay

All issues in stackhpc/beokay

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.