2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-23 10:52:29 +00:00
Commit Graph

211 Commits

Author SHA1 Message Date
Vinícius Ferrão 9a7a690ec7 feat(uftp): pass the UFTP boot arguments in nodeset
nodeset adds xcat.uftp= and xcat.uftpfp= to the kernel command line of
a stateless node whose image has rootimgtransport uftp, directly or
from site.rootimgtransport. The node then receives the root image over
UFTP and downloads it over HTTP when that fails.

nodeset refuses a node when its image cannot use UFTP. That is the case
when the root image check is off, the image URL uses https, or the
image has a BitTorrent .metainfo file. It is also the case when the
listener does not serve the image directory, or the initial ramdisk
that nodes will boot is not the one that genimage marked as having the
receiver. nodeset also refuses a node whose linuximage.addkcmdline or
bootparams.addkcmdline sets either argument. nodeset checks this before
it copies the boot files to TFTP, so a refused node keeps its current
boot entry and the kernel and initial ramdisk that the entry names.
Statelite images ignore the attribute, as it applies to stateless
images only.
2026-10-21 11:44:22 -03:00
Daniel Hilst cf170b36c4 Merge pull request #7942 from VersatusHPC/feat/rootimg-sha256
feat(netboot): check the root image against its SHA-256 checksum
2026-10-16 18:18:10 -03:00
Vinícius Ferrão 3856dbeee8 refactor(boot): remove the private Genesis selector name 2026-10-14 13:30:00 -03:00
Vinícius Ferrão 3b50ed9036 refactor(boot): expose the Genesis file selector 2026-10-14 13:30:00 -03:00
Vinícius Ferrão 6713d01af3 refactor(boot): share Genesis artifact selection 2026-10-14 13:29:22 -03:00
Vinícius Ferrão 810e3bf66d fix(nodeset): copy the initial ramdisk that SLES statelite ramdisk nodes boot
A SLES statelite ramdisk image built with dracut boots
initrd-stateless.gz, but nodeset copied only initrd-statelite.gz to the
TFTP directory and checked only for that file. Nodes requested an initial
ramdisk that nodeset never copied, or one that an older nodeset left.

nodeset now chooses the initial ramdisk once, then copies, checks and
boots that file, as it does on Red Hat.
2026-10-13 16:51:32 -03:00
Vinícius Ferrão f8469e2074 feat(nodeset): tell nodes the root image checksum setting
Nodes could not know whether an image turned the root image checksum on.
An initial ramdisk built before the check booted the image unchecked,
and nothing reported it. An archive packed before the check had no
checksum for a new initial ramdisk to find.

When the image or the site turns the checksum on, nodeset adds
rootimgchecksum=yes to the kernel command line of the node. This applies
to stateless and statelite ramdisk nodes. genimage writes
<initrd>.rootimgcheck next to an initial ramdisk that can check. The
marker holds the SHA-256 checksum of the initial ramdisk, so a replaced
ramdisk does not match it. imgexport and imgimport carry the marker with
the ramdisk.

When the checksum is on, nodeset warns once for each image whose initial
ramdisk has no matching marker. Its nodes may boot the image unchecked.
nodeset judges the initial ramdisk in TFTP after it copies the boot
files, because nodes boot that copy, also with --noupdateinitrd. A copy
that fails is now an error for the node, instead of a boot entry for the
previous boot files.

genimage and nodeset write a checksum for each archive of the image
directory that has none, also when the check is off. Nodes with older
boot entries still check. genimage does it before it copies a new
initial ramdisk to TFTP, and nodeset before it copies the boot files of
a node. Both hold the publication lock while they write. When they
cannot write the checksum, they keep the boot files that nodes use now
and report how to recover. With the check off, nodeset reports it as a
warning instead, and still sets up the node. nodeset marks the boot
files of an image as copied only after this step succeeds. When the
first node of an image fails it, the next node copies them.

