Bug 1903793 - pyanaconda.payload.errors.PayloadInstallError: Unable to find osimg for /dev/mapper/live-base
Summary: pyanaconda.payload.errors.PayloadInstallError: Unable to find osimg for /dev/...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: 33
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vojtech Trefny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:132fcbabdfde33516a4b4ded4a4...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-02 19:29 UTC by berni.boehm
Modified: 2021-08-19 11:14 UTC (History)
13 users (show)

Fixed In Version: python-blivet-3.4.1-1.fc35
Clone Of:
Environment:
Last Closed: 2021-08-19 11:14:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (1.64 MB, text/plain)
2020-12-02 19:30 UTC, berni.boehm
no flags Details
File: anaconda.log (27.22 KB, text/plain)
2020-12-02 19:30 UTC, berni.boehm
no flags Details
File: dbus.log (8.53 KB, text/plain)
2020-12-02 19:30 UTC, berni.boehm
no flags Details
File: environ (657 bytes, text/plain)
2020-12-02 19:30 UTC, berni.boehm
no flags Details
File: journalctl (1.31 MB, text/plain)
2020-12-02 19:30 UTC, berni.boehm
no flags Details
File: lsblk_output (3.01 KB, text/plain)
2020-12-02 19:30 UTC, berni.boehm
no flags Details
File: lvm.log (119.57 KB, text/plain)
2020-12-02 19:30 UTC, berni.boehm
no flags Details
File: nmcli_dev_list (2.94 KB, text/plain)
2020-12-02 19:30 UTC, berni.boehm
no flags Details
File: os_info (775 bytes, text/plain)
2020-12-02 19:30 UTC, berni.boehm
no flags Details
File: program.log (51.84 KB, text/plain)
2020-12-02 19:30 UTC, berni.boehm
no flags Details
File: storage.log (120.25 KB, text/plain)
2020-12-02 19:30 UTC, berni.boehm
no flags Details

Description berni.boehm 2020-12-02 19:29:49 UTC
Description of problem:
- created a live usb of Fedora 33 Workstation using the Fedora Media Writer (tried different usb drives)
- GUI installer crashes immediately, before I can even choose a language

Netinstall has also failed aswell as attempts to install CentOS

Version-Release number of selected component:
anaconda-core-33.25.4-1.fc33.x86_64

The following was filed automatically by anaconda:
anaconda 33.25.4 exception report
Traceback (most recent call first):
  File "/usr/lib64/python3.9/site-packages/pyanaconda/payload/live/payload_liveos.py", line 69, in setup
    raise PayloadInstallError("Unable to find osimg for {}".format(osimg_spec))
  File "/usr/lib64/python3.9/site-packages/pyanaconda/payload/manager.py", line 189, in _run_thread
    payload.setup()
  File "/usr/lib64/python3.9/threading.py", line 888, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.9/site-packages/pyanaconda/threading.py", line 280, in run
    threading.Thread.run(self)
pyanaconda.payload.errors.PayloadInstallError: Unable to find osimg for /dev/mapper/live-base

Additional info:
addons:         com_redhat_kdump
cmdline:        /usr/bin/python3  /sbin/anaconda --liveinst --graphical
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz root=live:CDLABEL=Fedora-WS-Live-33-1-2 rd.live.image quiet
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         5.8.15-301.fc33.x86_64
other involved packages: python3-libs-3.9.0-1.fc33.x86_64
product:        Fedora
release:        Fedora release 33 (Thirty Three)
type:           anaconda
version:        33

Comment 1 berni.boehm 2020-12-02 19:30:02 UTC
Created attachment 1735757 [details]
File: anaconda-tb

Comment 2 berni.boehm 2020-12-02 19:30:05 UTC
Created attachment 1735758 [details]
File: anaconda.log

Comment 3 berni.boehm 2020-12-02 19:30:07 UTC
Created attachment 1735759 [details]
File: dbus.log

Comment 4 berni.boehm 2020-12-02 19:30:08 UTC
Created attachment 1735760 [details]
File: environ

Comment 5 berni.boehm 2020-12-02 19:30:18 UTC
Created attachment 1735761 [details]
File: journalctl

Comment 6 berni.boehm 2020-12-02 19:30:20 UTC
Created attachment 1735762 [details]
File: lsblk_output

Comment 7 berni.boehm 2020-12-02 19:30:23 UTC
Created attachment 1735763 [details]
File: lvm.log

Comment 8 berni.boehm 2020-12-02 19:30:25 UTC
Created attachment 1735764 [details]
File: nmcli_dev_list

Comment 9 berni.boehm 2020-12-02 19:30:26 UTC
Created attachment 1735765 [details]
File: os_info

Comment 10 berni.boehm 2020-12-02 19:30:29 UTC
Created attachment 1735766 [details]
File: program.log

Comment 11 berni.boehm 2020-12-02 19:30:32 UTC
Created attachment 1735767 [details]
File: storage.log

Comment 12 Jan Stodola 2020-12-31 13:52:13 UTC
jourlanctl also contains the following traceback:

DEBUG:blivet:                 DeviceTree.handle_device: name: nvme0n1 ; info: {'DEVLINKS': '/dev/disk/by-id/nvme-nvme.126f-383338333232303036313330303337-494e4e4f564154494f4ea1a44954-00000001 '
             '/dev/disk/by-id/nvme-INNOVATION__IT_838322006130037 '
             '/dev/disk/by-path/pci-0000:05:00.0-nvme-1',
 'DEVNAME': '/dev/nvme0n1',
 'DEVPATH': '/devices/pci0000:00/0000:00:1c.4/0000:05:00.0/nvme/nvme0/nvme0n1',
 'DEVTYPE': 'disk',
 'ID_MODEL': 'INNOVATION__IT',
 'ID_PART_TABLE_TYPE': 'gpt',
 'ID_PART_TABLE_UUID': 'cc8feece-c671-4d4f-b74a-758645a7c78f',
 'ID_PATH': 'pci-0000:05:00.0-nvme-1',
 'ID_PATH_TAG': 'pci-0000_05_00_0-nvme-1',
 'ID_REVISION': 'T0214B0L',
 'ID_SERIAL': 'INNOVATION__IT_838322006130037',
 'ID_SERIAL_SHORT': '838322006130037',
 'ID_WWN': 'nvme.126f-383338333232303036313330303337-494e4e4f564154494f4ea1a44954-00000001',
 'MAJOR': '259',
 'MINOR': '0',
 'SUBSYSTEM': 'block',
 'SYS_NAME': 'nvme0n1',
 'SYS_PATH': '/sys/devices/pci0000:00/0000:00:1c.4/0000:05:00.0/nvme/nvme0/nvme0n1',
 'TAGS': ':systemd:',
 'USEC_INITIALIZED': '14270424'} ;
INFO:blivet:scanning nvme0n1 (/sys/devices/pci0000:00/0000:00:1c.4/0000:05:00.0/nvme/nvme0/nvme0n1)...
DEBUG:testdata:sysfs attr /sys/devices/pci0000:00/0000:00:1c.4/0000:05:00.0/nvme/nvme0/nvme0n1/hidden: 300a
DEBUG:blivet:                   DeviceTree.get_device_by_name: name: nvme0n1 ; incomplete: False ; hidden: False ;
DEBUG:blivet:                   DeviceTree.get_device_by_name returned None
DEBUG:blivet:                  DiskDevicePopulator.run: name: nvme0n1 ;
WARNING:blivet:device/vendor is not a valid attribute
INFO:anaconda.threading:Thread Failed: AnaTaskThread-ScanDevicesTask-1 (140369597560384)
ERROR:anaconda.modules.common.task.task:Thread AnaTaskThread-ScanDevicesTask-1 has failed: Traceback (most recent call last):
  File "/usr/lib64/python3.9/site-packages/pyanaconda/threading.py", line 280, in run
    threading.Thread.run(self)
  File "/usr/lib64/python3.9/threading.py", line 888, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.9/site-packages/pyanaconda/modules/common/task/task.py", line 97, in _task_run_callback
    self._set_result(self.run())
  File "/usr/lib64/python3.9/site-packages/pyanaconda/modules/storage/reset.py", line 63, in run
    self._reset_storage(self._storage)
  File "/usr/lib64/python3.9/site-packages/pyanaconda/modules/storage/reset.py", line 82, in _reset_storage
    storage.reset()
  File "/usr/lib/python3.9/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib64/python3.9/site-packages/pyanaconda/modules/storage/devicetree/model.py", line 260, in reset
    super().reset(cleanup_only=cleanup_only)
  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/blivet.py", line 142, in reset
    self.devicetree.populate(cleanup_only=cleanup_only)
  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 416, 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 461, in _populate
    self.handle_device(dev)
  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 267, in handle_device
    device = helper_class(self, info).run()
  File "/usr/lib/python3.9/site-packages/blivet/populator/helpers/disk.py", line 70, in run
    kwargs = self._get_kwargs()
  File "/usr/lib/python3.9/site-packages/blivet/populator/helpers/disk.py", line 54, in _get_kwargs
    "model": util.get_sysfs_attr(sysfs_path, "device/model"),
  File "/usr/lib/python3.9/site-packages/blivet/util.py", line 383, in get_sysfs_attr
    data = f.read()
  File "/usr/lib64/python3.9/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa1 in position 10: invalid start byte

It looks related to https://github.com/storaged-project/blivet/pull/861 and bug 1849326.
Vojto, can you please have a look at this problem?

Comment 13 Vojtech Trefny 2021-01-05 16:08:50 UTC
Yes, looks like I missed one place where we read the device model from sysfs.

New PR for blivet: https://github.com/storaged-project/blivet/pull/921

I'm moving this bug to blivet, I assume the anaconda crash happens only because the storage thread failed.


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