2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-19 17:02:15 +00:00
Commit Graph

35 Commits

Author SHA1 Message Date
Daniel Hilst 12e1deb45a fix(xcat-core): nothing installs radvd, so the IPv6 networks announce nothing
makedhcp writes /etc/radvd.conf for every IPv6 network in the networks table
and starts the service, and no package declared radvd. On a management node
that did not happen to carry it the file was written and nothing read it. A
client that follows RFC 4861 starts DHCPv6 only when an advertisement sets the
managed flag, and takes its on-link prefix and default route from the
advertisement rather than from the lease, so an IPv6-only node received one
address with a prefix length of 128 and no route to its server.

Measured on an Ubuntu management node: radvd.service answered "not-found"
while /etc/radvd.conf held the right configuration, the compute node held a
/128 DHCPv6 lease, and its installer answered "wget: can't connect to remote
host: Cannot assign requested address" when it tried to fetch its root over
HTTP. Installing radvd made the service active and makedhcp kept it that way.

xCAT and xCATsn now require it, in the rpm specs and in the Debian control
files. A service node answers DHCP for its own subnet and writes the same
file, so it needs the daemon too.

Depends rather than Recommends on Ubuntu, because the apt 3.0 solver drops a
Recommends: that is what took bind9 out of the 26.04 install and left makedns
with no named.

radvd_packaging.t reads the four manifests, which are the artifact. Removing
any one declaration fails its own check, and moving the Debian one to
Recommends fails the check that names the difference.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-10-30 13:45:04 -03:00
Vinícius Ferrão 32a688b30a build: require ipxe-xcat alongside xnba-undi
Unknown x86 clients and netboot=ipxe nodes boot the upstream iPXE
loader of the ipxe-xcat package, which the xCAT packages did not
install.

The specs require ipxe-xcat where they require xnba-undi: on x86 and
ppc for xCAT, and on x86 for xCATsn. xCAT on riscv64 and xCATsn on ppc
and riscv64 require ipxe-xcat alone, because a POWER or riscv64 server
can serve x86 nodes. The xcat and xcatsn debs depend on ipxe-xcat on
every architecture for the same reason. go-xcat installs and removes
ipxe-xcat with the other packages.

xnba-undi stays a dependency, because netboot=xnba nodes still boot
xNBA.
2026-10-02 23:58:14 -03:00
Daniel Hilst 24e22671b4 Merge branch 'master' of https://github.com/xcat2/xcat-core into release/2.19-rc1
master moved 149 commits ahead of the branch point and four files needed a
decision.

xCAT/debian/control and xCATsn/debian/control: master moved nmap and
ipmitool-xcat into Depends, raised the ipmitool version and added the s390x
OpenEmbedded Genesis recommendation. The branch made the genesis-scripts
dependency per architecture. Both are kept, so the ppc64el metapackage depends
on xcat-genesis-scripts-ppc64el and no longer on the amd64 package.

build-utils/lib/XCAT/BuildUtils.pm and xCAT-test/unit/build_utils.t: master
replaced @DEB_ARCHES plus the branch's %NO_RISCV64 exception list with
%ARCH_PACKAGES, which carries the architecture list per package.
deb_package_arches returns the same answer for every package, so master's form
is kept and %NO_RISCV64 is dropped.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-09-11 15:59:58 -03:00
Vinícius Ferrão 69e62f1be6 fix(debian): require nmap and ipmitool-xcat as the rpm packages do
The deb metapackages and xcat-client only recommended nmap and
ipmitool-xcat, while xCAT.spec, xCATsn.spec and xCAT-client.spec require
them. An install with --no-install-recommends therefore left bmcdiscover
without a scan method and out-of-band management without the tool ipmi.pm
and bmcdiscover.pm hard-code. Both move to Depends.

The ipmitool-xcat floor rises from 1.8.17-1 to 1.8.18-4, the floor of
xCAT.spec. Builds before 1.8.18-3 lack the CVE-2020-5208 patch.

Signed-off-by: Vinícius Ferrão <2031761+viniciusferrao@users.noreply.github.com>
2026-09-09 13:18:52 -03:00
Vinícius Ferrão 588a0504bf fix(xCAT): stop a riscv64 management node pulling the x86 Genesis
xcat-genesis-scripts-amd64 is Architecture: all, so the plain Depends installed
the x86 legacy Genesis scripts, and the x86 Genesis base with them, on a riscv64
management node. riscv64 has no legacy Genesis: its image ships as
xcat-genesis-openembedded-riscv64, which the metapackage already recommends and
mknb consumes. xCAT.spec makes the same distinction on the rpm side.

