Bug 1960798 - pyanaconda.modules.common.errors.storage.UnknownDeviceError: 10
Summary: pyanaconda.modules.common.errors.storage.UnknownDeviceError: 10
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: 34
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vojtech Trefny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8369e3f29bdefd4f6641d1fcc08...
: 1897350 1946288 1967061 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-14 23:26 UTC by Frantisek Hanzlik
Modified: 2021-07-09 01:00 UTC (History)
15 users (show)

Fixed In Version: python-blivet-3.4.0-3.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-30 06:28:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (2.03 MB, text/plain)
2021-05-14 23:27 UTC, Frantisek Hanzlik
no flags Details
File: anaconda.log (27.49 KB, text/plain)
2021-05-14 23:27 UTC, Frantisek Hanzlik
no flags Details
File: dbus.log (2.99 KB, text/plain)
2021-05-14 23:27 UTC, Frantisek Hanzlik
no flags Details
File: dnf.librepo.log (1.08 KB, text/plain)
2021-05-14 23:27 UTC, Frantisek Hanzlik
no flags Details
File: environ (659 bytes, text/plain)
2021-05-14 23:27 UTC, Frantisek Hanzlik
no flags Details
File: lorax-packages.log (23.87 KB, text/plain)
2021-05-14 23:27 UTC, Frantisek Hanzlik
no flags Details
File: lsblk_output (4.73 KB, text/plain)
2021-05-14 23:27 UTC, Frantisek Hanzlik
no flags Details
File: nmcli_dev_list (1.89 KB, text/plain)
2021-05-14 23:27 UTC, Frantisek Hanzlik
no flags Details
File: os_info (754 bytes, text/plain)
2021-05-14 23:27 UTC, Frantisek Hanzlik
no flags Details
File: program.log (15.12 KB, text/plain)
2021-05-14 23:27 UTC, Frantisek Hanzlik
no flags Details
File: storage.log (476.17 KB, text/plain)
2021-05-14 23:27 UTC, Frantisek Hanzlik
no flags Details
File: syslog (1.42 MB, text/plain)
2021-05-14 23:27 UTC, Frantisek Hanzlik
no flags Details
File: packaging.log (6.06 KB, text/plain)
2021-05-14 23:27 UTC, Frantisek Hanzlik
no flags Details

Description Frantisek Hanzlik 2021-05-14 23:26:55 UTC
Description of problem:
Anaconda crashed in old custom partition selection menu (MANUAL PARTITIONING). I not know why, I was just looking
 at the offered partitions and md RAIDs, and wanted to define the first partition mount point.

Version-Release number of selected component:
anaconda-34.24.9

