Bug 1984913 - 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: 34
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: 2021-07-22 13:05 UTC by peterhjr
Modified: 2023-01-16 15:25 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2109618 (view as bug list)
Environment:
Last Closed: 2022-06-07 20:08:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description peterhjr 2021-07-22 13:05:38 UTC
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:

Comment 1 Vendula Poncova 2021-07-27 11:30:24 UTC
It seems to be an issue in the storage configuration library. Reassigning to blivet.

Comment 2 Ben Cotton 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.

Comment 3 Ben Cotton 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 4 bericpirate 2023-01-16 15:25:53 UTC
Issue is present also on Fedora 37.
New observation: in GParted it is visible that the name of the HDD was containing non-unicode letters. After it was changed from gparted, anaconda started properly.


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