Skip to content

Commit 15353c0

Browse files
sellthpriteau
authored andcommitted
Always call virtualenv as a Python module during setup
Closes-Bug: #2130643 Change-Id: I39eec23d9ca3f8fe9b8d7e9693082ef5841dcffa Signed-off-by: Thomas Sell <thomas.sell@bih-charite.de>
1 parent 22fc03f commit 15353c0

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

ansible/baremetal-compute-introspection-data-save.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
- name: Set up openstack cli virtualenv
99
pip:
1010
virtualenv: "{{ venv }}"
11-
virtualenv_command: python3 -m venv
1211
name:
1312
- python-openstackclient
1413
- python-ironic-inspector-client
1514
state: latest
15+
virtualenv_command: python3.{{ ansible_facts.python.version.minor }} -m venv
1616
extra_args: "{% if pip_upper_constraints_file %}-c {{ pip_upper_constraints_file }}{% endif %}"
1717

1818
- name: Ensure the baremetal compute nodes' hardware introspection data is saved

ansible/baremetal-compute-rename.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
- name: Rename baremetal compute nodes
77
hosts: controllers[0]
8-
gather_facts: False
8+
gather_facts: True
99
vars:
1010
venv: "{{ virtualenv_path }}/openstack-cli"
1111
pre_tasks:
@@ -16,6 +16,7 @@
1616
- python-openstackclient
1717
- python-ironicclient
1818
state: latest
19+
virtualenv_command: "python3.{{ ansible_facts.python.version.minor }} -m venv"
1920
extra_args: "{% if pip_upper_constraints_file %}-c {{ pip_upper_constraints_file }}{% endif %}"
2021

2122
- name: Rename baremetal compute nodes

ansible/baremetal-compute-serial-console.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
- name: Setup OpenStack Environment
77
hosts: controllers[0]
8-
gather_facts: False
8+
gather_facts: True
99
vars:
1010
venv: "{{ virtualenv_path }}/openstack-cli"
1111
pre_tasks:
@@ -16,6 +16,7 @@
1616
- python-openstackclient
1717
- python-ironicclient
1818
state: latest
19+
virtualenv_command: "python3.{{ ansible_facts.python.version.minor }} -m venv"
1920
extra_args: "{% if pip_upper_constraints_file %}-c {{ pip_upper_constraints_file }}{% endif %}"
2021

2122
- block:
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
Call virtualenv as a Python module during baremetal compute serial console
5+
setup to fix ``executable not found`` error on Rocky Linux.

0 commit comments

Comments
 (0)