2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-11-19 08:52:20 +00:00

Name the cause in the kernelargs HTTP boot warnings

UEFI HTTP boot goes through the iPXE shim once osdeploy initialize has
installed it, so the boot.img fallback warning points to that, for IPv4
and IPv6.
This commit is contained in:
Markus Hilger
2026-11-17 23:10:51 +01:00
parent 8d09bb5b0d
commit e6c5210699
@@ -704,7 +704,7 @@ async def reply_dhcp6(node, addr, cfg, packet, cfd, profile, sock, niccfg=None):
return
if (packet['rqtype'] == 1 and bootfile.endswith(b'/boot.img')
and cfd.get(node, {}).get('deployment.kernelargs', {}).get('value', None)):
log.log({'warning': 'deployment.kernelargs of {0} is not applied, UEFI HTTP boot of profile {1} does not go through iPXE'.format(node, profile)})
log.log({'warning': 'deployment.kernelargs of {0} is not applied, UEFI HTTP boot of profile {1} falls back to boot.img, run osdeploy initialize -r to install the iPXE shim'.format(node, profile)})
# 1 msgtype
# 3 txid
# 22 - server ident
@@ -860,7 +860,7 @@ async def reply_dhcp4(node, info, packet, cfg, reqview, httpboot, cfd, profile,
)
bootshorturl = '/confluent-public/os/{0}/boot.img'.format(profile)
if rqtype == 1 and cfd.get(node, {}).get('deployment.kernelargs', {}).get('value', None):
log.log({'warning': 'deployment.kernelargs of {0} is not applied, UEFI HTTP boot of profile {1} does not go through iPXE'.format(node, profile)})
log.log({'warning': 'deployment.kernelargs of {0} is not applied, UEFI HTTP boot of profile {1} falls back to boot.img, run osdeploy initialize -r to install the iPXE shim'.format(node, profile)})
bootfilename = '/var/lib/confluent/public/os/{0}/boot.img'.format(profile)
can302 = False
if not isinstance(bootfile, bytes):