From bf3a2f066bb5295416948129d3ac4d3ef2b95795 Mon Sep 17 00:00:00 2001 From: Daniel Hilst <392820+dhilst@users.noreply.github.com> Date: Thu, 29 Oct 2026 08:52:27 -0300 Subject: [PATCH] fix(packaging): SLP discovery and IPMI over IPv6 are off on an openSUSE node Socket6 and IO::Socket::INET6 are absent on a Leap 15.6 management node that carries every other xCAT dependency, so $ip6support in xCAT::SLP and $doipv6 in xCAT::IPMI evaluate to 0. SLP discovery and IPMI over IPv6 then do nothing and report no error. Both packages exist: perl-Socket6 and perl-IO-Socket-INET6 are in the openSUSE main repository and in the EL appstream repository. Nothing asked for them. perl-generators reads a use statement, and every caller uses eval { require ... }, so the EL build derives no perl(Socket6) either. xCAT-server named the deb packages as Recommends, which apt 3.0 solver3 drops when it cannot place them. perl-xCAT and xCAT-server now require both modules on every RPM family, and the xCAT-server deb moves them from Recommends to Depends. Captured by xCAT-test/unit/ipv6_socket_modules_declared.t, which fails 16 of its 20 assertions without this change. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com> --- perl-xCAT/perl-xCAT.spec | 5 +++++ xCAT-server/debian/control | 3 +-- xCAT-server/xCAT-server.spec | 4 ++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/perl-xCAT.spec b/perl-xCAT/perl-xCAT.spec index 0fc559f00a..b6de8c1a52 100644 --- a/perl-xCAT/perl-xCAT.spec +++ b/perl-xCAT/perl-xCAT.spec @@ -20,6 +20,11 @@ BuildRequires: perl perl-DBI perl-JSON %if 0%{?suse_version} Requires: perl(JSON) perl(Expect) perl(SNMP) perl(HTML::Form) %endif +# xCAT::SLP, xCAT::Client and xCAT::NetworkUtils reach IPv6 only through these two, and +# each one loads them with eval { require ... }. perl-generators reads a use statement, not +# a require inside an eval, so no family derives them. A missing module is not an error: the +# guard variable stays false and the IPv6 branch is never taken. +Requires: perl(Socket6) perl(IO::Socket::INET6) # Do not need the SOAP rpm require, because rpm will generate it automatically if hpoa.pm is included #Requires: perl-SOAP-Lite %endif diff --git a/xCAT-server/debian/control b/xCAT-server/debian/control index 612ac4aa3f..0f5c284de1 100644 --- a/xCAT-server/debian/control +++ b/xCAT-server/debian/control @@ -8,8 +8,7 @@ Homepage: https://xcat.org/ Package: xcat-server Architecture: all -Depends: ${perl:Depends}, grub-common, libcgi-pm-perl, grub2-xcat (>= 2.02-0.76.el7.1.snap201905160255), perl-xcat (>= 2.13-snap000000000000), xcat-client (>= 2.13-snap000000000000), libsys-syslog-perl, libio-socket-ssl-perl, libxml-simple-perl, make, ucf, libdbd-sqlite3-perl, libexpect-perl, libnet-dns-perl, libsoap-lite-perl, libxml-libxml-perl, libsnmp-perl, debootstrap, libdigest-sha-perl,libcrypt-rijndael-perl,libcrypt-cbc-perl,libjson-perl, libnet-https-nb-perl, libhttp-async-perl -Recommends: libio-socket-inet6-perl, libsocket6-perl +Depends: ${perl:Depends}, grub-common, libcgi-pm-perl, grub2-xcat (>= 2.02-0.76.el7.1.snap201905160255), perl-xcat (>= 2.13-snap000000000000), xcat-client (>= 2.13-snap000000000000), libsys-syslog-perl, libio-socket-ssl-perl, libxml-simple-perl, make, ucf, libdbd-sqlite3-perl, libexpect-perl, libnet-dns-perl, libsoap-lite-perl, libxml-libxml-perl, libsnmp-perl, debootstrap, libdigest-sha-perl,libcrypt-rijndael-perl,libcrypt-cbc-perl,libjson-perl, libnet-https-nb-perl, libhttp-async-perl, libsocket6-perl, libio-socket-inet6-perl Description: Server and configuration utilities of xCAT xCAT-server provides the core server and configuration management components of xCAT. diff --git a/xCAT-server/xCAT-server.spec b/xCAT-server/xCAT-server.spec index 684f79e33c..9f4a1366cf 100644 --- a/xCAT-server/xCAT-server.spec +++ b/xCAT-server/xCAT-server.spec @@ -52,6 +52,10 @@ 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 +# xCAT::IPMI and the dhcp, nodestat and credentials plugins reach IPv6 only through these +# two, and each one loads them with eval { require ... }, so a missing module leaves IPMI +# over IPv6 and the IPv6 half of node status silently off. +Requires: perl(Socket6) perl(IO::Socket::INET6) %if 0%{?suse_version} # xcatd.pm uses Date::Parse. openSUSE has no perl-generators, so nothing derives this # from the source and xcatd exits before it opens its socket.