Skip to content

Commit fb5687d

Browse files
committed
Merge branch 'stackhpc/2024.1' into cross-arch-builds-2024.1
2 parents 1d3d30a + 83b9fc0 commit fb5687d

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

.github/workflows/stackhpc-container-image-build.yml

+7-15
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,7 @@ jobs:
150150
151151
- name: Get Kolla tag
152152
id: write-kolla-tag
153-
run: |
154-
kolla_tag="${{ needs.generate-tag.outputs.openstack_release }}-${{ matrix.distro }}-${{ needs.generate-tag.outputs.datetime_tag }}"
155-
if [[ "${{ matrix.distro }}" == 'rocky' ]]; then
156-
kolla_tag="$kolla_tag-${{ matrix.arch }}"
157-
fi
158-
echo "kolla-tag=$kolla_tag" >> $GITHUB_OUTPUT
153+
run: echo "kolla-tag=${{ needs.generate-tag.outputs.openstack_release }}-${{ matrix.distro }}-${{ matrix.distro == 'rocky' && '9' || 'jammy' }}-${{ needs.generate-tag.outputs.datetime_tag }}" >> $GITHUB_OUTPUT
159154

160155
- name: Configure localhost as a seed
161156
run: |
@@ -189,7 +184,11 @@ jobs:
189184
args="$args -e kolla_base_arch=${{ matrix.arch }}"
190185
fi
191186
args="$args -e kolla_base_distro=${{ matrix.distro }}"
192-
args="$args -e kolla_tag=${{ steps.write-kolla-tag.outputs.kolla-tag }}"
187+
if [[ "${{ matrix.distro }}" = 'rocky' ]]; then
188+
args="$args -e kolla_tag=${{ steps.write-kolla-tag.outputs.kolla-tag }}-${{ matrix.arch }}"
189+
else
190+
args="$args -e kolla_tag=${{ steps.write-kolla-tag.outputs.kolla-tag }}"
191+
fi
193192
args="$args -e stackhpc_repo_mirror_auth_proxy_enabled=true"
194193
source venvs/kayobe/bin/activate &&
195194
source src/kayobe-config/kayobe-env --environment ci-builder &&
@@ -206,19 +205,12 @@ jobs:
206205
run: sudo cp -rnL /opt/kayobe/etc/kolla/* image-build-logs/
207206
if: inputs.overcloud
208207

209-
- name: Get Kolla tag for seed images
210-
id: write-kolla-tag-seed
211-
run: |
212-
kolla_tag_seed="${{ needs.generate-tag.outputs.openstack_release }}-${{ matrix.distro }}-${{ needs.generate-tag.outputs.datetime_tag }}"
213-
echo "kolla-tag-seed=$kolla_tag_seed" >> $GITHUB_OUTPUT
214-
if: inputs.seed
215-
216208
- name: Build kolla seed images
217209
id: build_seed_images
218210
continue-on-error: true
219211
run: |
220212
args="-e kolla_base_distro=${{ matrix.distro }}"
221-
args="$args -e kolla_tag=${{ steps.write-kolla-tag-seed.outputs.kolla-tag-seed }}"
213+
args="$args -e kolla_tag=${{ steps.write-kolla-tag.outputs.kolla-tag }}"
222214
args="$args -e stackhpc_repo_mirror_auth_proxy_enabled=true"
223215
source venvs/kayobe/bin/activate &&
224216
source src/kayobe-config/kayobe-env --environment ci-builder &&

doc/source/operations/upgrading-openstack.rst

+5
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,15 @@ to 3.12, then to 3.13 on Antelope before the Caracal upgrade. This upgrade
187187
should not cause an API outage (though it should still be considered "at
188188
risk").
189189

190+
Some errors have been observed in testing when the upgrades are perfomed
191+
back-to-back. A 200s delay eliminates this issue. On particularly large or slow
192+
deployments, consider increasing this timeout.
193+
190194
.. code-block:: bash
191195
192196
kayobe overcloud service configuration generate --node-config-dir /tmp/ignore -kt none
193197
kayobe kolla ansible run "rabbitmq-upgrade 3.12"
198+
sleep 200
194199
kayobe kolla ansible run "rabbitmq-upgrade 3.13"
195200
196201
RabbitMQ quorum queues

tools/scan-images.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
set -eo pipefail
2+
set -exo pipefail
33

44
# Check correct usage
55
if [[ ! $2 ]]; then
@@ -54,6 +54,10 @@ for image in $images; do
5454
--severity HIGH,CRITICAL \
5555
--output image-scan-output/${filename}.json \
5656
--ignore-unfixed \
57+
--db-repository ghcr.io/aquasecurity/trivy-db:2 \
58+
--db-repository public.ecr.aws/aquasecurity/trivy-db \
59+
--java-db-repository ghcr.io/aquasecurity/trivy-java-db \
60+
--java-db-repository public.ecr.aws/aquasecurity/trivy-java-db \
5761
$image); then
5862
# Clean up the output file for any images with no vulnerabilities
5963
rm -f image-scan-output/${filename}.json

0 commit comments

Comments
 (0)