The change covers the Red Hat, SUSE and Ubuntu nodeset plugins, which
share one helper in xCAT::SvrUtils.
2026-10-13 15:29:22 -03:00
Vinícius Ferrão a983faf736 fix(genesis): retire stale legacy initramfs
Signed-off-by: Vinícius Ferrão <2031761+viniciusferrao@users.noreply.github.com>
2026-08-25 11:26:47 -03:00
Daniel Hilst ec2bbb9a6a Merge pull request #7588 from VersatusHPC/fix/issue-6495-nfs-root-options
feat: add configurable NFS root options for statelite images
2026-07-17 23:46:14 -03:00
Vinícius Ferrão 4918dfa9b7 fix(copycds): keep SLE 15 source media separate 2026-07-14 23:28:14 -03:00
Vinícius Ferrão 24e2c98957 style(statelite): align image cache assignments 2026-07-14 19:11:28 -03:00
Vinícius Ferrão aa086a1bc9 feat(statelite): support NFS root mount options 2026-07-14 19:04:09 -03:00
Vinícius Ferrão 9f33b19214 fix: restore legacy SLES provisioning paths 2026-05-05 17:09:37 -03:00
Vinícius Ferrão 03a16dd081 fix: move kernel quiet flag from hardcoded to osimage default
The quiet kernel parameter was hardcoded in anaconda.pm and sles.pm,
making it impossible for admins to get verbose boot output without
editing plugin source code. The existing addkcmdline mechanism
(bootparams and linuximage tables) only appends to the kernel command
line, so there was no way to remove quiet.

Move quiet out of the plugin kcmdline construction and into the
linuximage.addkcmdline default set during copycds osimage creation.
Admins who want verbose boot for debugging can now remove it per
osimage:

    chdef -t osimage <image> addkcmdline=""

New osimages get addkcmdline="quiet" by default. Existing osimages
with a custom addkcmdline are not overwritten on re-run of copycds.

Genesis/discovery boot (mknb.pm) is unchanged as it does not use
osimage definitions.

