Skip to content

Commit 7d3fa1e

Browse files
committed
Build overcloud host images on Ubuntu
Ubuntu host image builds currently fail due to an issue with debootstrap. This change switches the builder to an Ubuntu VM.
1 parent 2b0b8de commit 7d3fa1e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/overcloud-host-image-build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,15 @@ jobs:
9898
run: |
9999
cat << EOF > terraform.tfvars
100100
ssh_public_key = "id_rsa.pub"
101-
ssh_username = "rocky"
101+
ssh_username = "ubuntu"
102102
aio_vm_name = "skc-host-image-builder"
103-
# Must be a Rocky Linux 9 host to successfully build all images
103+
# Must be an Ubuntu Jammy host to successfully build all images
104104
# This MUST NOT be an LVM image. It can cause confusing conficts with the built image.
105-
aio_vm_image = "Rocky-9-GenericCloud-Base-9.3-20231113.0.x86_64.qcow2"
105+
aio_vm_image = "Ubuntu-22.04"
106106
aio_vm_flavor = "en1.medium"
107107
aio_vm_network = "stackhpc-ci"
108108
aio_vm_subnet = "stackhpc-ci"
109-
aio_vm_interface = "eth0"
109+
aio_vm_interface = "ens3"
110110
EOF
111111
working-directory: ${{ github.workspace }}/src/kayobe-config/terraform/aio
112112

@@ -184,14 +184,14 @@ jobs:
184184
run: |
185185
source venvs/kayobe/bin/activate &&
186186
source src/kayobe-config/kayobe-env --environment ci-builder &&
187-
kayobe seed host configure -e seed_bootstrap_user=rocky --skip-tags network
187+
kayobe seed host configure -e seed_bootstrap_user=ubuntu --skip-tags network
188188
189189
- name: Install dependencies
190190
run: |
191191
source venvs/kayobe/bin/activate &&
192192
source src/kayobe-config/kayobe-env --environment ci-builder &&
193193
kayobe seed host command run \
194-
--command "sudo dnf config-manager --set-enabled crb && sudo dnf -y install epel-release && sudo dnf -y install cloud-init debootstrap git kpartx zstd" --show-output
194+
--command "sudo apt update && sudo apt -y install gcc git libffi-dev python3-dev python-is-python3 python3-venv" --show-output
195195
env:
196196
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
197197

@@ -311,8 +311,8 @@ jobs:
311311
continue-on-error: true
312312
run: |
313313
mkdir logs
314-
scp -r rocky@$(jq -r .access_ip_v4.value src/kayobe-config/etc/kayobe/environments/ci-builder/tf-outputs.yml):/opt/kayobe/images/*/*.std* ./logs/
315-
scp -r rocky@$(jq -r .access_ip_v4.value src/kayobe-config/etc/kayobe/environments/ci-builder/tf-outputs.yml):/tmp/updated_images.txt ./logs/ || true
314+
scp -r ubuntu@$(jq -r .access_ip_v4.value src/kayobe-config/etc/kayobe/environments/ci-builder/tf-outputs.yml):/opt/kayobe/images/*/*.std* ./logs/
315+
scp -r ubuntu@$(jq -r .access_ip_v4.value src/kayobe-config/etc/kayobe/environments/ci-builder/tf-outputs.yml):/tmp/updated_images.txt ./logs/ || true
316316
if: always()
317317

318318
- name: Fail if any overcloud host image builds failed

0 commit comments

Comments
 (0)