-
Sub-task
-
Resolution: Done
-
Undefined
-
None
-
None
-
False
-
False
-
-
1
-
Testable
The parent issue RHELC-1556 has the label that triggered autocreation of this subtask to track the relative story point estimation for the integration test part of the issue.
The parent issue description at the time of creation of this issue was:
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
- We advertise a false positive with the rollback state and leave the system in a different state pre and post conversion
- 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
LOGS
- https://artifacts.osci.redhat.com/testing-farm/58197885-abab-47a3-8cc5-a5f201a4f302/work-non-destructive1wigrjr5/plans/tier0/sanity/non-destructive/execute/data/guest/default-0/tests/integration/tier0/non-destructive/rollback-handling/test_rollback_failure-20/output.txt
- https://artifacts.osci.redhat.com/testing-farm/bee4d9f1-defb-43d6-89bb-4c3840446051/work-non-destructivexucxj8so/plans/tier0/sanity/non-destructive/execute/data/guest/default-0/tests/integration/tier0/non-destructive/rollback-handling/test_rollback_failure-20/output.txt
- https://artifacts.osci.redhat.com/testing-farm/4b8dc864-e257-4ee5-a12b-0739170daab1/work-system_not_updated0f74vznt/plans/tier1/destructive/system_not_updated/system_not_updated/execute/data/guest/default-0/tests/integration/tier1/destructive/system-not-up-to-date/system_not_updated-1/output.txt