Addresses #6916
2026-05-04 22:58:52 -03:00
Vinícius Ferrão 5aa1cda179 feat: add openSUSE Leap 15 provisioning support 2026-05-02 16:57:46 -03:00
Mark Gurevich ae5dea34b4 Improve SLES15 copycds for Media2 iso 2022-06-28 11:46:41 -04:00
Jarrod Johnson ecc26ed694 Workaround SuSE Full media difference
Profiles written around the initial SuSE15 concept
of 'Installer' and 'Packages' expect Packages in 2.
Workaround by symlinking a 2 when needed.
2021-03-15 15:08:45 -04:00
Jarrod Johnson 2556112b24 Support 'Full' media variant for SLES
SUSE sometimes publishes distro as a single media
2021-03-15 15:08:21 -04:00
Jarrod Johnson 101cfe4b1c Implement sle15.N for SuSE 15 service packs 2020-01-17 20:12:02 +01:00
yangsbj 33c5c3cae1 fix issue nodeset calculate wrong path for deploying sles when using "copycds -p" #5966 2019-01-24 04:16:24 -05:00
yangsbj 5d90a4212c change HTTPPORT in /proc/cmdline to XCATHTTPPORT to avoid potential confilic 2018-11-04 21:54:30 -05:00
yangsbj 1fb78eb97d add HTTPPORT=xxx in kcmdline for diskless/statelite 2018-11-02 05:00:26 -04:00
yangsbj 1889ec879d support site.httpport in nodeset and mknb 2018-11-01 23:29:01 -04:00
Yuan Bai 95ca105635 enhancements for sle15 diskful CN deployment (#5605)
* add sle dir for copycds

* remove HPC packages from sle15 template

* copycds support ppc64le sle15

* support packages products for sle15

* create repos  for all products in sle15 Package ISO

* fix deployment status postbooting in sle15

* support sle15

* add copycds example for sle15

* generate add_on product

* polished

* adjust product_dir
2018-09-18 18:03:32 +08:00
Yuan Bai 6cb744fcf7 fix osarch missing from copycds (#5543) 2018-08-21 15:29:07 +08:00
Jarrod Johnson 95aa9decc1 Remove spurious variable scoping.
This had broken all but SLE15 support.
2018-08-10 10:57:46 -04:00
Jarrod Johnson 2a6cd52057 Correct for SLE15
SLE15 is a more unified distro.  Also fix install=
for SLES15, versus osimage
2018-08-06 14:02:03 -04:00
Jarrod Johnson b600391786 Correct oversight in SLE-15 support 2018-08-06 14:02:00 -04:00
Jarrod Johnson f26c82b7ba SLE 15 support 2018-08-06 14:01:54 -04:00
Jarrod Johnson a39707fa94 Restore classic nodeset arguments
People are opting into the classic arguments, continue helping them so
long as it works.
2018-08-06 14:01:44 -04:00
Bin Xu d447882fd5 Adjust the server used for kernel/initrd and imgurl for petitboot (#4416)
- URL for kernel/initrd, get the value from below value tftpserver -> xcatmaster -> myipfn
 - URL for image, get the value from below value nfsserver -> tftpserver -> xcatmaster -> myipfn
2017-12-13 18:14:04 +08:00
Bin Xu da60d783d0 1, make the error as node level error in sles/debian plugin so that nodeset can know which are the failure nodes (#4122)
2, using global variable for failurenodes in grub2 plugin
2017-10-19 03:09:33 -05:00
chenglch 3408e93e6b Do not query noderes table in subvars subroutine
This patch refactor the interface to get xcatmaster and tftpserver
attributes in the subvars subroutine to improve the performance.

partial-issue: #3958
2017-09-25 16:33:23 +08:00
immarvin 2f609bdb8a fix issue [FVT]:nodeset against diskless osimage output is not consistent on rhels and sles/ubuntu #3783 2017-08-29 02:46:13 -04:00
Yuan Bai cccf4b783f fix 3224 nodeset create dracut.* file in sles statelite cost too much… (#3227)
* fix 3224 nodeset create dracut.* file in sles statelite cost too much time

* polished based on comments
2017-06-07 22:21:05 -05:00
Yuan Bai ac13575cc5 fix 2786 statelite NFS mount options are ignored (#2791) 2017-03-31 02:28:12 -05:00
yangsong f834844774 Merge pull request #2351 from chenglch/xcattable
Do not update bootparams table when running nodeset
2017-01-18 01:15:52 -06:00
chenglch 97f9d4da8f Do not update bootparams table when running nodeset
With the nytprof tool, the buttleneck is the time to update the bootparams
table.To optimize the performance on large scale nodes, this patch tranfer
the bootparams hash through variable reference.

posible impact: getdestiny can not get the information about bootparams.

partial-issue: #2024
2016-12-23 13:45:20 +08:00
bybai 6dbd5c88d5 fix 2231 Failed to generate osimage definiton for sles11.4-x86_64-statelite-compute after copycds 2016-11-30 06:38:29 -05:00
immarvin 72f66aed71 fix [fvt] nodeset node diskless image failed for could not find the diskless image #2188 2016-11-22 02:59:09 -05:00
immarvin 907c4971a9 fix issue [CUSTOMER] the old diskless image built by xCAT can not be used after xcat 2.12.2 #2130 2016-11-17 03:31:30 -05:00
Jarrod Johnson 967dd0f5fb Fix Debian and SLES rootimg.gz compatibility
Do not require repacking of a rootimage if the
environment has the 'old style' packed image.
2016-11-09 11:24:58 -05:00
penguhyang 7bcf328b0f support sles12 for statelite, nfs and ramdisk (#1774) 2016-09-20 11:08:27 +08:00
penguhyang 79426ad21e add new option to indicate compress method (#1669) 2016-08-11 03:09:43 -05:00
penguhyang 5cd203cdf5 enhance packimage -m txc (#1602) 2016-08-02 16:45:31 +08:00
Mark Gurevich 0a3fbd8d51 perltidy all perl files 2016-07-20 11:40:27 -04:00
penguhyang 5d46d48f6a Fix issue of packimage -m txc (#1554)
* redefine the code to make distint

* fix issue of packimage -m txc
2016-07-20 07:06:33 -05:00
penguhyang 0a0f1d76d7 fix #1083, redhat sles, diskless, enable the diskless installation can be forwarded to MN when xcatdebugmode=2 2016-06-16 00:14:28 -04:00
immarvin c51e702a68 correct some typo 2016-05-08 22:07:27 -04:00
immarvin 10a21d048e from sles11.3, suseboot/linux64 and suseboot/initrd64 should be used in diskful installation instead of suseboot/inst64 2016-05-06 03:45:56 -04:00