@@ -106,12 +106,9 @@ kolla_tag: "{{ openstack_release }}-{{ kolla_base_distro }}-{{ kolla_base_distro
106106# type: git
107107# location: https://github.com/openstack/ironic
108108# 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.
115112kolla_sources :
116113 bifrost-base-additions-stackhpc-inspector-plugins :
117114 # Install our custom inspector plugins.
@@ -121,11 +118,11 @@ kolla_sources:
121118 cloudkitty-base :
122119 type : git
123120 location : https://github.com/stackhpc/cloudkitty.git
124- reference : stackhpc/2023.1
121+ reference : stackhpc/{{ openstack_release }}
125122 horizon-plugin-cloudkitty-dashboard :
126123 type : git
127124 location : https://github.com/stackhpc/cloudkitty-dashboard.git
128- reference : stackhpc/2023.1
125+ reference : stackhpc/{{ openstack_release }}
129126 ironic-inspector-additions-stackhpc-inspector-plugins :
130127 # Install our custom inspector plugins.
131128 type : git
@@ -135,11 +132,15 @@ kolla_sources:
135132 magnum-base :
136133 type : git
137134 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 }}
139140 neutron-base-plugin-networking-generic-switch :
140141 type : git
141142 location : https://github.com/stackhpc/networking-generic-switch.git
142- reference : stackhpc/2023.1
143+ reference : stackhpc/{{ openstack_release }}
143144
144145# ##############################################################################
145146# Kolla image build configuration.
@@ -284,18 +285,22 @@ kolla_build_blocks:
284285 {% if stackhpc_kolla_clean_up_repo_mirrors | bool %}
285286 {% if kolla_base_distro == 'rocky' %}
286287 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/; \
291291 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
293296 {% else %}
294297 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 && \
296301 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; \
299304 fi
300305 {% endif %}
301306 {% endif %}
0 commit comments