mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-10-12 08:12:33 +00:00
8253a4882e
makedhcp does not write the configuration of a DHCP server that site.externaldhcpservers names, so an upgrade leaves it without the iPXE feature options. OMAPI removes a host before it adds it again, so a host statement that such a server rejects loses the reservation of the node. Before it updates netboot=ipxe nodes on that server, makedhcp creates a host of its own whose statement tests every iPXE feature option, reads it back in a second omshell run, and removes it. Only the server can return the address of that host, so the nodes are updated only when it does. Otherwise makedhcp reports the server and leaves the reservations of those nodes unchanged. Other nodes and a local server get no check. Each run uses its own host name and address, as other xCAT servers can check the same server at the same time. The check opens no host before the create, because the omshell of Ubuntu 20.04 and 22.04 can hang on a failed open.