This bug was initially created as a copy of Bug #1883157 I am copying this bug because: oVirt Node and RHV-H doesn't share the source code handling this part so it needs to be fixed in RHV-H as well. Description of problem: When trying to upgrade a 4.4.1 oVirt Node to oVirt 4.4.2 the upgrade fails due to dangling symlinks from iSCSI Storage Domain. How reproducible: Upgrade a oVirt Node 4.4.1 with iSCSI Storage domains to 4.4.2 Steps to Reproduce: 1. Run yum upgrade on the node Actual results: Running scriptlet: ovirt-node-ng-image-update-4.4.2-1.el8.noarch 1/3 Local storage domains were found on the same filesystem as / ! Please migrate the data to a new LV before upgrading, or you will lose the VMs See: https://bugzilla.redhat.com/show_bug.cgi?id=1550205#c3 Storage domains were found in: /rhev/data-center/mnt/blockSD/6e99da85-8414-4ec5-92c3-b6cf741fc125/dom_md /rhev/data-center/mnt/blockSD/37a74cff-19be-44a2-98f9-0720745fa4b5/dom_md /rhev/data-center/mnt/blockSD/0040a08b-36ea-4bdb-ba93-f4d55321bb97/dom_md /rhev/data-center/mnt/blockSD/2c5eef3e-b40e-4ea5-8c97-07e5114381ac/dom_md error: %prein(ovirt-node-ng-image-update-4.4.2-1.el8.noarch) scriptlet failed, exit status 1 Expected results: The symlinks should have been cleaned/ignored, so the upgrade can complete. Additional info: This was introduced in https://bugzilla.redhat.com/show_bug.cgi?id=1850378
QE reproduced this issue using an iSCSI machine. Test Version: RHVH: redhat-virtualization-host-4.4.1-20200722.0.el8_2 redhat-virtualization-host-4.4.2-20200930.0.el8_2 RHVM: 4.4.3.9-0.1.el8ev Test Steps: 1. Install redhat-virtualization-host-4.4.1-20200722.0.el8_2 on an iSCSI machine 2. Setup local repos and point to "redhat-virtualization-host-4.4.2-20200930.0.el8_2" 3. Add host to RHVM 4. Add a iSCSI storage domain and wait for its status to become "Active" 5. Create a VM on iSCSI Storage Domain 6. Create a snapshot on it 7. Delete the snapshot 8. Manage the host to maintenance mode 6. Upgrade the host # yum update # reboot Actual results: Host upgrade is blocked. ~~~~~~ # yum update Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Red Hat update to latest 269 kB/s | 1.1 kB 00:00 Dependencies resolved. =================================================================================================================================== Package Architecture Version Repository Size =================================================================================================================================== Installing: redhat-virtualization-host-image-update noarch 4.4.2-20200930.0.el8_2 update 780 M replacing redhat-virtualization-host-image-update-placeholder.noarch 4.4.1-1.el8ev Transaction Summary =================================================================================================================================== Install 1 Package Total download size: 780 M Is this ok [y/N]: y Downloading Packages: redhat-virtualization-host-image-update-latest.rpm 75 MB/s | 780 MB 00:10 ----------------------------------------------------------------------------------------------------------------------------------- Total 75 MB/s | 780 MB 00:10 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Running scriptlet: redhat-virtualization-host-image-update-4.4.2-20200930.0.el8_2.noarch 1/2 Local storage domains were found on the same filesystem as / ! Please migrate the data to a new LV before upgrading, or you will lose the VMs See: https://bugzilla.redhat.com/show_bug.cgi?id=1550205#c3 Storage domains were found in: /rhev/data-center/mnt/blockSD/0c6f9c81-1294-4f47-a814-a62861e180ce/dom_md error: %prein(redhat-virtualization-host-image-update-4.4.2-20200930.0.el8_2.noarch) scriptlet failed, exit status 1 Error in PREIN scriptlet in rpm package redhat-virtualization-host-image-update Obsoleting : redhat-virtualization-host-image-update-placeholder-4.4.1-1.el8ev.noarch 2/2 error: redhat-virtualization-host-image-update-4.4.2-20200930.0.el8_2.noarch: install failed Verifying : redhat-virtualization-host-image-update-4.4.2-20200930.0.el8_2.noarch 1/2 Verifying : redhat-virtualization-host-image-update-placeholder-4.4.1-1.el8ev.noarch 2/2 Unpersisting: redhat-virtualization-host-image-update-placeholder-4.4.1-1.el8ev.noarch.rpm Installed products updated. Failed: redhat-virtualization-host-image-update-4.4.2-20200930.0.el8_2.noarch Error: Transaction failed ~~~~~~
The bug has been resolved on "redhat-virtualization-host-4.4.3-20201129.0.el8_3" Test Version: RHVH: redhat-virtualization-host-4.4.3-20201129.0.el8_3 RHVM: 4.4.3.9-0.1.el8ev Test Steps: 1. Install redhat-virtualization-host-4.4.1-20200722.0.el8_2 on an iSCSI machine 2. Setup local repos and point to "redhat-virtualization-host-4.4.3-20201129.0.el8_3" 3. Add host to RHVM 4. Add a iSCSI storage domain and wait for its status to become "Active" 5. Create a VM on iSCSI Storage Domain 6. Create a snapshot on it 7. Delete the snapshot 8. Manage the host to maintenance mode 9. Upgrade the host # yum update # reboot 10. Activate the host via RHVM 11. Start the VM Actual results: RHVH upgrade is successful. The status of the iSISI storage domain is "Active" and the VM can start up successful after the upgrade. Move the bug status to "VERIFIED".
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Red Hat Virtualization security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:5611