2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-01 15:06:06 +00:00

Fix SUSE16 identity image deployment

First, give an additional grace period in case identity image is slow to appear compared to other disks.

Also, set hostname according to nodename.
This commit is contained in:
Jarrod Johnson
2026-08-31 12:05:45 -04:00
parent 3fdda3adac
commit 7ba1798848
@@ -37,6 +37,14 @@ while [ ! -e /dev/disk/by-label ] && [ $TRIES -gt 0 ]; do
sleep 2
TRIES=$((TRIES - 1))
done
if [ -e /dev/disk/by-label ]; then
# We detected disks, but CNFLNT_IDNT may be slower than other devices to appear
TRIES=3
while [ ! -e /dev/disk/by-label/CNFLNT_IDNT ] && [ $TRIES -gt 0 ]; do
sleep 1
TRIES=$((TRIES - 1))
done
fi
if [ -e /dev/disk/by-label/CNFLNT_IDNT ]; then
tmnt=/tmp/idntmnt
mkdir -p $tmnt
@@ -224,6 +232,7 @@ echo $ifname > /run/confluent/ifname
dnsdomain=$(grep ^dnsdomain: /etc/confluent/confluent.deploycfg)
dnsdomain=${dnsdomain#dnsdomain: }
hostname=$nodename
hostname $nodename
if [ ! -z "$dnsdomain" ] && [ "$dnsdomain" != "null" ]; then
hostname=$hostname.$dnsdomain
fi