File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 73
73
become : true
74
74
when : ansible_facts.os_family != 'RedHat'
75
75
76
+ # NOTE(kevko): Can be remove after [1] [2] will be merged in stable branches
77
+ #
78
+ # [1] https://review.opendev.org/c/openstack/kolla-ansible/+/949812
79
+ # [2] https://review.opendev.org/c/openstack/ansible-collection-kolla/+/949767
76
80
- name : Create Kolla runtime venv
77
81
command :
78
82
cmd : " {{ 'python3.12' if ansible_facts.os_family == 'RedHat' else 'python3' }} -m venv {{ kolla_runtime_venv_path }}"
79
83
creates : " {{ kolla_runtime_venv_path }}"
84
+ when : is_upgrade
80
85
81
86
- hosts : primary
82
87
any_errors_fatal : true
Original file line number Diff line number Diff line change 1
1
---
2
+ # Upgrade, virtualenv exist
3
+ {% if is_previous_release %}
2
4
virtualenv: "{{ kolla_runtime_venv_path }}"
3
5
ansible_python_interpreter: "{{ kolla_runtime_venv_path }}/bin/python"
6
+ {% else %}
7
+ # New deployment - test virtualenv creation in debian, ubuntu scenarios
8
+ {% if base_distro in ["debian" , "ubuntu" ] %}
9
+ virtualenv: "{{ kolla_runtime_venv_path }}"
10
+ {% endif %}
11
+ {% endif %}
4
12
5
13
kolla_base_distro: "{{ base_distro }}"
6
14
network_interface: "{{ api_interface_name }}"
You can’t perform that action at this time.
0 commit comments