Bug 1918207 - RHVH upgrade to 4.4.5-1 will fail due to FileNotFoundError
Summary: RHVH upgrade to 4.4.5-1 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
high
Target Milestone: ovirt-4.4.5
: 4.4.5
Assignee: Sandro Bonazzola
QA Contact: peyu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-20 09:43 UTC by peyu
Modified: 2021-04-14 11:48 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-14 11:44:48 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:


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


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:1189 0 None None None 2021-04-14 11:48:55 UTC
oVirt gerrit 113206 0 master MERGED osupdater, hack, for crypto-policy #BZ1921646 2021-02-14 20:33:33 UTC

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


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