Skip to content

Commit 00c0540

Browse files
committed
Work around Rocky OVN Caracal bug for upgrade job
1 parent 6281412 commit 00c0540

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

terraform/aio/vm.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,12 @@ resource "null_resource" "kayobe-aio" {
8989
# current images, /tmp is noexec, so the path must be changed
9090
script_path = "/home/${var.ssh_username}/start.sh"
9191
}
92-
92+
# In Caracal, OVN fails on Rocky 9 hosts with hostnames that contain a
93+
# subdomain (a dot in the name). Required here for the Caracal upgrade Job
9394
inline = [
9495
"#!/bin/sh",
95-
"echo 'connected!'"
96+
"echo 'connected!'",
97+
"sudo hostnamectl set-hostname $(sed s/.novalocal// /etc/hostname)"
9698
]
9799
}
98100
}

0 commit comments

Comments
 (0)