Uploaded image for project: 'RHEL Conversions'
  1. RHEL Conversions
  2. RHELC-1556

Failing to install removed packages not evaluated as a rollback failure

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Testable

      When we fail to install the removed packages back to the system during the Rollback: Install removed packages task, it is only reported as a warning and the whole rollback is assumed as successful.

      error: Failed dependencies:
      	system-release is needed by kernel-uek-5.4.17-2136.331.7.el7uek.x86_64
      WARNING - Couldn't install kernel-uek-5.4.17-2136.331.7.el7uek.x86_64 packages.
      
      [2024-05-20T15:52:32+0000] TASK - [Rollback: Install removed packages] *******************************
      Installing packages:	python-requests-2.6.0-10.el7.noarch, rhn-check-2.0.2-24.0.11.el7.x86_64, rhn-client-tools-2.0.2-24.0.11.el7.x86_64, rhn-setup-2.0.2-24.0.11.el7.x86_64, rhnlib-2.5.65-8.0.5.el7.noarch, rhnsd-5.0.13-10.0.1.el7.x86_64, yum-plugin-ulninfo-0.2-13.el7.noarch, yum-rhn-plugin-2.0.1-10.0.1.el7.noarch, 7:oraclelinux-release-7.9-1.0.11.el7.x86_64, oraclelinux-release-el7-1.0-17.el7.x86_64, 1:redhat-release-server-7.9-6.0.1.el7_9.x86_64
      [2024-05-20T15:52:32+0000] DEBUG - Calling command 'rpm -i --replacepkgs /var/lib/convert2rhel/backup/python-requests-2.6.0-10.el7.noarch.rpm /var/lib/convert2rhel/backup/rhn-check-2.0.2-24.0.11.el7.x86_64.rpm /var/lib/convert2rhel/backup/rhn-client-tools-2.0.2-24.0.11.el7.x86_64.rpm /var/lib/convert2rhel/backup/rhn-setup-2.0.2-24.0.11.el7.x86_64.rpm /var/lib/convert2rhel/backup/rhnlib-2.5.65-8.0.5.el7.noarch.rpm /var/lib/convert2rhel/backup/rhnsd-5.0.13-10.0.1.el7.x86_64.rpm /var/lib/convert2rhel/backup/yum-plugin-ulninfo-0.2-13.el7.noarch.rpm /var/lib/convert2rhel/backup/yum-rhn-plugin-2.0.1-10.0.1.el7.noarch.rpm /var/lib/convert2rhel/backup/oraclelinux-release-7.9-1.0.11.el7.x86_64.rpm /var/lib/convert2rhel/backup/oraclelinux-release-el7-1.0-17.el7.x86_64.rpm /var/lib/convert2rhel/backup/redhat-release-server-7.9-6.0.1.el7_9.x86_64.rpm'
      [2024-05-20T15:52:33+0000] DEBUG - error: unpacking of archive failed on file /etc/os-release: cpio: rename failed - Operation not permitted
      error: oraclelinux-release-7:7.9-1.0.11.el7.x86_64: install failed
      WARNING - Couldn't install python-requests-2.6.0-10.el7.noarch, rhn-check-2.0.2-24.0.11.el7.x86_64, rhn-client-tools-2.0.2-24.0.11.el7.x86_64, rhn-setup-2.0.2-24.0.11.el7.x86_64, rhnlib-2.5.65-8.0.5.el7.noarch, rhnsd-5.0.13-10.0.1.el7.x86_64, yum-plugin-ulninfo-0.2-13.el7.noarch, yum-rhn-plugin-2.0.1-10.0.1.el7.noarch, 7:oraclelinux-release-7.9-1.0.11.el7.x86_64, oraclelinux-release-el7-1.0-17.el7.x86_64, and 1:redhat-release-server-7.9-6.0.1.el7_9.x86_64 packages.
      
      

      I can see two problems

      1. We advertise a false positive with the rollback state and leave the system in a different state pre and post conversion
      2. We don't capture all failures during the rollback (that might be because when we fail to install the removed packages back it's just a soft WARNING)

      reproducer:

      • Make /etc/os-release immutable chattr +i $(realpath /etc/os-release) on EL7 systems
      • OR install kernel-uek on OL 7

            ahosek@redhat.com Adam Hosek
            ddiblik@redhat.com Daniel Diblik
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: