forgetting the '-f' flag on `up2date --nox kernel` with default configuration gives inaccurate error message. The message could lead a user to believe their system is not vulnerable to security problems resolved by kernel errata in the default configuration. up2date-3.1.23-1 100% reproducible On a system with kernel updates about to be applied, run: # up2date --nox -l ... The following Packages were marked to be skipped by your configuration: Name Version Rel Reason ------------------------------------------------------------------------------- kernel 2.4.20 8 Pkg name/pattern kernel-doc 2.4.20 8 Pkg name/pattern kernel-smp 2.4.20 8 Pkg name/pattern kernel-source 2.4.20 8 Pkg name/pattern .live.[root@i386-9 RPMS]# up2date --nox -d kernel kernel-doc kernel-smp kernel-source ... Fetching rpm headers... ######################################## The following packages you requested are already updated: kernel kernel-doc kernel-smp kernel-source Expected results: I expected to see the message "The following Packages were marked to be skipped by your configuration:" or similar during the download attempt, not the inaccurate error message that the packages had been updated.
trying to change to rhel 3.
same bug is still around with up2date-4.2.15-1
running `up2date-nox -i kernel-source` (with an empty removeSkipList), I still see: The following packages you requested are already updated: kernel-source ... on RHEL3 with kernel-source-2.4.21-9.0.3.EL installed. kernel-source-2.4.21-15.EL is the version of kernel-source that _should_ be considered most recent, and I think the error message is being triggered badly
pkgsToInstallNotUpdate is set to ['kernel', 'kernel-modules']
with pkgsToInstallNotUpdate set to [] (the empty set), I still recieve the message: # up2date-nox kernel-source Fetching package list for channel: rhel-i386-ws-3... ######################################## Fetching Obsoletes list for channel: rhel-i386-ws-3... Fetching rpm headers... ######################################## Name Version Rel ---------------------------------------------------------- The following Packages were marked to be skipped by your configuration: Name Version Rel Reason ------------------------------------------------------------------------------- kernel-source 2.4.21 15.ELPkg name/pattern The following packages you requested are already updated: kernel-source ... and when I add the '-f' flag, I the upgrade performs smoothly: # up2date-nox -f kernel-source Fetching package list for channel: rhel-i386-ws-3... ######################################## Fetching Obsoletes list for channel: rhel-i386-ws-3... Name Version Rel ---------------------------------------------------------- kernel-source 2.4.21 15.EL i386 Testing package set / solving RPM inter-dependencies... ######################################## kernel-source-2.4.21-15.EL. ########################## Done. Preparing ########################################### [100%] Installing... 1:kernel-source ########################################### [100%] /etc/sysconfig/up2date contains: pkgsToInstallNotUpdate=; removeSkipList=; All of today's posts by me are with up2date-4.2.16-1 on rhel3 (i386-ws). What other details would be useful?
ugh. forgot to set pkgSkipList=[] retesting.
After a thorough retest, the only real problem that I see is that the error message printed is: The following packages you requested are already updated: when really, the updates aren't applied without '-f' because the packages are in skip lists.
Blocking rhnupr4u4 and rhnupr3u8 to track the progress of the release
Moving bugs to the CanFix List
Re-aligning to correct bug trackers
Test plan: 1- Kickstart system to RHEL3 U6. 2- Install latest up2date and rhnlib from devserv.devel:/mnt/redhat/dist/3.0E-U8. 3- Verify /etc/sysconfig/rhn/up2date says "pkgSkipList=kernel*;" 4- Register system (up2date --nox --register). 5- Run up2date --nox -l.
6- Run up2date --nox -d kernel kernel-doc kernel-smp kernel-source. And I forgot to mention that, in step 4, you should register the test system to webqa or a satellite that has RHEL3 U7 synced, so there will be kernel updates available for the client.
Retested on i386 with up2date-4.4.69-8 and rhnlib-1.8.7-1. [root@test07 root]# up2date --nox -d kernel kernel-doc kernel-smp kernel-source Fetching Obsoletes list for channel: rhel-i386-as-3... Fetching rpm headers... ######################################## Name Version Rel ---------------------------------------------------------- The following Packages were marked to be skipped by your configuration: Name Version Rel Reason ------------------------------------------------------------------------------- kernel 2.4.21 40.ELPkg name/pattern kernel-doc 2.4.21 40.ELPkg name/pattern kernel-pcmcia-cs 3.1.31 19 Pkg name/pattern kernel-smp 2.4.21 40.ELPkg name/pattern kernel-source 2.4.21 40.ELPkg name/pattern kernel-utils 2.4 8.37.14Pkg name/pattern The following packages you requested were marked to be skipped by your configuration: kernel kernel-doc kernel-smp kernel-source This is with pkgSkipList=kernel*; pkgsToInstallNotUpdate=kernel;kernel-modules;kernel-devel; removeSkipList=kernel*; Also tested with all lists = [] to make sure nothing got broken: [root@test07 root]# up2date --nox -d kernel kernel-doc kernel-smp kernel-source Fetching Obsoletes list for channel: rhel-i386-as-3... Fetching rpm headers... ######################################## Name Version Rel ---------------------------------------------------------- kernel 2.4.21 40.EL i686 kernel-doc 2.4.21 40.EL i386 kernel-smp 2.4.21 40.EL i686 kernel-source 2.4.21 40.EL i386 Testing package set / solving RPM inter-dependencies... ######################################## kernel-2.4.21-40.EL.i686.rp ########################## Done. kernel-doc-2.4.21-40.EL.i38 ########################## Done. kernel-smp-2.4.21-40.EL.i68 ########################## Done. kernel-source-2.4.21-40.EL. ########################## Done. Once more, with all lists populated as default: The following Packages were marked to be skipped by your configuration: Name Version Rel Reason ------------------------------------------------------------------------------- kernel 2.4.21 40.ELPkg name/pattern kernel-BOOT 2.4.21 40.ELPkg name/pattern kernel-doc 2.4.21 40.ELPkg name/pattern kernel-hugemem 2.4.21 40.ELPkg name/pattern kernel-hugemem-unsupported 2.4.21 40.ELPkg name/pattern kernel-pcmcia-cs 3.1.31 19 Pkg name/pattern kernel-smp 2.4.21 40.ELPkg name/pattern kernel-smp-unsupported 2.4.21 40.ELPkg name/pattern kernel-source 2.4.21 40.ELPkg name/pattern kernel-unsupported 2.4.21 40.ELPkg name/pattern kernel-utils 2.4 8.37.14Pkg name/pattern The following packages you requested were marked to be skipped by your configuration: kernel kernel-BOOT kernel-doc kernel-hugemem kernel-hugemem-unsupported kernel-pcmcia-cs kernel-smp kernel-smp-unsupported kernel-source kernel-unsupported kernel-utils Then with empty lists: [root@test07 root]# up2date kernel kernel-BOOT kernel-doc kernel-hugemem kernel-hugemem-unsupported kernel-pcmcia-cs kernel-smp kernel-smp-unsupported kernel-source kernel-unsupported kernel-utils Fetching Obsoletes list for channel: rhel-i386-as-3... Fetching rpm headers... ######################################## Name Version Rel ---------------------------------------------------------- kernel 2.4.21 40.EL i686 kernel-BOOT 2.4.21 40.EL i386 kernel-doc 2.4.21 40.EL i386 kernel-hugemem 2.4.21 40.EL i686 kernel-hugemem-unsupported 2.4.21 40.EL i686 kernel-pcmcia-cs 3.1.31 19 i386 kernel-smp 2.4.21 40.EL i686 kernel-smp-unsupported 2.4.21 40.EL i686 kernel-source 2.4.21 40.EL i386 kernel-unsupported 2.4.21 40.EL i686 kernel-utils 2.4 8.37.14 i386 Testing package set / solving RPM inter-dependencies... ######################################## kernel-2.4.21-40.EL.i686.rp ########################## Done. kernel-BOOT-2.4.21-40.EL.i3 ########################## Done. kernel-doc-2.4.21-40.EL.i38 ########################## Done. kernel-hugemem-2.4.21-40.EL ########################## Done. kernel-hugemem-unsupported- ########################## Done. kernel-pcmcia-cs-3.1.31-19. ########################## Done. kernel-smp-2.4.21-40.EL.i68 ########################## Done. kernel-smp-unsupported-2.4. ########################## Done. kernel-source-2.4.21-40.EL. ########################## Done. kernel-unsupported-2.4.21-4 ########################## Done. kernel-utils-2.4-8.37.14.i3 ########################## Done. Preparing ########################################### [100%] Installing... 1:kernel-smp ########################################### [100%] 2:kernel ########################################### [100%] 3:kernel-BOOT ########################################### [100%] 4:kernel-doc ########################################### [100%] 5:kernel-hugemem ########################################### [100%] 6:kernel-hugemem-unsuppor########################################### [100%] 7:kernel-pcmcia-cs ########################################### [100%] 8:kernel-smp-unsupported ########################################### [100%] 9:kernel-source ########################################### [100%] 10:kernel-unsupported ########################################### [100%] 11:kernel-utils ########################################### [100%] Error installing lilo.conf The message was: test install of lilo failed [root@test07 root]# rpm -qa|grep kernel kernel-pcmcia-cs-3.1.31-19 kernel-2.4.21-40.EL kernel-unsupported-2.4.21-40.EL kernel-smp-2.4.21-40.EL kernel-hugemem-2.4.21-40.EL kernel-source-2.4.21-40.EL kernel-doc-2.4.21-40.EL kernel-smp-unsupported-2.4.21-40.EL kernel-BOOT-2.4.21-40.EL kernel-utils-2.4-8.37.14 kernel-hugemem-unsupported-2.4.21-40.EL
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2006-0465.html