Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1918207

Summary: RHVH upgrade to 4.4.5-1 will fail due to FileNotFoundError
Product: Red Hat Enterprise Virtualization Manager Reporter: peyu
Component: redhat-virtualization-hostAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED ERRATA QA Contact: peyu
Severity: high Docs Contact:
Priority: urgent    
Version: 4.4.4CC: cshao, lsvaty, mavital, peyu, qiyuan, sbonazzo, shlei, weiwang, yaniwang
Target Milestone: ovirt-4.4.5Keywords: TestBlocker
Target Release: 4.4.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-14 11:44:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
/var/log/imgbased.log none

Description peyu 2021-01-20 09:43:34 UTC
Created attachment 1749005 [details]
/var/log/imgbased.log

Description of problem:
Upgrade RHVH from 4.4.4 to the latest 4.4.5-1, it will fail with FileNotFoundError

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

How reproducible:
100%

Steps to Reproduce:
1. Install redhat-virtualization-host-4.4.4-20210106.0.el8_3 
2. Setup local repos and point to "redhat-virtualization-host-4.4.5-20210119.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-20 16:18:04,710 [DEBUG] (migrate_etc) Traceback (most recent call last):
  File "/tmp/tmp.mNFbRiSiq5/usr/lib/python3.6/site-packages/imgbased/utils.py", line 1519, in run
    self._function(*self._func_args, **self._func_kwargs)
  File "/tmp/tmp.mNFbRiSiq5/usr/lib/python3.6/site-packages/imgbased/plugins/osupdater.py", line 856, in run_rpm_perms
    new_fs.path("/etc/crypto-policies/back-ends/"), 0o644
  File "/tmp/tmp.mNFbRiSiq5/usr/lib/python3.6/site-packages/imgbased/plugins/osupdater.py", line 902, in change_dir_perms
    os.chmod(os.path.join(root, f), mode)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/mnt.ITJT2//etc/crypto-policies/back-ends/bind.config'

2021-01-20 16:18:04,710 [DEBUG] (migrate_etc) Traceback (most recent call last):
  File "/tmp/tmp.mNFbRiSiq5/usr/lib/python3.6/site-packages/imgbased/utils.py", line 1543, in thread_group_handler
    t.join_with_exceptions()
  File "/tmp/tmp.mNFbRiSiq5/usr/lib/python3.6/site-packages/imgbased/utils.py", line 1534, in join_with_exceptions
    raise exc[1]
  File "/tmp/tmp.mNFbRiSiq5/usr/lib/python3.6/site-packages/imgbased/utils.py", line 1519, in run
    self._function(*self._func_args, **self._func_kwargs)
  File "/tmp/tmp.mNFbRiSiq5/usr/lib/python3.6/site-packages/imgbased/plugins/osupdater.py", line 856, in run_rpm_perms
    new_fs.path("/etc/crypto-policies/back-ends/"), 0o644
  File "/tmp/tmp.mNFbRiSiq5/usr/lib/python3.6/site-packages/imgbased/plugins/osupdater.py", line 902, in change_dir_perms
    os.chmod(os.path.join(root, f), mode)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/mnt.ITJT2//etc/crypto-policies/back-ends/bind.config'
~~~~~~

Comment 3 peyu 2021-02-07 06:43:34 UTC
This issue has been solved on the latest build "redhat-virtualization-host-4.4.5-20210204.0.el8_3".
Will move the bug status to "VERIFIED", after "ON_QA".

Comment 4 peyu 2021-02-18 08:42:26 UTC
Move the bug Status to "VERIFIED" according to Comment 3.

Comment 13 errata-xmlrpc 2021-04-14 11:44:48 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 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-2021:1189

Comment 14 errata-xmlrpc 2021-04-14 11:48:30 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 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-2021:1189