Bug 1787508

Summary: blivet.errors.FormatSetupError: invalid device specification
Product: [Fedora] Fedora Reporter: e
Component: blivet-guiAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: anaconda-maint-list, jkonecny, jonathan, kellin, mkolman, vanmeeuwen+fedora, vponcova, vtrefny, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:0abb12bc4d322e72cfa3d1948dca8fcbd3d8a6e456ac49dd725cb8151322ab44;
Fixed In Version: blivet-gui-2.1.13-1.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-03 00:51:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: blivet-gui-utils.log
none
File: dbus.log
none
File: environ
none
File: lorax-packages.log
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: syslog
none
File: packaging.log none

Description e 2020-01-03 08:06:44 UTC
Description of problem:
I have an existing MD device which contains LUKS data inside.

I clicked the unlock icon on the LUKS formatted MD device. This caused an error.

It seems that blivet doesn't start the existing MD array before it tries to decrypt it and thus raises an error because the MD device does not exist.

Version-Release number of selected component:
anaconda-31.22.6

The following was filed automatically by anaconda:
anaconda 31.22.6 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.7/site-packages/blivet/formats/__init__.py", line 630, in _pre_setup
    raise FormatSetupError("invalid device specification")
  File "/usr/lib/python3.7/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/blivet/formats/luks.py", line 251, in _pre_setup
    return super(LUKS, self)._pre_setup(**kwargs)
  File "/usr/lib/python3.7/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/blivet/formats/__init__.py", line 603, in setup
    if not self._pre_setup(**kwargs):
  File "/usr/lib/python3.7/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/blivetgui/blivet_utils.py", line 1367, in luks_decrypt
    blivet_device.format.setup()
  File "/usr/lib/python3.7/site-packages/blivetgui/osinstall.py", line 80, in remote_call
    return utils_method(*args)
  File "/usr/lib/python3.7/site-packages/blivetgui/blivetgui.py", line 651, in decrypt_device
    ret = self.client.remote_call("luks_decrypt", self.list_partitions.selected_partition[0], response)
blivet.errors.FormatSetupError: invalid device specification

Additional info:
addons:         com_redhat_kdump
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Fedora-S-dvd-x86_64-31 quiet
dnf.librepo.log: 
executable:     /sbin/anaconda
hashmarkername: anaconda
hawkey.log:     INFO Jan-03 07:52:56 === Started libdnf-0.35.3 ===
kernel:         5.3.7-301.fc31.x86_64
product:        Fedora
release:        Fedora release 31 (Thirty One)
type:           anaconda
version:        31

Potential duplicate: bug 1476544

Comment 1 e 2020-01-03 08:06:49 UTC
Created attachment 1649334 [details]
File: anaconda-tb

Comment 2 e 2020-01-03 08:06:52 UTC
Created attachment 1649335 [details]
File: anaconda.log

Comment 3 e 2020-01-03 08:06:54 UTC
Created attachment 1649336 [details]
File: blivet-gui-utils.log

Comment 4 e 2020-01-03 08:06:55 UTC
Created attachment 1649337 [details]
File: dbus.log

Comment 5 e 2020-01-03 08:06:56 UTC
Created attachment 1649338 [details]
File: environ

Comment 6 e 2020-01-03 08:06:58 UTC
Created attachment 1649339 [details]
File: lorax-packages.log

Comment 7 e 2020-01-03 08:07:00 UTC
Created attachment 1649340 [details]
File: lsblk_output

Comment 8 e 2020-01-03 08:07:02 UTC
Created attachment 1649341 [details]
File: nmcli_dev_list

Comment 9 e 2020-01-03 08:07:03 UTC
Created attachment 1649342 [details]
File: os_info

Comment 10 e 2020-01-03 08:07:05 UTC
Created attachment 1649343 [details]
File: program.log

Comment 11 e 2020-01-03 08:07:09 UTC
Created attachment 1649344 [details]
File: storage.log

Comment 12 e 2020-01-03 08:07:11 UTC
Created attachment 1649345 [details]
File: syslog

Comment 13 e 2020-01-03 08:07:13 UTC
Created attachment 1649346 [details]
File: packaging.log

Comment 14 Vendula Poncova 2020-01-03 12:06:29 UTC
It seems to be an issue in blivet-gui. Reassigning.

Comment 15 Vojtech Trefny 2020-03-26 12:00:30 UTC
upstream PR: https://github.com/storaged-project/blivet-gui/pull/164

Comment 16 Fedora Update System 2020-04-02 10:40:42 UTC
FEDORA-2020-576bd54f42 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-576bd54f42

Comment 17 Fedora Update System 2020-04-03 00:51:32 UTC
FEDORA-2020-576bd54f42 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.