File tree Expand file tree Collapse file tree 4 files changed +27
-8
lines changed Expand file tree Collapse file tree 4 files changed +27
-8
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ jobs:
121
121
- name : Make image usable for further builds
122
122
run : |
123
123
. venv/bin/activate
124
- openstack image unset --property signature_verified "${{ steps.manifest.outputs.image-id }}"
124
+ openstack image unset --property signature_verified "${{ steps.manifest.outputs.image-id }}" || true
125
125
126
126
- name : Delete image for automatically-run workflows
127
127
run : |
Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ jobs:
23
23
matrix : # build RL8, RL9
24
24
build :
25
25
- image_name : openhpc-RL8
26
- source_image_name : Rocky-8-GenericCloud-Base-8.10-20240528.0.x86_64.qcow2
26
+ source_image_name : Rocky-8-GenericCloud-Base-8.10-20240528.0.x86_64.raw
27
27
inventory_groups : control,compute,login,update
28
28
- image_name : openhpc-RL9
29
- source_image_name : Rocky-9-GenericCloud-Base-9.5-20241118.0.x86_64.qcow2
29
+ source_image_name : Rocky-9-GenericCloud-Base-9.5-20241118.0.x86_64.raw
30
30
inventory_groups : control,compute,login,update
31
31
env :
32
32
ANSIBLE_FORCE_COLOR : True
@@ -102,7 +102,7 @@ jobs:
102
102
- name : Make image usable for further builds
103
103
run : |
104
104
. venv/bin/activate
105
- openstack image unset --property signature_verified "${{ steps.manifest.outputs.image-id }}"
105
+ openstack image unset --property signature_verified "${{ steps.manifest.outputs.image-id }}" || true
106
106
107
107
- name : Upload manifest artifact
108
108
uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change 26
26
27
27
- name : Install s3cmd
28
28
run : |
29
+ sudo apt-get update
29
30
sudo apt-get --yes install s3cmd
30
31
31
32
- name : Cleanup S3 bucket
@@ -75,20 +76,38 @@ jobs:
75
76
echo "${{ secrets['ARCUS_S3_CFG'] }}" > ~/.s3cfg
76
77
shell : bash
77
78
78
- - name : Install s3cmd
79
+ - name : Install s3cmd and qemu-utils
79
80
run : |
80
- sudo apt-get --yes install s3cmd
81
+ sudo apt-get update
82
+ sudo apt-get --yes install s3cmd qemu-utils
81
83
82
84
- name : Retrieve image name
83
85
run : |
84
86
TARGET_IMAGE=$(jq --arg version "${{ matrix.build }}" -r '.cluster_image[$version]' "${{ env.IMAGE_PATH }}")
85
87
echo "TARGET_IMAGE=${TARGET_IMAGE}" >> "$GITHUB_ENV"
86
88
shell : bash
87
89
90
+ - name : Clear up some space on runner
91
+ run : |
92
+ df -h
93
+ sudo rm -rf /usr/share/dotnet
94
+ sudo rm -rf /opt/ghc
95
+ sudo rm -rf "/usr/local/share/boost"
96
+ sudo rm -rf "$AGENT_TOOLSDIRECTORY"
97
+ sudo apt-get clean
98
+ df -h
99
+
88
100
- name : Download image to runner
89
101
run : |
90
102
. venv/bin/activate
91
- openstack image save --file ${{ env.TARGET_IMAGE }} ${{ env.TARGET_IMAGE }}
103
+ openstack image save --file "${{ env.TARGET_IMAGE }}.raw" "${{ env.TARGET_IMAGE }}"
104
+ df -h
105
+ shell : bash
106
+
107
+ - name : Convert image to QCOW2
108
+ run : |
109
+ . venv/bin/activate
110
+ qemu-img convert -f raw -O qcow2 -c "${{ env.TARGET_IMAGE }}.raw" "${{ env.TARGET_IMAGE }}"
92
111
shell : bash
93
112
94
113
- name : Upload Image to S3
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ source "openstack" "openhpc" {
178
178
ssh_bastion_private_key_file = var. ssh_bastion_private_key_file
179
179
180
180
# Output image:
181
- image_disk_format = " qcow2 "
181
+ image_disk_format = " raw "
182
182
image_visibility = var. image_visibility
183
183
184
184
}
You can’t perform that action at this time.
0 commit comments