Re: [xcat-user] Versionlock a given package in stateless compute
Hi guys still on this matter. As today MLNX OFED is becoming a pain to maintain with xCAT since perftest from OS needs libefa.so.1 which is unavailable with MLNX OFED. If we have an Stateless image, we cannot run updatenode -S to deploy packages since dnf will be in a broken state due to perftest requirements. A solution would be to blacklist perftest from the OS, which is basically the same question in this thread, to solve the issue. So if there’s no way to version lock, is there at least a way to blacklist them? Thanks. > On 28 Jan 2022, at 20:38, Vinícius Ferrão wrote: > > Hello, > > I would like to know if there’s a way to versionlock a give package in a > stateless compute environment. > > Specifically I would like to fix the redhat-release package version. I tried > adding the pinned versions to a pkglist file and running genimage but that > was a no go. It just ignored the older packages and installed the newest ones. > > [root@headnode compute]# lsdef -t osimage rhels8.5.0-x86_64-netboot-compute > -i pkglist > Object name: rhels8.5.0-x86_64-netboot-compute > > pkglist=/opt/xcat/share/xcat/netboot/rh/compute.rhels8.x86_64.pkglist,/install/custom/netboot/compute.pkglist > > cat /install/custom/netboot/compute.pkglist > kernel-4.18.0-305.25.1.el8_4 > kernel-core-4.18.0-305.25.1.el8_4 > kernel-devel-4.18.0-305.25.1.el8_4 > kernel-modules-4.18.0-305.25.1.el8_4 > kernel-modules-extra-4.18.0-305.25.1.el8_4 > kernel-headers-4.18.0-305.25.1.el8_4 > redhat-release-8.4 > > During the genimage process it downloaded and installed the correct package, > but it was updated later on: > > > Package Arch Version Repository Size > > Installing: > kernel x86_64 4.18.0-348.12.2.el8_5rhels8.5.0-x86_64-2 7.0 M > kernel-core x86_64 4.18.0-348.12.2.el8_5rhels8.5.0-x86_64-2 38 M > kernel-devel x86_64 4.18.0-348.12.2.el8_5rhels8.5.0-x86_64-2 20 M > kernel-modules x86_64 4.18.0-348.12.2.el8_5rhels8.5.0-x86_64-2 30 M > kernel-modules-extra x86_64 4.18.0-348.12.2.el8_5rhels8.5.0-x86_64-2 7.7 M > Upgrading: > kernel-headers x86_64 4.18.0-348.12.2.el8_5rhels8.5.0-x86_64-2 8.3 M > redhat-release x86_64 8.5-0.8.el8 rhels8.5.0-x86_64-1 44 k > Transaction Summary > > Install 5 Packages > Upgrade 2 Packages > Total size: 110 M > Downloading Packages: > Running transaction check > Transaction check succeeded. > Running transaction test > Transaction test succeeded. > Running transaction > Preparing: > 1/1 > Running scriptlet: kernel-core-4.18.0-348.12.2.el8_5.x86_64 > 1/1 > Installing : kernel-core-4.18.0-348.12.2.el8_5.x86_64 > 1/9 > Running scriptlet: kernel-core-4.18.0-348.12.2.el8_5.x86_64 > 1/9 > Installing : kernel-modules-4.18.0-348.12.2.el8_5.x86_64 > 2/9 > Running scriptlet: kernel-modules-4.18.0-348.12.2.el8_5.x86_64 > 2/9 > Installing : kernel-4.18.0-348.12.2.el8_5.x86_64 > 3/9 > Installing : kernel-modules-extra-4.18.0-348.12.2.el8_5.x86_64 > 4/9 > Running scriptlet: kernel-modules-extra-4.18.0-348.12.2.el8_5.x86_64 > 4/9 > Upgrading: kernel-headers-4.18.0-348.12.2.el8_5.x86_64 > 5/9 > Upgrading: redhat-release-8.5-0.8.el8.x86_64 > 6/9 > Installing : kernel-devel-4.18.0-348.12.2.el8_5.x86_64 > 7/9 > Running scriptlet: kernel-devel-4.18.0-348.12.2.el8_5.x86_64 > 7/9 > Cleanup : kernel-headers-4.18.0-305.25.1.el8_4.x86_64 > 8/9 > Cleanup : redhat-release-8.4-0.6.el8.x86_64 > 9/9 > Running scriptlet: kernel-core-4.18.0-348.12.2.el8_5.x86_64 > 9/9 > dracut: No '/dev/log' or 'logger' included for syslog logging > dracut: Turning off host-only mode: '/run' is not mounted! > dracut: Turning off host-only mode: '/dev' is not mounted! > Running scriptlet: redhat-release-8.4-0.6.el8.x86_64 > 9/9 > Verifying: kernel-4.18.0-348.12.2.el8_5.x86_64 > 1/9 > Verifying: kernel-devel-4.18.0-348.12.2.el8_5.x86_64 > 2/9 > Verifying: kernel-modules-4.18.0-348.12.2.el8_5.x86_64 > 3/9 > Verifying: kernel-modules-extra-4.18.0-348.12.2.el8_5.x86_64 > 4/9 > Verifying: kernel-core-4.18.0-348.12.2.el8_5.x86_64 > 5/9 > Verifying: redhat-release-8.5-0.8.el8.x86_64 > 6/9 > Verifying:
Re: [xcat-user] Versionlock a given package in stateless compute
Vinícius, The typical method of controlling the package versions that get installed is by carefully constructing the pkgdir and otherpkgdir directories so that only the package versions you want to be installed will be found whenever dnf runs. I'm curious if the problem you are experiencing is due to the updated redhat-release package being found in one of the repositories you have created in your pkgdir/otherpkgdir or if it is being found in some other repository. Is rhels8.5.0-x86_64-2 a repo you intentionally created or is it being picked up unintentionally? Nate From: "Vinícius Ferrão via xCAT-user" To: "xCAT Users Mailing list" Cc: "Vinícius Ferrão" Date: 01/28/2022 07:12 PM Subject:[EXTERNAL] [xcat-user] Versionlock a given package in stateless compute Hello, I would like to know if there’s a way to versionlock a give package in a stateless compute environment. Specifically I would like to fix the redhat-release package version. I tried adding the pinned versions to a pkglist file and running genimage but that was a no go. It just ignored the older packages and installed the newest ones. [root@headnode compute]# lsdef -t osimage rhels8.5.0-x86_64-netboot-compute -i pkglist Object name: rhels8.5.0-x86_64-netboot-compute pkglist=/opt/xcat/share/xcat/netboot/rh/compute.rhels8.x86_64.pkglist,/install/custom/netboot/compute.pkglist cat /install/custom/netboot/compute.pkglist kernel-4.18.0-305.25.1.el8_4 kernel-core-4.18.0-305.25.1.el8_4 kernel-devel-4.18.0-305.25.1.el8_4 kernel-modules-4.18.0-305.25.1.el8_4 kernel-modules-extra-4.18.0-305.25.1.el8_4 kernel-headers-4.18.0-305.25.1.el8_4 redhat-release-8.4 During the genimage process it downloaded and installed the correct package, but it was updated later on: Package Arch Version Repository Size Installing: kernel x86_64 4.18.0-348.12.2.el8_5rhels8.5.0-x86_64-2 7.0 M kernel-core x86_64 4.18.0-348.12.2.el8_5rhels8.5.0-x86_64-2 38 M kernel-devel x86_64 4.18.0-348.12.2.el8_5rhels8.5.0-x86_64-2 20 M kernel-modules x86_64 4.18.0-348.12.2.el8_5rhels8.5.0-x86_64-2 30 M kernel-modules-extra x86_64 4.18.0-348.12.2.el8_5rhels8.5.0-x86_64-2 7.7 M Upgrading: kernel-headers x86_64 4.18.0-348.12.2.el8_5rhels8.5.0-x86_64-2 8.3 M redhat-release x86_64 8.5-0.8.el8 rhels8.5.0-x86_64-1 44 k Transaction Summary Install 5 Packages Upgrade 2 Packages Total size: 110 M Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing: 1/1 Running scriptlet: kernel-core-4.18.0-348.12.2.el8_5.x86_64 1/1 Installing : kernel-core-4.18.0-348.12.2.el8_5.x86_64 1/9 Running scriptlet: kernel-core-4.18.0-348.12.2.el8_5.x86_64 1/9 Installing : kernel-modules-4.18.0-348.12.2.el8_5.x86_64 2/9 Running scriptlet: kernel-modules-4.18.0-348.12.2.el8_5.x86_64 2/9 Installing : kernel-4.18.0-348.12.2.el8_5.x86_64 3/9 Installing : kernel-modules-extra-4.18.0-348.12.2.el8_5.x86_64 4/9 Running scriptlet: kernel-modules-extra-4.18.0-348.12.2.el8_5.x86_64 4/9 Upgrading: kernel-headers-4.18.0-348.12.2.el8_5.x86_64 5/9 Upgrading: redhat-release-8.5-0.8.el8.x86_64 6/9 Installing : kernel-devel-4.18.0-348.12.2.el8_5.x86_64 7/9 Running scriptlet: kernel-devel-4.18.0-348.12.2.el8_5.x86_64 7/9 Cleanup : kernel-headers-4.18.0-305.25.1.el8_4.x86_64 8/9 Cleanup : redhat-release-8.4-0.6.el8.x86_64 9/9 Running scriptlet: kernel-core-4.18.0-348.12.2.el8_5.x86_64 9/9 dracut: No '/dev/log' or 'logger' included for syslog logging dracut: Turning off host-only mode: '/run' is not mounted! dracut: Turning off host-only mode: '/dev' is not mounted! Running scriptlet: redhat-release-8.4-0.6.el8.x86_64 9/9 Verifying: kernel-4.18.0-348.12.2.el8_5.x86_64 1/9 Verifying: kernel-devel-4.18.0-348.12.2.el8_5.x86_64 2/9 Verifying: kernel-modules-4.18.0-348.12.2.el8_5.x86_64 3/9 Verifying: kernel-modules-extra-4.18.0-348.12.2.el8_5.x86_64 4/9 Verifying: kernel-core-4.18.0-348.12.2.el8_5.x86_64 5/9 Verifying: redhat-release-8.5-0.8.el8.x86_64 6/9 Verifying: redhat-release-8.4-0.6.el8.x86_64 7/9 Verifying: kernel-headers-4.18.0-348.12.2.el8_5.x86_64 8/9 Verifying: kernel-headers-4.18.0-305.25.1.el8_4.x86_64 9/9 Installed products updated. Upgraded: kernel-headers-4.18.0-348.12.2.el8_5.x86_64 redhat-release-8.5-0.8.el8.x86_64 Installed: