From 38f4e4e2e9402bf4ef69a6de5ba673715b9f5bb4 Mon Sep 17 00:00:00 2001 From: Daniel Hilst <392820+dhilst@users.noreply.github.com> Date: Mon, 9 Nov 2026 09:28:10 -0300 Subject: [PATCH] fix(xcat-core): the OpenEmbedded metadata check fails on the bootnic service The OpenEmbedded metadata check failed in test_installed_network with 'xcat-genesis-bootnic.service' missing from the expected set. The xcat-genesis-network recipe installs and enables genesis-bootnic and its unit since the Genesis DHCPv6 boot nic fix, and the test still expected only xcat-genesis-duid.service. The test now expects both services, and asserts that the bootnic script is installed and that its unit runs it before NetworkManager. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com> --- xCAT-test/native/genesis_metadata.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/xCAT-test/native/genesis_metadata.py b/xCAT-test/native/genesis_metadata.py index ab5f7ae0f3..c935f14765 100644 --- a/xCAT-test/native/genesis_metadata.py +++ b/xCAT-test/native/genesis_metadata.py @@ -376,8 +376,15 @@ class GenesisMetadata(unittest.TestCase): self.assertEqual(service["Service"]["ExecStart"], "/usr/libexec/xcat/genesis-duid") self.assertEqual(set(service["Unit"]["Before"].split()), {"NetworkManager.service", "xcat-genesis-network-state.service"}) + # genesis-bootnic writes the connection profiles that keep DHCPv6 on the boot nic, so + # NetworkManager has to start after it. + self.installed(data, root, "libexecdir", "xcat/genesis-bootnic", 0o755) + bootnic = self.unit(self.installed(data, root, "systemd_system_unitdir", + "xcat-genesis-bootnic.service", 0o644)) + self.assertEqual(bootnic["Service"]["ExecStart"], "/usr/libexec/xcat/genesis-bootnic") + self.assertIn("NetworkManager.service", bootnic["Unit"]["Before"].split()) self.assertEqual(self.words(data, "SYSTEMD_SERVICE:" + data.getVar("PN")), - {"xcat-genesis-duid.service"}) + {"xcat-genesis-duid.service", "xcat-genesis-bootnic.service"}) def test_installed_hardware_providers(self): data, root = self.install("xcat-genesis-hardware-control")