The following was filed automatically by anaconda:
anaconda 34.24.9 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.9/site-packages/dasbus/client/handler.py", line 497, in _handle_method_error
    raise exception from None
  File "/usr/lib/python3.9/site-packages/dasbus/client/handler.py", line 477, in _get_method_reply
    return self._handle_method_error(error)
  File "/usr/lib/python3.9/site-packages/dasbus/client/handler.py", line 444, in _call_method
    return self._get_method_reply(
  File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/custom_storage.py", line 258, in _get_permissions
    self._device_tree.GenerateDeviceFactoryPermissions(
  File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/custom_storage.py", line 254, in _update_permissions
    self._permissions = self._get_permissions(self._request)
  File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/custom_storage.py", line 777, in _populate_right_side
    self._update_permissions()
  File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/custom_storage.py", line 1422, in on_selector_clicked
    self._populate_right_side(self._accordion.current_selector)
  File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/custom_storage.py", line 1041, in _show_mountpoint
    self.on_selector_clicked(None, page.members[0])
  File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/custom_storage.py", line 1433, in on_page_clicked
    self._show_mountpoint(page=page, mountpoint=mountpoint_to_show)
  File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/lib/accordion.py", line 99, in _on_expanded
    cb(child)
pyanaconda.modules.common.errors.storage.UnknownDeviceError: 10

Additional info:
addons:         com_redhat_kdump
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=Fedora-S-dvd-x86_64-34 quiet
executable:     /sbin/anaconda
hashmarkername: anaconda
hawkey.log:     2021-05-14T23:48:40+0000 INFO === Started libdnf-0.60.0 ===
kernel:         5.11.12-300.fc34.x86_64
product:        Fedora
release:        Fedora release 34 (Thirty Four)
type:           anaconda
version:        34

Comment 1 Frantisek Hanzlik 2021-05-14 23:27:01 UTC
Created attachment 1783369 [details]
File: anaconda-tb

Comment 2 Frantisek Hanzlik 2021-05-14 23:27:03 UTC
Created attachment 1783370 [details]
File: anaconda.log

Comment 3 Frantisek Hanzlik 2021-05-14 23:27:04 UTC
Created attachment 1783371 [details]
File: dbus.log

Comment 4 Frantisek Hanzlik 2021-05-14 23:27:05 UTC
Created attachment 1783372 [details]
File: dnf.librepo.log

Comment 5 Frantisek Hanzlik 2021-05-14 23:27:06 UTC
Created attachment 1783373 [details]
File: environ

Comment 6 Frantisek Hanzlik 2021-05-14 23:27:08 UTC
Created attachment 1783374 [details]
File: lorax-packages.log

Comment 7 Frantisek Hanzlik 2021-05-14 23:27:09 UTC
Created attachment 1783375 [details]
File: lsblk_output

Comment 8 Frantisek Hanzlik 2021-05-14 23:27:10 UTC
Created attachment 1783376 [details]
File: nmcli_dev_list

Comment 9 Frantisek Hanzlik 2021-05-14 23:27:11 UTC
Created attachment 1783377 [details]
File: os_info

Comment 10 Frantisek Hanzlik 2021-05-14 23:27:13 UTC
Created attachment 1783378 [details]
File: program.log

Comment 11 Frantisek Hanzlik 2021-05-14 23:27:16 UTC
Created attachment 1783379 [details]
File: storage.log

Comment 12 Frantisek Hanzlik 2021-05-14 23:27:20 UTC
Created attachment 1783380 [details]
File: syslog

Comment 13 Frantisek Hanzlik 2021-05-14 23:27:22 UTC
Created attachment 1783381 [details]
File: packaging.log

Comment 14 Vendula Poncova 2021-05-18 09:52:31 UTC
From storage.log:

DEBUG:blivet:failed to resolve '10'
DEBUG:blivet:               DeviceTree.get_device_by_name: name:  ; incomplete: False ; hidden: False ;
DEBUG:blivet:               DeviceTree.get_device_by_name returned None
DEBUG:blivet:               DeviceTree.get_device_by_path: path: /dev/ ; incomplete: False ; hidden: False ;
DEBUG:blivet:               DeviceTree.get_device_by_path returned None
DEBUG:blivet:failed to resolve '/dev/'
DEBUG:blivet:get_format('') returning DeviceFormat instance with object id 350
WARNING:dasbus.server.handler:The call org.fedoraproject.Anaconda.Modules.Storage.DeviceTree.Scheduler.GenerateDeviceFactoryPermissions has failed with an exception:
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/dasbus/server/handler.py", line 418, in _method_callback
    result = self._handle_call(
  File "/usr/lib/python3.9/site-packages/dasbus/server/handler.py", line 234, in _handle_call
    return handler(*parameters)
  File "/usr/lib64/python3.9/site-packages/pyanaconda/modules/storage/partitioning/interactive/scheduler_interface.py", line 152, in GenerateDeviceFactoryPermissions
    permissions = self.implementation.generate_device_factory_permissions(request)
  File "/usr/lib64/python3.9/site-packages/pyanaconda/modules/storage/partitioning/interactive/scheduler_module.py", line 172, in generate_device_factory_permissions
    return utils.generate_device_factory_permissions(self.storage, request)
  File "/usr/lib64/python3.9/site-packages/pyanaconda/modules/storage/partitioning/interactive/utils.py", line 958, in generate_device_factory_permissions
    raise UnknownDeviceError(request.device_spec)
pyanaconda.modules.common.errors.storage.UnknownDeviceError: 10

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

Comment 15 Vojtech Trefny 2021-05-18 11:11:50 UTC
upstream PR: https://github.com/storaged-project/blivet/pull/956

Comment 16 Vojtech Trefny 2021-05-24 10:14:15 UTC
*** Bug 1946288 has been marked as a duplicate of this bug. ***

Comment 17 Vojtech Trefny 2021-06-02 11:46:28 UTC
*** Bug 1967061 has been marked as a duplicate of this bug. ***

Comment 18 Sampson Fung 2021-06-02 12:22:53 UTC
This bug is triggered when there are certain btrfs subvols existed.

I removed all subvols, only the top level subvolid=5 remains, then installation go ahead without issues.

Comment 19 Vojtech Trefny 2021-06-25 17:44:46 UTC
updates image for Fedora 34: https://vtrefny.fedorapeople.org/img/rhbz1960798.img

Comment 20 Vojtech Trefny 2021-06-25 18:01:05 UTC
*** Bug 1897350 has been marked as a duplicate of this bug. ***

Comment 21 Neal Gompa 2021-06-25 22:34:43 UTC
Vojtech, could we get this backported to blivet in F34? That way the respins SIG will be able to produce respins that have this fixed.

Comment 22 Vojtech Trefny 2021-06-29 07:02:58 UTC
(In reply to Neal Gompa from comment #21)
> Vojtech, could we get this backported to blivet in F34? That way the respins
> SIG will be able to produce respins that have this fixed.

I'm not sure if this is serious enough for a respin (requires a special device to hit a there is a workaround), but I've no problem with backporting the fix: https://src.fedoraproject.org/rpms/python-blivet/pull-request/9

Comment 23 Neal Gompa 2021-06-29 12:17:29 UTC
(In reply to Vojtech Trefny from comment #22)
> (In reply to Neal Gompa from comment #21)
> > Vojtech, could we get this backported to blivet in F34? That way the respins
> > SIG will be able to produce respins that have this fixed.
> 
> I'm not sure if this is serious enough for a respin (requires a special
> device to hit a there is a workaround),

Unofficial respins are done every two weeks by the Respins SIG: https://fedoraproject.org/wiki/Respins-SIG

> but I've no problem with backporting
> the fix: https://src.fedoraproject.org/rpms/python-blivet/pull-request/9

Thanks!

Comment 24 Fedora Update System 2021-06-30 06:39:03 UTC
FEDORA-2021-704ecf84b7 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-704ecf84b7

Comment 25 Fedora Update System 2021-07-01 01:17:59 UTC
FEDORA-2021-704ecf84b7 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-704ecf84b7`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-704ecf84b7

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 26 Fedora Update System 2021-07-09 01:00:58 UTC
FEDORA-2021-704ecf84b7 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.


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