mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-19 17:02:15 +00:00
fix(packaging): an openSUSE node cannot fetch its loader over IPv6
xCAT.spec asked for the file /usr/sbin/in.tftpd. openSUSE has two providers and the solver installed atftp, whose server has no IPv6 option: it binds 0.0.0.0:69 only, and --bind-address :: does not change that. A node that boots over DHCPv6 therefore received its address and its RFC 5970 bootfile-url, asked the server for the loader, timed out, released the address and started again. xCAT.spec now requires the tftp package where suse_version is set. That is the hpa server, and it listens on 0.0.0.0:69 and [::]:69 at once. EL keeps the file dependency, which has one provider there, tftp-server. Measured on a Leap 15.6 management node: with atftp the loader could not be fetched over IPv6 and could over IPv4; after the swap both families served the same 1372160 byte loader, and a missing file still answered File Not Found. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
This commit is contained in:
@@ -84,7 +84,14 @@ Requires: (/usr/sbin/dhcpd if openEuler-release else ((kea and kea-hooks) if (sy
|
||||
# On RHEL this pulls in openssh-server, on SLES it pulls in openssh
|
||||
Requires: /usr/bin/ssh
|
||||
%if %nots390x
|
||||
%if 0%{?suse_version}
|
||||
# Two openSUSE packages provide /usr/sbin/in.tftpd and the solver may pick either. atftp has
|
||||
# no IPv6 option, so it binds 0.0.0.0:69 only and a node booting over DHCPv6 never fetches its
|
||||
# loader. tftp is the hpa server, which listens on both families.
|
||||
Requires: tftp
|
||||
%else
|
||||
Requires: /usr/sbin/in.tftpd
|
||||
%endif
|
||||
Requires: xCAT-buildkit = 4:%{version}-%{release}
|
||||
# Stty is only needed for rcons on ppc64 nodes, but for mixed clusters require it on both x and p
|
||||
Requires: perl-IO-Stty >= 0.04-5
|
||||
|
||||
Reference in New Issue
Block a user