mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-21 09:52:17 +00:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user