Skip to content

Commit e346c89

Browse files
committed
Work around RL9 OVN hostname bug in CI
OVN Deployments on Rocky 9 cannot create VMs when hostnames contain a dot `.` which includes CI AIOs. This commit removes the .novalocal suffix from the AIO hostname and reboots the VM to apply changes before proceeding with the deployment.
1 parent 23780ae commit e346c89

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,16 @@ jobs:
264264
run: |
265265
docker image pull $KAYOBE_IMAGE
266266
267+
- name: Reboot
268+
run: |
269+
docker run -t --rm \
270+
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
271+
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
272+
${{ steps.kayobe_image.outputs.kayobe_image }} \
273+
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh etc/kayobe/ansible/reboot.yml -e reboot_with_bootstrap_user=true
274+
env:
275+
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
276+
267277
- name: Run growroot
268278
run: |
269279
docker run -t --rm \

terraform/aio/vm.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ resource "null_resource" "kayobe-aio" {
9292

9393
inline = [
9494
"#!/bin/sh",
95-
"echo 'connected!'"
95+
"echo 'connected!'",
96+
"sudo hostnamectl set-hostname $(sed s/.novalocal// /etc/hostname)"
9697
]
9798
}
9899
}

0 commit comments

Comments
 (0)