Open gurevichmark opened 3 years ago
The problem appears to be in kickstart file generation.
nodeset
generates the kickstart file in /install/autoinst
and inserts the package name from packagelist file with a -
prefix into the %packages
section of the kickstart file.nodeset
generates the kickstart file in /install/autoinst
and seems to ignore the package name with a -
prefix from packagelist file. For SLES the kickstart file is in XML format and contains <packages>
and <remove-packages>
sections. The package name with a -
prefix from packagelist file does not cause the <remove-packages>
section to be added to the kickstart file.nodeset
generates the kickstart file in /install/autoinst
and inserts the package name with a -
prefix (-man-db
) into the command line d-i pkgsel/include string bash ifupdown nfs-common openssl isc-dhcp-client libc-bin openssh-server openssh-client wget vim -man-db rsync busybox-static gawk dnsutils chrony
. Eventually the node fails to provision with the following error:
Summary:
OS | Type | Action | Result | Comment |
---|---|---|---|---|
RH | Diskfull | rinstall |
OK | Package with - is not installed |
RH | Diskfull | updatenode |
OK | Package with - is removed |
RH | Diskless | genimage |
Failed | Package with - is part of generated image |
RH | Diskless | updatenode |
OK | Package with - is removed |
SLES | Diskfull | rinstall |
Failed | Package with - is installed |
SLES | Diskfull | updatenode |
OK | Package with - is removed |
SLES | Diskless | genimage |
Failed | Package with - is part of generated image |
SLES | Diskless | updatenode |
Failed/OK | Package with - failed to be removed, because we do not include zypper by default in diskless image. If zypper is added to the package list, then package with - is removed |
Ubuntu | Diskfull | rinstall |
Failed | Node fails to provision, which seems to be caused by a command in kickstart file containing a package name with - prefix |
Ubuntu | Diskfull | updatenode |
OK | Package with - is removed |
Ubuntu | Diskless | genimage |
Failed | Package with - is part of generated image |
Ubuntu | Diskless | updatenode |
OK | Package with - is removed |
Works on RHEL 8.2 but not on SLES.
xCAT documentation (https://xcat-docs.readthedocs.io/en/stable/guides/admin-guides/manage_clusters/common/deployment/additionalpkg/nonubuntu_os_pkg.html) talks about prefixing package in the package list file with
-
in order to remove it after the installation.It does not appear to do that when provisioning the node with
rinstall
, the package remains installed.However, when using
updatenode <node> -P ospkgs
, the package with-
prefix is properly removed.