Bug 2109618 - UnicodeDecodeError causes failure at ignore_oemdrv_disks during anaconda startup
Summary: UnicodeDecodeError causes failure at ignore_oemdrv_disks during anaconda startup
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: 36
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Blivet Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-21 15:50 UTC by jiri.bati.novak
Modified: 2023-05-25 15:40 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of: 1984913
Environment:
Last Closed: 2023-05-25 15:40:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description jiri.bati.novak 2022-07-21 15:50:42 UTC
Reporting same behavior for Fedora 36 install, same symptoms.

+++ This bug was initially created as a clone of Bug #1984913 +++

Description of problem: Anaconda fails due to a UnicodeDecodeError 


Version-Release number of selected component (if applicable): anaconda 34.24.9-1.fc34 for Fedora 34



How reproducible: Every time


Steps to Reproduce:
1. Start Anaconda (either from a Live or netinst image or by running 'liveinst')
2. Graphical UI briefly starts, then crashes
3. CLI mode outputs error

Actual results:
[liveuser@localhost-live ~]$ liveinst 
Traceback (most recent call last):
  File "/usr/bin/anaconda-cleanup", line 80, in <module>
    devicetree.populate(cleanup_only=True)
  File "/usr/lib/python3.9/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/blivet/populator/populator.py", line 419, in populate
    self._populate()
  File "/usr/lib/python3.9/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/blivet/populator/populator.py", line 445, in _populate
    new_devices = udev.get_devices()
  File "/usr/lib/python3.9/site-packages/blivet/udev.py", line 81, in get_devices
    dev = device_to_dict(device)
  File "/usr/lib/python3.9/site-packages/blivet/udev.py", line 53, in device_to_dict
    result = dict(device.properties)
  File "/usr/lib/python3.9/site-packages/pyudev/device/_device.py", line 1068, in __getitem__
    return ensure_unicode_string(value)
  File "/usr/lib/python3.9/site-packages/pyudev/_util.py", line 64, in ensure_unicode_string
    value = value.decode(sys.getfilesystemencoding())
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 0: invalid start byte
Starting installer, one moment...
anaconda 34.24.9-1.fc34 for Fedora 34 started.
 * installation log files are stored in /tmp during the installation
 * shell is available on TTY2 and in second TMUX pane (ctrl+b, then press 2)
 * when reporting a bug add logs from /tmp as separate text/plain attachments
Traceback (most recent call last):
  File "/sbin/anaconda", line 506, in <module>
    ignore_oemdrv_disks()
  File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/lib/storage.py", line 384, in ignore_oemdrv_disks
    matched = device_matches("LABEL=OEMDRV", disks_only=True)
  File "/usr/lib64/python3.9/site-packages/pyanaconda/core/storage.py", line 180, in device_matches
    single_spec_matches = udev.resolve_glob(full_spec)
  File "/usr/lib/python3.9/site-packages/blivet/udev.py", line 163, in resolve_glob
    for dev in get_devices():
  File "/usr/lib/python3.9/site-packages/blivet/udev.py", line 81, in get_devices
    dev = device_to_dict(device)
  File "/usr/lib/python3.9/site-packages/blivet/udev.py", line 53, in device_to_dict
    result = dict(device.properties)
  File "/usr/lib/python3.9/site-packages/pyudev/device/_device.py", line 1068, in __getitem__
    return ensure_unicode_string(value)
  File "/usr/lib/python3.9/site-packages/pyudev/_util.py", line 64, in ensure_unicode_string
    value = value.decode(sys.getfilesystemencoding())
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 0: invalid start byte



Expected results: Installer discovers discs and installation continues


Additional info:

--- Additional comment from Vendula Poncova on 2021-07-27 11:30:24 UTC ---

It seems to be an issue in the storage configuration library. Reassigning to blivet.

--- Additional comment from Ben Cotton on 2022-05-12 14:59:52 UTC ---

This message is a reminder that Fedora Linux 34 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '34'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 34 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

--- Additional comment from Ben Cotton on 2022-06-07 20:08:53 UTC ---

Fedora Linux 34 entered end-of-life (EOL) status on 2022-06-07.

Fedora Linux 34 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 1 Ben Cotton 2023-04-25 17:38:35 UTC
This message is a reminder that Fedora Linux 36 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '36'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 36 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 2 Ludek Smid 2023-05-25 15:40:18 UTC
Fedora Linux 36 entered end-of-life (EOL) status on 2023-05-16.

Fedora Linux 36 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


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