Skip to content

Commit aacc108

Browse files
committed
Merge remote-tracking branch 'origin/jammy-to-noble-ci' into test-upgrade-ci
2 parents 3fdb4f2 + 40d18e3 commit aacc108

File tree

2 files changed

+74
-27
lines changed

2 files changed

+74
-27
lines changed

.github/workflows/stackhpc-all-in-one.yml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ on:
6464
description: Whether to perform an upgrade
6565
type: boolean
6666
default: false
67+
host_os_upgrade:
68+
description: Whether to perform a host OS upgrade
69+
type: boolean
70+
default: false
6771
stackhpc_cloud_tests_version:
6872
description: Git version of https://github.com/stackhpc/stackhpc-cloud-tests to use for testing
6973
type: string
@@ -336,15 +340,38 @@ jobs:
336340
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
337341

338342
- name: Run upgrade prerequisites
343+
run: |
344+
docker run -t --rm \
345+
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
346+
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
347+
${{ steps.kayobe_image.outputs.kayobe_image }} \
348+
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/script-run.sh tools/upgrade-prerequisites.sh
349+
env:
350+
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
351+
if: inputs.upgrade
352+
353+
- name: Upgrade host OS
339354
run: |
340355
docker run -t --rm \
341356
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
342357
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
358+
-e KAYOBE_PATH=/stack/kayobe-automation-env/src/kayobe \
343359
${{ steps.kayobe_image.outputs.kayobe_image }} \
344-
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/script-run.sh tools/upgrade-prerequisites.sh
360+
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/script-run.sh tools/ubuntu-upgrade-overcloud.sh all
345361
env:
346362
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
347-
if: inputs.upgrade
363+
if: inputs.host_os_upgrade
364+
365+
- name: Deploy services that are built for later OS
366+
run: |
367+
docker run -t --rm \
368+
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
369+
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
370+
${{ steps.kayobe_image.outputs.kayobe_image }} \
371+
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/overcloud-service-deploy.sh
372+
env:
373+
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
374+
if: inputs.host_os_upgrade
348375

349376
# If testing upgrade, checkout the current release branch
350377
# Stash changes to tracked files, and set clean=false to avoid removing untracked files.

.github/workflows/stackhpc-pull-request.yml

Lines changed: 45 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -195,41 +195,61 @@ jobs:
195195
secrets: inherit
196196
if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
197197

198-
# Test two upgrade scenarios: Ubuntu Noble OVS and Rocky 9 OVN.
198+
# Test three upgrade scenarios: Ubuntu Noble OVN, Rocky 9 OVN and Rocky 9 OVS.
199199

200-
# On hold until Noble support lands in stackhpc/2024.1
201-
# all-in-one-upgrade-ubuntu-noble-ovs:
202-
# name: aio upgrade (Ubuntu Noble OVS)
203-
# needs:
204-
# - check-changes
205-
# - build-kayobe-image
206-
# uses: ./.github/workflows/stackhpc-all-in-one.yml
207-
# with:
208-
# kayobe_image: ${{ needs.build-kayobe-image.outputs.kayobe_image }}
209-
# os_distribution: ubuntu
210-
# os_release: noble
211-
# ssh_username: ubuntu
212-
# neutron_plugin: ovs
213-
# OS_CLOUD: openstack
214-
# if: ${{ needs.check-changes.outputs.aio == 'true' }}
215-
# upgrade: true
216-
# secrets: inherit
217-
# if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
218-
219-
all-in-one-upgrade-rocky-9-ovn:
220-
name: aio upgrade (Rocky 9 OVN)
200+
all-in-one-upgrade-ubuntu-jammy-to-noble-ovn:
201+
name: aio upgrade (Ubuntu Jammy to Noble OVN)
221202
needs:
222203
- check-changes
223204
- build-kayobe-image
224205
uses: ./.github/workflows/stackhpc-all-in-one.yml
225206
with:
226207
kayobe_image: ${{ needs.build-kayobe-image.outputs.kayobe_image }}
227-
os_distribution: rocky
228-
os_release: "9"
229-
ssh_username: cloud-user
208+
os_distribution: ubuntu
209+
os_release: jammy
210+
ssh_username: ubuntu
230211
neutron_plugin: ovn
231212
OS_CLOUD: openstack
232213
if: ${{ needs.check-changes.outputs.aio == 'true' }}
233214
upgrade: true
215+
host_os_upgrade: true
234216
secrets: inherit
235217
if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
218+
219+
# Temporarily disable rocky upgrades
220+
221+
# all-in-one-upgrade-rocky-9-ovn:
222+
# name: aio upgrade (Rocky 9 OVN)
223+
# needs:
224+
# - check-changes
225+
# - build-kayobe-image
226+
# uses: ./.github/workflows/stackhpc-all-in-one.yml
227+
# with:
228+
# kayobe_image: ${{ needs.build-kayobe-image.outputs.kayobe_image }}
229+
# os_distribution: rocky
230+
# os_release: "9"
231+
# ssh_username: cloud-user
232+
# neutron_plugin: ovn
233+
# OS_CLOUD: openstack
234+
# if: ${{ needs.check-changes.outputs.aio == 'true' }}
235+
# upgrade: true
236+
# secrets: inherit
237+
# if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
238+
239+
# all-in-one-upgrade-rocky-9-ovs:
240+
# name: aio upgrade (Rocky 9 OVS)
241+
# needs:
242+
# - check-changes
243+
# - build-kayobe-image
244+
# uses: ./.github/workflows/stackhpc-all-in-one.yml
245+
# with:
246+
# kayobe_image: ${{ needs.build-kayobe-image.outputs.kayobe_image }}
247+
# os_distribution: rocky
248+
# os_release: "9"
249+
# ssh_username: cloud-user
250+
# neutron_plugin: ovs
251+
# OS_CLOUD: openstack
252+
# if: ${{ needs.check-changes.outputs.aio == 'true' }}
253+
# upgrade: true
254+
# secrets: inherit
255+
# if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}

0 commit comments

Comments
 (0)