2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-24 08:44:04 +00:00

style(xcat-core): the netplan test comment traces the failure across four layers

The comment on the use-domains assertion in ubuntu_subiquity_installnic.t
followed the missing search domain from systemd-networkd through
updateflag.awk to a node stuck in postbooting. The assertion below it
already names what is checked. The comment now carries the one fact the
code does not show: networkd defaults UseDomains to no.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
This commit is contained in:
Daniel Hilst
2026-09-14 08:34:35 -03:00
parent 840a6c56c6
commit b0f87b2b99
+1 -3
View File
@@ -139,9 +139,7 @@ SKIP: {
"the netplan written for $case->{name} matches the resolved values");
# systemd-networkd defaults UseDomains to no, so a netplan carrying dhcp4: true alone
# takes the DNS server from DHCP and drops the offered domain-search. The node then
# resolves no single-label name: updateflag.awk runs "$MASTER 3002" with the short
# management node name, cannot resolve it, and the node never leaves postbooting.
# drops the search domain DHCP offers, and no single-label name resolves on the node.
like($netplan, qr/^\s+use-domains: true$/m,
"the netplan for $case->{name} asks networkd to use the DHCP search domain");
}