@@ -106,12 +106,9 @@ kolla_tag: "{{ openstack_release }}-{{ kolla_base_distro }}-{{ kolla_base_distro
106
106
# type: git
107
107
# location: https://github.com/openstack/ironic
108
108
# reference: master
109
- # NOTE (Alex-Welsh): The reference for many of these entries could be
110
- # 'stackhpc/{{ openstack_release }}' which would keep the branch up to date
111
- # for the current release. This is nice in theory but in practice, the stackhpc
112
- # forks change with every release and the elements in this list change with
113
- # them. Explicitly using /2021.3 makes it more intuitive to find and edit these
114
- # entries.
109
+ # NOTE(upgrade): These sources should be checked with each release. StackHPC
110
+ # branches are only required when we have custom backports. For a new release,
111
+ # we may have caught up with upstream.
115
112
kolla_sources :
116
113
bifrost-base-additions-stackhpc-inspector-plugins :
117
114
# Install our custom inspector plugins.
@@ -121,11 +118,11 @@ kolla_sources:
121
118
cloudkitty-base :
122
119
type : git
123
120
location : https://github.com/stackhpc/cloudkitty.git
124
- reference : stackhpc/2023.1
121
+ reference : stackhpc/{{ openstack_release }}
125
122
horizon-plugin-cloudkitty-dashboard :
126
123
type : git
127
124
location : https://github.com/stackhpc/cloudkitty-dashboard.git
128
- reference : stackhpc/2023.1
125
+ reference : stackhpc/{{ openstack_release }}
129
126
ironic-inspector-additions-stackhpc-inspector-plugins :
130
127
# Install our custom inspector plugins.
131
128
type : git
@@ -135,11 +132,15 @@ kolla_sources:
135
132
magnum-base :
136
133
type : git
137
134
location : https://github.com/stackhpc/magnum.git
138
- reference : stackhpc/2023.1
135
+ reference : stackhpc/{{ openstack_release }}
136
+ neutron-base :
137
+ type : git
138
+ location : https://github.com/stackhpc/neutron.git
139
+ reference : stackhpc/{{ openstack_release }}
139
140
neutron-base-plugin-networking-generic-switch :
140
141
type : git
141
142
location : https://github.com/stackhpc/networking-generic-switch.git
142
- reference : stackhpc/2023.1
143
+ reference : stackhpc/{{ openstack_release }}
143
144
144
145
# ##############################################################################
145
146
# Kolla image build configuration.
@@ -284,18 +285,22 @@ kolla_build_blocks:
284
285
{% if stackhpc_kolla_clean_up_repo_mirrors | bool %}
285
286
{% if kolla_base_distro == 'rocky' %}
286
287
RUN \
287
- tar -xzf /etc/yum.repos.d.backup/repos.tar.gz -C /etc/yum.repos.d && \
288
- if grep -r '{{ stackhpc_repo_mirror_url }}' /etc/yum.repos.d; then \
289
- echo "Found repository mirror in Yum repositories"; \
290
- exit 1; \
288
+ if [ -f /etc/yum.repos.d.backup/repos.tar.gz ]; then \
289
+ tar -xzf /etc/yum.repos.d.backup/repos.tar.gz -C /etc/yum.repos.d && \
290
+ rm -rf /etc/yum.repos.d.backup/; \
291
291
fi && \
292
- rm -rf /etc/yum.repos.d.backup/
292
+ if grep -r '{{ stackhpc_repo_mirror_url }}' /etc/yum.repos.d; then \
293
+ echo "Found repository mirror in Yum repositories"; \
294
+ exit 1; \
295
+ fi
293
296
{% else %}
294
297
RUN \
295
- mv /etc/apt/sources.list.backup /etc/apt/sources.list && \
298
+ if [ -f /etc/apt/sources.list.backup ]; then \
299
+ mv /etc/apt/sources.list.backup /etc/apt/sources.list; \
300
+ fi && \
296
301
if grep -r '{{ stackhpc_repo_mirror_url }}' /etc/apt/sources.list; then \
297
- echo "Found repository mirror in APT repositories"; \
298
- exit 1; \
302
+ echo "Found repository mirror in APT repositories"; \
303
+ exit 1; \
299
304
fi
300
305
{% endif %}
301
306
{% endif %}
0 commit comments