Skip to content

Commit 4a3f195

Browse files
committed
remove all reference to cuda/ofed in CI and packer config
1 parent f2be3fb commit 4a3f195

File tree

4 files changed

+14
-32
lines changed

4 files changed

+14
-32
lines changed

.github/workflows/fatimage.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,15 @@ jobs:
1515
openstack:
1616
name: openstack-imagebuild
1717
concurrency:
18-
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os_version }}-${{ matrix.build }} # to branch/PR + OS + build
18+
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os_version }} # to branch/PR + OS
1919
cancel-in-progress: true
2020
runs-on: ubuntu-22.04
2121
strategy:
2222
fail-fast: false # allow other matrix jobs to continue even if one fails
23-
matrix: # build RL8+OFED, RL9+OFED, RL9+OFED+CUDA versions
23+
matrix: # build RL8, RL9
2424
os_version:
2525
- RL8
2626
- RL9
27-
build:
28-
- openstack.openhpc
2927
env:
3028
ANSIBLE_FORCE_COLOR: True
3129
OS_CLOUD: openstack
@@ -39,6 +37,7 @@ jobs:
3937
"openstack.openhpc": "rocky-latest-RL9"
4038
}
4139
}
40+
BUILD: openstack.openhpc
4241

4342
steps:
4443
- uses: actions/checkout@v2
@@ -84,13 +83,13 @@ jobs:
8483
8584
PACKER_LOG=1 packer build \
8685
-on-error=${{ vars.PACKER_ON_ERROR }} \
87-
-only=${{ matrix.build }} \
86+
-only=${{ env.BUILD }} \
8887
-var-file=$PKR_VAR_environment_root/${{ env.CI_CLOUD }}.pkrvars.hcl \
8988
-var "source_image_name=${{ env.SOURCE_IMAGE }}" \
9089
openstack.pkr.hcl
9190
env:
9291
PKR_VAR_os_version: ${{ matrix.os_version }}
93-
SOURCE_IMAGE: ${{ fromJSON(env.SOURCE_IMAGES_MAP)[matrix.os_version][matrix.build] }}
92+
SOURCE_IMAGE: ${{ fromJSON(env.SOURCE_IMAGES_MAP)[matrix.os_version][env.BUILD] }}
9493

9594
- name: Get created image names from manifest
9695
id: manifest
@@ -107,7 +106,7 @@ jobs:
107106
- name: Upload manifest artifact
108107
uses: actions/upload-artifact@v4
109108
with:
110-
name: image-details-${{ matrix.build }}-${{ matrix.os_version }}
109+
name: image-details-${{ env.BUILD }}-${{ matrix.os_version }}
111110
path: |
112111
./image-id.txt
113112
./image-name.txt

.github/workflows/nightlybuild.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,15 @@ jobs:
1717
openstack:
1818
name: openstack-imagebuild
1919
concurrency:
20-
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os_version }}-${{ matrix.build }} # to branch/PR + OS + build
20+
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os_version }} # to branch/PR + OS
2121
cancel-in-progress: true
2222
runs-on: ubuntu-22.04
2323
strategy:
2424
fail-fast: false # allow other matrix jobs to continue even if one fails
25-
matrix: # build RL8, RL9, RL9+CUDA versions
25+
matrix: # build RL8, RL9
2626
os_version:
2727
- RL8
2828
- RL9
29-
build:
30-
- openstack.rocky-latest
3129
env:
3230
ANSIBLE_FORCE_COLOR: True
3331
OS_CLOUD: openstack
@@ -37,6 +35,7 @@ jobs:
3735
"RL8": "Rocky-8-GenericCloud-Base-8.9-20231119.0.x86_64.qcow2",
3836
"RL9": "Rocky-9-GenericCloud-Base-9.4-20240523.0.x86_64.qcow2"
3937
}
38+
BUILD: openstack.openhpc
4039

4140
steps:
4241
- uses: actions/checkout@v2
@@ -82,7 +81,7 @@ jobs:
8281
8382
PACKER_LOG=1 packer build \
8483
-on-error=${{ vars.PACKER_ON_ERROR }} \
85-
-only=${{ matrix.build }} \
84+
-only=${{ env.BUILD }} \
8685
-var-file=$PKR_VAR_environment_root/${{ env.CI_CLOUD }}.pkrvars.hcl \
8786
-var "source_image_name=${{ env.SOURCE_IMAGE }}" \
8887
openstack.pkr.hcl

.github/workflows/trivyscan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
scan:
1212
concurrency:
13-
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.build }} # to branch/PR + OS + build
13+
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.build }} # to branch/PR + build
1414
cancel-in-progress: true
1515
runs-on: ubuntu-latest
1616
strategy:
@@ -100,7 +100,7 @@ jobs:
100100
uses: github/codeql-action/upload-sarif@v3
101101
with:
102102
sarif_file: "${{ steps.manifest.outputs.image-name }}.sarif"
103-
category: "${{ matrix.os_version }}-${{ matrix.build }}"
103+
category: "${{ matrix.build }}"
104104

105105
- name: Fail if scan has CRITICAL vulnerabilities
106106
uses: aquasecurity/[email protected]

packer/openstack.pkr.hcl

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,13 @@ variable "volume_size" {
127127
default = {
128128
# fat image builds, GB:
129129
rocky-latest = 15
130-
rocky-latest-cuda = 30
131130
openhpc = 15
132-
openhpc-cuda = 30
133131
}
134132
}
135133

136134
variable "extra_build_volume_size" {
137135
type = number
138-
default = 15 # same as default non-CUDA build
136+
default = 15
139137
}
140138

141139
variable "image_disk_format" {
@@ -154,9 +152,7 @@ variable "groups" {
154152
default = {
155153
# fat image builds:
156154
rocky-latest = ["update"]
157-
rocky-latest-cuda = ["update", "cuda"]
158155
openhpc = ["control", "compute", "login"]
159-
openhpc-cuda = ["control", "compute", "login"]
160156
}
161157
}
162158

@@ -210,24 +206,12 @@ build {
210206
image_name = "${source.name}-${var.os_version}"
211207
}
212208

213-
# latest nightly cuda image:
214-
source "source.openstack.openhpc" {
215-
name = "rocky-latest-cuda"
216-
image_name = "${source.name}-${var.os_version}"
217-
}
218-
219-
# OFED fat image:
209+
# fat image:
220210
source "source.openstack.openhpc" {
221211
name = "openhpc"
222212
image_name = "${source.name}-${var.os_version}-${local.timestamp}-${substr(local.git_commit, 0, 8)}"
223213
}
224214

225-
# CUDA fat image:
226-
source "source.openstack.openhpc" {
227-
name = "openhpc-cuda"
228-
image_name = "${source.name}-${var.os_version}-${local.timestamp}-${substr(local.git_commit, 0, 8)}"
229-
}
230-
231215
# Extended site-specific image, built on fat image:
232216
source "source.openstack.openhpc" {
233217
name = "openhpc-extra"

0 commit comments

Comments
 (0)