The RHEL Preupgrade Assistant fails with RemovableMedia_check and hal_check errors

Solution Verified - Updated -

Issue

The Preupgrade Assistant from RHEL6 to RHEL7 fails with following messages:

Removable media in fstab: xccdf_preupg_rule_system_RemovableMedia_check
Obsoleting HAL (Hardware Abstraction Layer): xccdf_preupg_rule_system_hal_check

From the results.html is possible to see the following errors
xccdf_preupg_rule_system_RemovableMedia_check

Traceback (most recent call last):
  File "/root/preupgrade/RHEL6_7/system/RemovableMedia/check", line 24, in <module>
    check_rpm_to (check_rpm="",check_bin="lsblk")
  File "/usr/lib/python2.6/site-packages/preupg/script_api.py", line 526, in check_rpm_to
    lines = FileHelper.get_file_content(VALUE_EXECUTABLES, "rb", True)
  File "/usr/lib/python2.6/site-packages/preupg/utils.py", line 186, in get_file_content
    data = f.read() if not method else f.readlines()
  File "/usr/lib64/python2.6/codecs.py", line 679, in readlines
    return self.reader.readlines(sizehint)
  File "/usr/lib64/python2.6/codecs.py", line 588, in readlines
    data = self.read()
  File "/usr/lib64/python2.6/codecs.py", line 477, in read
    newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xa2 in position 132483621: invalid start byte

xccdf_preupg_rule_system_hal_check

Traceback (most recent call last):
  File "/root/preupgrade/RHEL6_7/system/hal/check", line 30, in <module>
    check_rpm_to (check_rpm="",check_bin="rpm")
  File "/usr/lib/python2.6/site-packages/preupg/script_api.py", line 526, in check_rpm_to
    lines = FileHelper.get_file_content(VALUE_EXECUTABLES, "rb", True)
  File "/usr/lib/python2.6/site-packages/preupg/utils.py", line 186, in get_file_content
    data = f.read() if not method else f.readlines()
  File "/usr/lib64/python2.6/codecs.py", line 679, in readlines
    return self.reader.readlines(sizehint)
  File "/usr/lib64/python2.6/codecs.py", line 588, in readlines
    data = self.read()
  File "/usr/lib64/python2.6/codecs.py", line 477, in read
    newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xa2 in position 132483621: invalid start byte

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.