From ef7989112f615550599ff164c73388cfecdfc9a7 Mon Sep 17 00:00:00 2001 From: Daniel Hilst <392820+dhilst@users.noreply.github.com> Date: Sat, 24 Oct 2026 13:48:00 -0300 Subject: [PATCH] fix(xcat-core): xcatd does not start on an openSUSE node xCAT installs on the leap15.6 node and the install gate still fails: GATE FAIL: xcatd not active GATE FAIL: lsdef cannot reach xcatd GATE FAIL: site.xcatdport not seeded journalctl for xcatd has no entries, and loading the library by hand on the node says why: Can't locate JSON.pm in @INC ... (@INC contains: /opt/xcat/lib/perl ...) openSUSE has no perl-generators. Nothing generates a perl(...) requirement for any xCAT package there, so no spec installs the modules its code loads, and perl-xCAT names no Requires at all. Measured on xcat20-mn against the 85 external modules the EL build auto-requires: five are absent -- Date::Parse, Expect, HTML::Form, JSON and SNMP -- and the other 80 are present. Each openSUSE branch now names the modules EL's generator emits for that package, as capabilities, so the same core build serves the sles15 and sles12 cells: both Leap releases provide all five, from perl-TimeDate, perl-Expect, perl-HTML-Form, perl-JSON and perl-SNMP. Verified with rpmspec that only openSUSE gets these; EL and openEuler are unchanged and keep generating them. xCAT-test/unit/opensuse_mn_requires.t fails on the commit before this one. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com> --- perl-xCAT/perl-xCAT.spec | 9 +++++++++ xCAT-client/xCAT-client.spec | 6 ++++++ xCAT-server/xCAT-server.spec | 9 +++++++++ 3 files changed, 24 insertions(+) diff --git a/perl-xCAT/perl-xCAT.spec b/perl-xCAT/perl-xCAT.spec index aad2d042e9..d97f7dfb73 100644 --- a/perl-xCAT/perl-xCAT.spec +++ b/perl-xCAT/perl-xCAT.spec @@ -16,6 +16,15 @@ BuildArch: noarch BuildRequires: perl perl-DBI perl-JSON # Do not need the SOAP rpm require, because rpm will generate it automatically if hpoa.pm is included #Requires: perl-SOAP-Lite +# openSUSE has no perl-generators, so no perl(...) requirement is generated here and nothing +# installs the modules this code loads. xcatd stays inactive without them: xCAT::Table dies +# loading JSON. EL and openEuler generate these automatically and need no list. +%if 0%{?suse_version} +Requires: perl(Expect) +Requires: perl(HTML::Form) +Requires: perl(JSON) +Requires: perl(SNMP) +%endif %endif %description diff --git a/xCAT-client/xCAT-client.spec b/xCAT-client/xCAT-client.spec index 2f6b71e288..6c0daf8df1 100644 --- a/xCAT-client/xCAT-client.spec +++ b/xCAT-client/xCAT-client.spec @@ -31,6 +31,12 @@ BuildArch: noarch Requires: perl-xCAT = 4:%{version}-%{release} Requires: cpio +# openSUSE has no perl-generators, so no perl(...) requirement is generated here and nothing +# installs the modules this code loads. xcatd stays inactive without them: xCAT::Table dies +# loading JSON. EL and openEuler generate these automatically and need no list. +%if 0%{?suse_version} +Requires: perl(Expect) +%endif # fping or nmap is needed by pping (in case xCAT-client is installed by itself on a remote client) %ifos linux diff --git a/xCAT-server/xCAT-server.spec b/xCAT-server/xCAT-server.spec index 43ab9e20a9..f1d94acb5e 100644 --- a/xCAT-server/xCAT-server.spec +++ b/xCAT-server/xCAT-server.spec @@ -52,6 +52,15 @@ Requires: perl-IO-Socket-SSL perl-XML-Simple perl-XML-Parser perl-Digest-SHA1 pe # Time::HiRes and Text::Balanced) are not pulled in transitively by perl-xCAT # either. List them here or the affected subcommands die at load time. Requires: perl-Net-Telnet perl-Net-DNS perl-Crypt-CBC perl-Crypt-Rijndael +# openSUSE has no perl-generators, so no perl(...) requirement is generated here and nothing +# installs the modules this code loads. xcatd stays inactive without them: xCAT::Table dies +# loading JSON. EL and openEuler generate these automatically and need no list. +%if 0%{?suse_version} +Requires: perl(Date::Parse) +Requires: perl(Expect) +Requires: perl(JSON) +Requires: perl(SNMP) +%endif # DB_File is only used by the Confluent client (lib/xcat/Confluent/Client.pm). EL10 # dropped libdb: EPEL still carries perl-DB_File for x86_64 and ppc64le, but riscv64 has # no EPEL at all, so on EL10 ask for the module weakly -- it is installed where it exists