2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-21 01:42:15 +00:00
Commit Graph

3778 Commits

Author SHA1 Message Date
Daniel Hilst a695723541 Merge pull request #8006 from VersatusHPC/fix/el-kickstart-pre-log
fix(install): copy the kickstart pre-install log from the installer
2026-11-07 00:54:01 -03:00
Vinícius Ferrão 568db90972 test(install): cover the kickstart pre-install log handoff
Run the rendered %post --nochroot blocks of each kickstart template
whose %pre writes /tmp/pre-install.log the way anaconda runs them: in
the installer, with its own /tmp and the installed system at
/mnt/sysimage. Each run must append the log to a new or an existing
xcat.log. The riscv64 profile test now keeps the installer's /tmp out
of the installed root too. Both fail on the old templates, whose chroot
%post reads a /tmp that does not hold the log.

Run the new test in the profile artifact job.
2026-11-06 23:10:32 -03:00
Vinícius Ferrão e1d9900b3e test(install): keep custom partition files out of the install log
Render the rhels9 and rhels10 kickstarts with no partitionfile, a custom
partitionfile and a custom partition script, each with xcatdebugmode 0,
1 and 2, and run %pre in a sandbox. The custom input holds credentials
in the =, separated, quoted, escaped and split option forms, a boot
loader password and a root password. The pre-install log must show the
generated partition scheme, or a notice for custom input, with neither a
credential nor a traced decoded byte of the custom input, and anaconda
must still get the custom partition definitions.

Run the new test in the profile artifact job.
2026-11-06 23:10:32 -03:00
Vinícius Ferrão d198efde01 test(install): run riscv64 %post --nochroot blocks outside the chroot
The riscv64 profile test runs every rendered %post block as if it ran in
the installed system. Anaconda runs a --nochroot block in the installer,
with the installed system at /mnt/sysimage, so give such a block that
view.
2026-11-06 23:10:31 -03:00
Vinícius Ferrão 25793a41f0 test(netboot): hand the NetworkManager lease of the initrd to diskless roots
The stateless xcatroot of dracut_047, run in a chroot with NetworkManager
leases of the dhclient and internal clients in the initrd, must copy
both into the root under their own names. CI now runs the xcatroot test
as root.
2026-11-06 23:10:30 -03:00
Daniel Hilst 0e3caac201 Merge pull request #8019 from VersatusHPC/fix/ubuntu-genimage-rerun
fix(ubuntu): reuse the root image of an earlier genimage run
2026-11-06 17:21:59 -03:00
Daniel Hilst 005f09d51f Merge pull request #8020 from VersatusHPC/fix/geninitrd-exit-status
fix(geninitrd): report a failed genimage run
2026-11-06 17:17:57 -03:00
Daniel Hilst 1b91c188ce Merge pull request #8018 from VersatusHPC/fix/ubuntu-genimage-boot-files
fix(genimage): publish the kernel and ramdisks together
2026-11-06 17:17:10 -03:00
Daniel Hilst 0c94c50f55 Merge pull request #8011 from VersatusHPC/fix/go-xcat-apt-listing
fix(go-xcat): read apt candidates in the C locale
2026-11-06 16:57:30 -03:00
Daniel Hilst efb8e81cb3 Merge pull request #7996 from VersatusHPC/fix/xcattest-table-value-class
fix(xcattest): a [Table_*] value stops at its first colon or slash
2026-11-06 16:28:35 -03:00
Daniel Hilst e4f6b4be5d Merge pull request #8017 from VersatusHPC/test/native-shell-script-tests
test(native): run shell script tests outside the unit runner
2026-11-06 15:56:14 -03:00
Daniel Hilst bc1a419f7e Merge pull request #8007 from VersatusHPC/fix/template-missing-root-password
fix(install): stop nodeset when a template has no root password
2026-11-06 15:54:05 -03:00
Vinícius Ferrão 9df65310a8 test(genimage): cover the image lock of EL geninitrd 2026-11-06 15:32:09 -03:00
Vinícius Ferrão cb75045114 test(genimage): stop checking that EL geninitrd runs without the lock 2026-11-06 15:31:38 -03:00
Vinícius Ferrão 454fe59784 test(genimage): cover a rollback whose backup is gone 2026-11-06 15:25:36 -03:00
Vinícius Ferrão 7f51e1da88 test(genimage): cover a rename that fails after it moved the file 2026-11-06 15:19:24 -03:00
Vinícius Ferrão 6b2c183246 test(genimage): cover the staged publication of EL boot files 2026-11-06 15:08:51 -03:00
Vinícius Ferrão 1f6f56e559 test(genimage): drop the checks of the per-ramdisk publication
imgutils_staged_boot_files.t covers the publication of boot files. The
remaining checks of the unit test openeuler_genimage_bootfiles.t cover
disable_vendor_repositories, so the file now has that name.

