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 11---
22user : " stack"
33workdir : " /home/{{ user }}/devstack"
4- branch : " stable/2023.1 "
4+ branch : " stable/2023.2 "
55enable_services :
66 - nova
77 - glance
Original file line number Diff line number Diff line change 9797 src : local.conf.j2
9898 dest : " {{ workdir }}/local.conf"
9999
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-
115100 - name : Change devstack directory owner
116101 file :
117102 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
122122MANILA_CONFIGURE_DEFAULT_TYPES=True
123123{% endif %}
124124
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+
125134{% if "glance" in enable_services %}
126135[[post-config|$GLANCE_API_CONF]]
127136[glance_store]
You can’t perform that action at this time.
0 commit comments