The dependency is now restricted to the architectures that have a legacy
Genesis. amd64 and ppc64el keep it unchanged.

Signed-off-by: Vinícius Ferrão <2031761+viniciusferrao@users.noreply.github.com>
2026-09-08 22:01:31 -03:00
Vinícius Ferrão 4766f4441f feat(build): build and publish the Ubuntu management node for riscv64
The xcat and xcatsn packages declared only amd64 and ppc64el, and the
builder built and indexed only those two architectures, so a riscv64
management node had no package to install. Both packages are now built for
riscv64, every release the repository serves declares the architecture,
and the generated mklocalrepo.sh maps a riscv64 host to its own repository
instead of amd64. Each package now carries its own architecture list:
xCAT-genesis-scripts keeps the two it has control files for, because
riscv64 Genesis ships as an OpenEmbedded package instead.

Signed-off-by: Vinícius Ferrão <2031761+viniciusferrao@users.noreply.github.com>
2026-09-08 17:02:03 -03:00
Daniel Hilst 6798db5fb7 fix(xcat-core): the Debian genesis dependency ignores the node architecture
A ppc64el or riscv64 management node installs the amd64 Genesis. xCAT and
xCATsn declare Architecture: amd64 ppc64el riscv64 and one unrestricted
Depends: xcat-genesis-scripts-amd64, so every architecture gets it. That
package is Architecture: all, so apt reports no error. It lays down
/opt/xcat/share/xcat/netboot/genesis/x86_64 and pulls the 128 MB
xcat-genesis-base-amd64, and the node receives no Genesis for its own
architecture. xcat-genesis-scripts-ppc64, the package that would carry it, is
uninstallable: it depends on xcat-genesis-base-ppc64, and builddeb-genesis-base
names the ppc64el base deb xcat-genesis-base-ppc64el.

xCAT/debian/control and xCATsn/debian/control now restrict the dependency by
architecture, the way xCAT.spec does with
%{?genesistarch:Requires: xCAT-genesis-scripts-%{genesistarch}}. amd64 gets
xcat-genesis-scripts-amd64, ppc64el gets xcat-genesis-scripts-ppc64el, and
riscv64 gets neither, because its Genesis is the OpenEmbedded image.
xCAT-genesis-scripts/debian/control-ppc64el builds xcat-genesis-scripts-ppc64el
and depends on xcat-genesis-base-ppc64el. It conflicts with and replaces the
old name, which shares the same files.

debian_control_arch_coverage.t asserts the genesis scripts an architecture
receives are that architecture's own, and that control-<arch> builds
xcat-genesis-scripts-<arch> against xcat-genesis-base-<arch>. Eight of its
assertions fail without this change.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-09-04 19:51:18 -03:00
Vinícius Ferrão a4109f6865 feat(genesis): add s390x network boot 2026-09-04 12:48:32 -03:00
Daniel Hilst 1cffcec1cf fix(xcat-core): build the xCAT debs for riscv64
apt on a riscv64 Ubuntu management node cannot find xCAT at all:

  E: Unable to locate package xcat

xCAT/debian/control and xCATsn/debian/control list "Architecture: amd64 ppc64el",
so the build produces no riscv64 deb and the published apt repository serves only
those two architectures. Everything else riscv64 needs is already in the tree --
the rocky10/rhels10 riscv64 install templates, the grub2 boot policy, mknb, the
OpenEmbedded Genesis machine -- and the xcat-dep riscv64 repository is built,
signed and complete; only the core packages are missing.

Add riscv64 to both lists.

xCAT-test/unit/debian_control_arch_coverage.t covers this: it fails on both files
without the change.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
(cherry picked from commit 13492f55c32b34597b24934079d35789b4cc57c0)
2026-09-04 12:20:34 -03:00
Vinícius Ferrão f7fd1e1fd2 build(rpm): recommend the RISC-V Genesis image 2026-09-01 10:50:25 -03:00
Vinícius Ferrão 735951fefe feat(genesis): enable shared package repository 2026-08-25 11:26:44 -03:00
Daniel Hilst c2f3de2289 fix(xcat-core): make xCAT work on Ubuntu 26.04 (resolute)
Promote bind9 from Recommends to Depends on the xcat and xcatsn metapackages. bind9 is
required by makedns, so it must be a hard dependency regardless of the system's APT
recommendation policy -- xCAT manages the cluster DNS through makedns/named, which
makes a DNS server as essential to a management or a service node as the DHCP backend
already declared beside it ("isc-dhcp-server | kea"). As a Recommends it was installed
only while that policy asked for it: an Ubuntu 26.04 management node came up with no
/usr/sbin/named and makedns failing with "failed to start named".

