Skip to content

Commit 7856c23

Browse files
bertiethorperocky Cloud Usersjpb
authored
Use ansible-core over ansible and upgrade to v2.16 (#853)
* pin ansible-core 2.16, update cloudalchemy roles, remove selinux in requirements.txt * bump CI images * regenerate venv when python version changes * pip freeze at ansible-core 2.16 * Upgrade all CI to use ubuntu 24.04 runners * fix compute-init rsync owner/group options * Bump CI images * bump workflow cleanup to ubuntu 24 * setup-env.sh linting fix * define python version var at workflow level for testing rebuild * test old release with python3.12 venv override * install python 3.10 for Ubuntu 22.04 runner in latest release CI test * use github action setup-python to select python version * Update versions for Prometheus and Grafana * Update .github/workflows/stackhpc.yml Co-authored-by: Steve Brasier <[email protected]> * Update cluster image versions in auto.tfvars.json * Enable archive mode for file synchronization and remove set root task Changed synchronization to use archive mode and removed ownership adjustment task. * Bump new CI images --------- Co-authored-by: rocky Cloud User <[email protected]> Co-authored-by: Steve Brasier <[email protected]>
1 parent 74e1526 commit 7856c23

File tree

18 files changed

+129
-43
lines changed

18 files changed

+129
-43
lines changed

.github/workflows/extra.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ permissions:
1818
jobs:
1919
doca:
2020
name: extra-build
21-
runs-on: ubuntu-22.04
21+
runs-on: ubuntu-24.04
2222
strategy:
2323
fail-fast: false # allow other matrix jobs to continue even if one fails
2424
matrix: # build RL8, RL9

.github/workflows/fatimage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
concurrency:
3030
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.build.image_name }} # to branch/PR + OS
3131
cancel-in-progress: true
32-
runs-on: ubuntu-22.04
32+
runs-on: ubuntu-24.04
3333
strategy:
3434
fail-fast: false # allow other matrix jobs to continue even if one fails
3535
matrix: # build RL8, RL9

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313
jobs:
1414
lint:
1515
name: Lint
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-24.04
1717
permissions:
1818
contents: read
1919
packages: read

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
files_changed:
3939
name: Determine files changed
4040
needs: lint
41-
runs-on: ubuntu-latest
41+
runs-on: ubuntu-24.04
4242
# Map a step output to a job output, this allows other jobs to be gated on the filter results
4343
outputs:
4444
# The 'stackhpc' output will be 'true' if either of the two stackhpc filters below matched

.github/workflows/nightly-cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- LEAFCLOUD
2222
- SMS
2323
- ARCUS
24-
runs-on: ubuntu-22.04
24+
runs-on: ubuntu-24.04
2525
env:
2626
OS_CLOUD: openstack
2727
CI_CLOUD: ${{ matrix.cloud }}

.github/workflows/nightlybuild.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
concurrency:
2727
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.build.image_name }} # to branch/PR + OS
2828
cancel-in-progress: true
29-
runs-on: ubuntu-22.04
29+
runs-on: ubuntu-24.04
3030
strategy:
3131
fail-fast: false # allow other matrix jobs to continue even if one fails
3232
matrix: # build RL8, RL9
@@ -131,7 +131,7 @@ jobs:
131131
concurrency:
132132
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.build.image_name }}-${{ matrix.target_cloud }}
133133
cancel-in-progress: true
134-
runs-on: ubuntu-22.04
134+
runs-on: ubuntu-24.04
135135
strategy:
136136
fail-fast: false
137137
matrix:

.github/workflows/release-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ permissions:
1616
jobs:
1717
ci-image-release:
1818
name: ci-image-release
19-
runs-on: ubuntu-22.04
19+
runs-on: ubuntu-24.04
2020
concurrency: ${{ github.workflow }}-${{ github.ref }}
2121
strategy:
2222
fail-fast: false

.github/workflows/s3-image-sync.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ permissions:
1919

2020
jobs:
2121
s3_cleanup:
22-
runs-on: ubuntu-22.04
22+
runs-on: ubuntu-24.04
2323
concurrency: ${{ github.workflow }}-${{ github.ref }}
2424
strategy:
2525
fail-fast: false
@@ -41,7 +41,7 @@ jobs:
4141
s3cmd rm s3://${{ env.S3_BUCKET }} --recursive --force
4242
4343
image_upload:
44-
runs-on: ubuntu-22.04
44+
runs-on: ubuntu-24.04
4545
needs: s3_cleanup
4646
concurrency: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.build }}
4747
strategy:
@@ -118,7 +118,7 @@ jobs:
118118

119119
image_sync:
120120
needs: image_upload
121-
runs-on: ubuntu-22.04
121+
runs-on: ubuntu-24.04
122122
concurrency: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.cloud }}-${{ matrix.build }}
123123
strategy:
124124
fail-fast: false

.github/workflows/stackhpc.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ permissions:
1818
jobs:
1919
openstack:
2020
name: openstack-ci
21-
runs-on: ubuntu-22.04
21+
runs-on: ubuntu-24.04
2222
strategy:
2323
fail-fast: false # allow other matrix jobs to continue even if one fails
2424
matrix:
@@ -75,8 +75,14 @@ jobs:
7575
run: cat environments/.stackhpc/bastion_fingerprints >> ~/.ssh/known_hosts
7676
shell: bash
7777

78+
- uses: actions/setup-python@v6
79+
with:
80+
python-version: '3.10' #TODO: bump to 3.12 once release cut including this PR
81+
7882
- name: Install ansible, pip and galaxy requirements
7983
run: dev/setup-env.sh
84+
env:
85+
PYTHON_VERSION: python3 # overrides os-release discovery logic
8086

8187
- name: Install OpenTofu
8288
uses: opentofu/[email protected]
@@ -146,8 +152,14 @@ jobs:
146152
- name: Checkout current branch
147153
run: git checkout ${{ github.head_ref || github.ref_name }}
148154

155+
- uses: actions/setup-python@v6
156+
with:
157+
python-version: '3.12'
158+
149159
- name: Update ansible, pip and galaxy requirements
150160
run: dev/setup-env.sh
161+
env:
162+
PYTHON_VERSION: python3 # overrides os-release discovery logic
151163

152164
- name: Reimage login and control nodes to image in current branch
153165
id: reimage_non_compute

.github/workflows/trivyscan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717

1818
jobs:
1919
scan:
20-
runs-on: ubuntu-latest
20+
runs-on: ubuntu-24.04
2121
strategy:
2222
fail-fast: false
2323
matrix:

0 commit comments

Comments
 (0)