Bug 1921553 - RHVH upgrade to the latest 4.4.4-1 build will fail due to FileNotFoundError
Summary: RHVH upgrade to the latest 4.4.4-1 build will fail due to FileNotFoundError
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: redhat-virtualization-host
Version: 4.4.4
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ovirt-4.4.4-1
: ---
Assignee: Nir Levy
QA Contact: peyu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-28 07:20 UTC by peyu
Modified: 2021-02-03 16:13 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-03 16:13:15 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
/var/log/imgbased.log (362.72 KB, text/plain)
2021-01-28 07:20 UTC, peyu
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:0401 0 None None None 2021-02-03 16:13:51 UTC
oVirt gerrit 113206 0 master MERGED osupdater, hack, for crypto-policy #BZ1921646 2021-02-12 16:04:38 UTC

Description peyu 2021-01-28 07:20:32 UTC
Created attachment 1751587 [details]
/var/log/imgbased.log

Description of problem:
Upgrade RHVH from 4.4.3-2 to the latest build "redhat-virtualization-host-4.4.4-20210127.0.el8_3", it will fail with FileNotFoundError.

Version-Release number of selected component (if applicable):
redhat-virtualization-host-4.4.4-20210127.0.el8_3

How reproducible:
100%

Steps to Reproduce:
1. Install redhat-virtualization-host-4.4.3-20201210.0.el8_3 
2. Setup local repos and point to "redhat-virtualization-host-4.4.4-20210127.0.el8_3" 
3. Upgrade the host
   # yum update

Actual results:
Upgrade will fail.

Expected results:
RHVH upgrade successfully.

Additional info:
The error in imgbased.log is as follows:
~~~~~~
2021-01-28 13:59:28,250 [DEBUG] (migrate_etc) Traceback (most recent call last):
  File "/tmp/tmp.69sLEgMtmJ/usr/lib/python3.6/site-packages/imgbased/utils.py", line 1510, in run
    self._function(*self._func_args, **self._func_kwargs)
  File "/tmp/tmp.69sLEgMtmJ/usr/lib/python3.6/site-packages/imgbased/plugins/osupdater.py", line 848, in run_rpm_perms
    new_fs.path("/etc/crypto-policies/back-ends/"), 0o644
  File "/tmp/tmp.69sLEgMtmJ/usr/lib/python3.6/site-packages/imgbased/plugins/osupdater.py", line 894, in change_dir_perms
    os.chmod(os.path.join(root, f), mode)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/mnt.BUBfh//etc/crypto-policies/back-ends/openssh.config'

2021-01-28 13:59:28,251 [DEBUG] (migrate_etc) Traceback (most recent call last):
  File "/tmp/tmp.69sLEgMtmJ/usr/lib/python3.6/site-packages/imgbased/utils.py", line 1534, in thread_group_handler
    t.join_with_exceptions()
  File "/tmp/tmp.69sLEgMtmJ/usr/lib/python3.6/site-packages/imgbased/utils.py", line 1525, in join_with_exceptions
    raise exc[1]
  File "/tmp/tmp.69sLEgMtmJ/usr/lib/python3.6/site-packages/imgbased/utils.py", line 1510, in run
    self._function(*self._func_args, **self._func_kwargs)
  File "/tmp/tmp.69sLEgMtmJ/usr/lib/python3.6/site-packages/imgbased/plugins/osupdater.py", line 848, in run_rpm_perms
    new_fs.path("/etc/crypto-policies/back-ends/"), 0o644
  File "/tmp/tmp.69sLEgMtmJ/usr/lib/python3.6/site-packages/imgbased/plugins/osupdater.py", line 894, in change_dir_perms
    os.chmod(os.path.join(root, f), mode)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/mnt.BUBfh//etc/crypto-policies/back-ends/openssh.config'
~~~~~~


This issue did not occur when testing the build "redhat-virtualization-host-4.4.4-20210125.0.el8_3".

Comment 4 peyu 2021-02-01 08:50:38 UTC
This issue has been resolved on "redhat-virtualization-host-4.4.4-20210131.0.el8_3"

Test 1:
1. Install redhat-virtualization-host-4.4.3-20201210.0.el8_3 
2. Setup local repos and point to "redhat-virtualization-host-4.4.4-20210131.0.el8_3" 
3. Upgrade the host
   # yum update
   # reboot
4. Enter the new layer and check /var/log/imgbased.log

Test result:
Upgrade was successful.

Test 2:
1. Install redhat-virtualization-host-4.4.3-20201210.0.el8_3 
2. Setup local repos and point to "redhat-virtualization-host-4.4.4-20210131.0.el8_3" 
3. Add the host to RHVM
4. Upgrade the host via RHVM

Test result:
Upgrade was successful.


Additional info:
Select the STIG profile during the installation of RHVH. Then upgrade RHVH to the latest build(redhat-virtualization-host-4.4.4-20210131.0.el8_3). 
After upgrade, the system will halt, when entering the new layer. Upgrade seems ok and there are no errors in /var/log/imgbased.log 
Please refer to Bug 1907746


Will move the bug status to "VERIFIED"

Comment 6 errata-xmlrpc 2021-02-03 16:13:15 UTC
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 Host security bug fix and enhancement update [ovirt-4.4.4]), 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-2021:0401


Note You need to log in before you can comment on or make changes to this bug.