Strip only a trailing third component when deriving the debootstrap suite in the
Ubuntu netboot genimage. The previous s/\.\d+$// also removed the minor from a
two-part osvers, so an initial release with no point-release ISO -- ubuntu26.04, but
equally an initial-release 18.04/20.04/22.04 -- reached debootstrap as a bare major.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-08-24 18:15:41 -03:00
Daniel Hilst 37212eea3c fix(xcat): drop unsatisfiable ppc64 genesis-scripts dependency
xcat and xcatsn declared a hard dependency on xcat-genesis-scripts-ppc64. In
an amd64-only build that package is never produced, so apt could not satisfy
the dependency and refused to install xcat. Depend only on the amd64
genesis-scripts package.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-06-24 14:20:26 -03:00
Vinícius Ferrão 6f3d9bb9d1 Add Kea DHCP backend 2026-04-23 02:01:33 -03:00
Mark Gurevich 3b0442797c Support for xCAT installation on Ubuntu20 2022-09-21 10:02:27 -04:00
Mark Gurevich 7c5ed56108 goconserver version update for Ubuntu 2020-11-03 15:54:29 -05:00
Mark Gurevich 4eef7d6987 Revert "Remove kits from Ubuntu and go-xcat"
This reverts commit 7c9d6a56f0.
2019-10-03 11:28:51 -04:00
Mark Gurevich 7c9d6a56f0 Remove kits from Ubuntu and go-xcat 2019-07-24 16:42:26 -04:00
GONG Jie fd76d16d3e Remove package conserver from Depends section. Move package goconserver from Recommends section to Depends section 2019-05-16 17:15:21 +08:00
GONG Jie 8d06fe1195 Add package dependency dependency for goconserver 2018-01-31 13:59:30 +08:00
bybai d9a8a1bce6 fix CI failure for syslinux deb package arch 2018-01-18 22:11:46 -05:00
neo954 327db76f9e Make all the deb packages have the exactly same version and release numbers 2017-01-03 12:56:15 +08:00
chenglch 843fee9ad3 Modify build spec to require ipmitool-xcat-1.8.17-1 2016-11-10 10:44:03 +08:00
hu-weihua d7a683b200 fix probe bugs 2016-08-15 04:10:50 -04:00
ertaozh 8b5f44c44a Modify xcat-genesis-script pkg name for ubuntu 2016-08-10 01:23:06 -04:00
ertaozh cd471d112d modify dependency xcat-genesis-scripts to xcat-genesis-scripts-ppc64 and xcat-genesis-scripts-x86-64 for xcatsn and xcat 2016-07-20 01:17:45 -04:00
ertaozh 65bfb783d2 modify xcat to depended on ipmitool-xcat-1.8.15-2 and higher 2016-07-18 01:53:00 -04:00
immarvin 36faf1885b fix defect #4523 [DEV]'rpower' complains missing 'Sys::Virt perl module' in ubuntu14.04.1 ppc64el hierarchy scenario 2015-01-15 01:04:37 -08:00
immarvin 84712be32c support apache2.4 in ubuntu 2014-11-11 19:04:52 -08:00
xq2005 28d9fdd2aa change the Maintainer to xCAT when building packages on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16760 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-26 07:34:47 +00:00
xq2005 ce61ef6222 delete the depends on atftp when build xcatsn on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14105 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-24 07:17:47 +00:00
linggao 500cbef47d eliminated the dependency on fping for Linux
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13779 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-12 15:47:43 +00:00
arifali 5fc6f38540 remove vsftpd dependancy, and make genesis the default rather than nbroot
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13054 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-10 15:51:15 +00:00
arifali ade7ff742c changed control file similar to xCAT
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12158 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-07 23:19:12 +00:00
hamzy df4d2ab93a This is the first draft of building packages under Debian. Take 2. :)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9437 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-04-29 21:20:55 +00:00