File tree Expand file tree Collapse file tree 3 files changed +10
-16
lines changed
tests/playbooks/roles/install-devstack Expand file tree Collapse file tree 3 files changed +10
-16
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
user : " stack"
3
3
workdir : " /home/{{ user }}/devstack"
4
- branch : " stable/2023.1 "
4
+ branch : " stable/2023.2 "
5
5
enable_services :
6
6
- nova
7
7
- glance
Original file line number Diff line number Diff line change 97
97
src : local.conf.j2
98
98
dest : " {{ workdir }}/local.conf"
99
99
100
- - name : Fix localhost
101
- shell :
102
- executable : /bin/bash
103
- cmd : |
104
- # https://bugs.launchpad.net/devstack/+bug/1891694
105
- rm -rf /usr/lib/python3/dist-packages/PyYAML-*.egg-info
106
- # https://bugs.launchpad.net/devstack/+bug/1906322
107
- sed -i 's|$cmd_pip $upgrade |$cmd_pip $upgrade --ignore-installed |g' {{ workdir }}/inc/python
108
- python3 -m pip install --upgrade pip==23.0
109
- python3 -m pip install --upgrade keystoneauth1==5.1.1
110
- python3 -m pip install --upgrade setuptools
111
- python3 -m pip install --upgrade python-debian
112
- python3 -m pip install --upgrade distro-info
113
- python3 -m pip install --upgrade SecretStorage
114
-
115
100
- name : Change devstack directory owner
116
101
file :
117
102
path : " {{ item }}"
Original file line number Diff line number Diff line change @@ -122,6 +122,15 @@ MANILA_DEFAULT_SHARE_TYPE_EXTRA_SPECS='snapshot_support=True create_share_from_s
122
122
MANILA_CONFIGURE_DEFAULT_TYPES=True
123
123
{% endif %}
124
124
125
+ # Add a pre-install script to upgrade pip and setuptools
126
+ [[local|pre-install]]
127
+ # Activate the virtual environment and upgrade pip and setuptools
128
+ if [ -f /opt/stack/data/venv/bin/activate ]; then
129
+ source /opt/stack/data/venv/bin/activate
130
+ pip install --upgrade pip setuptools
131
+ deactivate
132
+ fi
133
+
125
134
{% if "glance" in enable_services %}
126
135
[[post-config|$GLANCE_API_CONF]]
127
136
[glance_store]
You can’t perform that action at this time.
0 commit comments