The native EL cases checked that genimage keeps copying the kernel into
place before dracut runs, which the next change removes.
2026-11-06 14:56:31 -03:00
Vinícius Ferrão 173ab102e5 test(genimage): cover the kernel copy and the cpio packing 2026-11-06 14:52:57 -03:00
Vinícius Ferrão 473c8dc947 test(geninitrd): cover the exit status of genimage 2026-11-06 02:44:26 -03:00
Vinícius Ferrão fe3740f9dc test(genimage): cover the publication of a kernel with several ramdisks 2026-11-05 21:38:54 -03:00
Vinícius Ferrão 9d40a2e0d3 test(ubuntu): cover genimage reuse of a finished root image 2026-11-05 18:39:24 -03:00
Vinícius Ferrão 38e00d0cf2 test(ubuntu): cover the kernel that genimage publishes 2026-11-05 18:39:24 -03:00
Vinícius Ferrão 2aa3863881 test(probe): move the detect_dhcpd test to the native tests
The test runs both detect_dhcpd scripts with a fake tcpdump, and its
capture cases need private mount and network namespaces. It now lives in
xCAT-test/native with the other namespace tests, and the pull-request
workflow runs it in its own step. The capture cases keep their own unshare
call, because they add a default route on the loopback interface.
2026-11-03 18:08:30 -03:00
Vinícius Ferrão d4c0b34393 test(debian): run the xcatd init state test in a sandbox
The unit test ran the Debian init helpers in the host shell, with fake
ucf, update-rc.d, systemctl and mv first in the host PATH. It now runs them
with sandbox_run in xCAT-test/native, with the compatibility root apart from
the /etc of the sandbox, and the Debian package lifecycle step runs it.
2026-11-03 18:08:18 -03:00
Vinícius Ferrão 1c2a71d250 test(scriptlib): run the NetworkManager autoconnect test in a sandbox
The unit test sourced scriptlib in the host Bash, with a fake nmcli first
in the host PATH. It now runs the helper with sandbox_run in
xCAT-test/native, and the pull-request workflow runs it in its own step.
2026-11-03 18:08:11 -03:00
Vinícius Ferrão 75c874ebad test(ubuntu): cover a partitionfile layout on the partitionfile disk
A layout without a match that follows a disk file gets a match on the
disk the file selects, resolved when it is a link, and a use_gap layout
that follows a disk file stops the install. A layout with its own match
and a layout without a disk entry are kept as written.
2026-11-03 17:53:20 -03:00
Vinícius Ferrão 1d378818dd test(ubuntu): cover a failed partitionfile entry on Subiquity installs
A disk script or layout script that fails, or that writes no disk or
layout, and a disk file or layout file that holds only blank lines,
comments or an empty storage section each stop the pre-install script and
leave no storage config for Subiquity. A layout file that starts a YAML
document still leaves autoinstall.yaml one document.
2026-11-03 17:53:20 -03:00
Vinícius Ferrão ff870a0723 test(template): cover partitionfile entries read with their own s: prefix
A layout file followed by a disk script and a layout script followed by a
disk file each replace the default storage config with the administrator
layout. A layout file after a layout script and a disk file after a disk
script are read as files, on Subiquity and in the debian-installer recipe
step.
2026-11-03 17:53:20 -03:00
Vinícius Ferrão 94fb370ee4 test(ubuntu): cover partitionfile entries on Subiquity installs
Render the node's pre-install script through the Template entry point and
run its partitioning under dash. Without a partitionfile the storage config
keeps the disk getinstdisk chose. A disk file puts its first disk there,
resolved when it is a link, a disk script puts the disk it writes there,
and a layout file or layout script replaces the default storage config.
2026-11-03 17:53:19 -03:00
Daniel Hilst 557a39dd0c Merge pull request #8013 from VersatusHPC/feat/openeuler-riscv64
feat(openeuler): support riscv64 compute nodes
2026-11-03 13:17:33 -03:00
Daniel Hilst a82d521152 Merge pull request #8009 from VersatusHPC/fix/el10-initrd-network-handoff
fix(netboot): drop the dhclient and ifcfg handoff from EL10 initrds
2026-11-03 13:15:15 -03:00
Daniel Hilst 3ab5de330d Merge pull request #8008 from VersatusHPC/fix/el10-netboot-auto-default
fix(netboot): keep EL10 diskless nodes from DHCP on every port
2026-11-03 13:14:44 -03:00
Daniel Hilst f5db4cb78f Merge pull request #8005 from VersatusHPC/fix/riscv64-efi-boot-entries
fix(install): keep the riscv64 boot entries of other disks
2026-11-03 13:14:14 -03:00
Daniel Hilst f76458fb4b Merge pull request #8002 from VersatusHPC/fix/go-xcat-apt-install
fix(go-xcat): install from apt without apt-key and skip missing packages
2026-11-03 13:13:49 -03:00
Daniel Hilst 753ec32eb5 Merge pull request #8001 from VersatusHPC/fix/riscv64-intel-net-drivers
fix(netboot): give riscv64 images the Intel 700 and 800 series drivers
2026-11-03 13:13:21 -03:00
Daniel Hilst 4e13265ed2 Merge pull request #8000 from VersatusHPC/fix/ipmi-sdr-reservation
fix(ipmi): read the SDR when the BMC grants an unadvertised reservation
2026-11-03 13:12:34 -03:00
Vinícius Ferrão c2af0283ab test(anaconda): refuse to mix the RVA20 and RVA23 openEuler media
copycds must refuse media of one build over a copy of the other, before
it opens any table, and leave the copy unchanged. Media of the same build,
in either case, a target without a copy and x86_64 media must copy on.
2026-11-02 19:55:57 -03:00
Vinícius Ferrão fd8e60c21e test(install): start kdump on openEuler nodes only with dump memory
The rendered compute and service %post, run in a sandbox through the
downloaded postscript, must leave the kdump.service drop-in that stateless
images get. A system without kdump.service must get none.
2026-11-02 19:55:57 -03:00
Vinícius Ferrão 7a57007465 test(netboot): start kdump on stateless nodes only with dump memory
An image with kdump.service must get the dump-memory drop-in, once, next
to any site drop-in, and an image without it must get none. systemd itself
must start kdump.service with crashkernel= or fadump= on the command line,
and skip it with neither.
2026-11-02 19:55:56 -03:00
Vinícius Ferrão 72b3228f81 test(netboot): build and pack openEuler riscv64 diskless images
genimage must dispatch an openeuler24.03sp3 riscv64 image to the native
openEuler builder. packimage must pack it, and still refuse it as a
StateLite image.
2026-11-02 17:48:54 -03:00
Vinícius Ferrão 28e447bb2e test(anaconda): publish an upper-case riscv64 media boot loader
openEuler media carry EFI/BOOT/grubriscv64.EFI. copycds must publish it as
grub2.riscv64.
2026-11-02 17:48:53 -03:00
Vinícius Ferrão a112ff0f2d test(anaconda): identify the openEuler riscv64 media
The fixture holds the .treeinfo and .discinfo of the 24.03 LTS-SP3 RVA23
DVD. copycds must identify it as openeuler24.03sp3 on riscv64.
2026-11-02 17:48:52 -03:00
Vinícius Ferrão 98190f9eba test(go-xcat): cover the package table with an unknown terminal type
Check that list_xcat_packages adds no tput error to its output when
TERM names a terminal type that tput does not know, or is empty.
2026-10-30 21:02:43 -03:00
Vinícius Ferrão 96850ce72b test(go-xcat): cover the package table under a translated apt
Share the apt-cache double of the apt install tests. Check that
list_xcat_packages shows the apt candidates in the C locale and under a
translated apt.
2026-10-30 21:02:43 -03:00
Vinícius Ferrão 6d5f8bcec5 test(netboot): cover the EL10 initrd network handoff
The dracut_105 xcatroot must not copy dhclient leases or write an ifcfg
file. With the earlier script the case fails on the "cannot stat" and
ifcfg errors that an EL10 boot printed.
2026-10-30 17:51:15 -03:00
Vinícius Ferrão 3e514bc6ee test(netboot): cover the NetworkManager defaults of EL10 images
An EL10 image must turn off the automatic DHCP profiles. An EL9 image
must keep the NetworkManager defaults, and an image without
NetworkManager must get no NetworkManager configuration.
2026-10-30 17:43:54 -03:00
Vinícius Ferrão 5609c8f811 test(netboot): cover the otherifce profiles of diskless images
An EL10 image must get a DHCP keyfile for each requested interface,
also when it has a network-scripts directory. Only root can read the
keyfiles, and the interface of the initial ramdisk gets none. A rebuild
must drop the keyfile of an interface that is no longer requested and
keep other profiles. An EL9 image must keep its ifcfg files.
2026-10-30 17:43:53 -03:00
Vinícius Ferrão 2b2c6970c6 test(install): cover templates without a root password row
The EL10 kickstart must not render without the passwd row, and must
carry the hash of the configured password when the row exists. The
Ubuntu autoinstall must still lock a password that has no row. The
first case fails with the earlier code, which rendered an empty rootpw.
2026-10-30 17:43:41 -03:00
Vinícius Ferrão a09bc8eb07 test(install): cover riscv64 boot entries on other disks
The EL10 fix-up must keep the boot entry of a system on another disk,
and must remove nothing when lsblk reports no ESP partition GUID. Both
cases fail with the earlier code, which removed every matching entry.
2026-10-30 15:55:21 -03:00