Bug 2005289

Summary: blivet.errors.DeviceFormatError: Failed to delete the device:format has not been created
Product: [Fedora] Fedora Reporter: lnie <lnie>
Component: blivet-guiAssignee: Vojtech Trefny <vtrefny>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 35CC: anaconda-maint-list, awilliam, geraldo.simiao.kutz, jonathan, kellin, lnie, mkolman, robatino, sumukher, vanmeeuwen+fedora, vponcova, vtrefny, w
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:dd72950e45ca28cb8de5f39657b22f14ea59b01028e135bd41fc4b79c9842a9b;VARIANT_ID=server; AcceptedBlocker
Fixed In Version: blivet-gui-2.3.0-3.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-24 00:31:22 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:
Bug Depends On:    
Bug Blocks: 1891953    
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: dbus.log
none
File: dnf.librepo.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 lnie 2021-09-17 10:50:20 UTC
Description of problem:
Boot Fedora-Workstation-Live-x86_64-35-20210911.n.0.iso (Fedora-Server-dvd-x86_64-35-20210911.n.0.iso) on a VM which has two disks.
on the BLIVET-GUI PARTITIONING page,create one  software raid partition,and then try to delete it, the crash happens immediately after you 
click the "OK" button

Version-Release number of selected component:
anaconda-35.22.1

The following was filed automatically by anaconda:
anaconda 35.22.1 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.10/site-packages/blivetgui/osinstall.py", line 234, in _reraise_exception
    raise type(exception)(message + str(exception) + "\n" + traceback)
  File "/usr/lib/python3.10/site-packages/blivetgui/blivetgui.py", line 569, in delete_selected_partition
    self._reraise_exception(result.exception, result.traceback, message,
blivet.errors.DeviceFormatError: Failed to delete the device:format has not been created
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/blivetgui/blivet_utils.py", line 602, in delete_device
    parent.format.teardown()
  File "/usr/lib/python3.10/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/blivet/formats/__init__.py", line 650, in teardown
    if not self._pre_teardown(**kwargs):
  File "/usr/lib/python3.10/site-packages/blivet/threads.py", line 53, in run_with_lock
    return m(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/blivet/formats/__init__.py", line 659, in _pre_teardown
    raise DeviceFormatError("format has not been created")
blivet.errors.DeviceFormatError: format has not been created


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-35 rd.live.check quiet
executable:     /sbin/anaconda
hashmarkername: anaconda
hawkey.log:     2021-09-17T10:44:45+0000 INFO === Started libdnf-0.63.1 ===
kernel:         5.14.0-60.fc35.x86_64
product:        Fedora
release:        Fedora release 35 (Thirty Five)
release_type:   pre-release
type:           anaconda
version:        35

Comment 1 lnie 2021-09-17 10:50:32 UTC
Created attachment 1823835 [details]
File: anaconda-tb

Comment 2 lnie 2021-09-17 10:50:34 UTC
Created attachment 1823836 [details]
File: anaconda.log

Comment 3 lnie 2021-09-17 10:50:36 UTC
Created attachment 1823837 [details]
File: dbus.log

Comment 4 lnie 2021-09-17 10:50:38 UTC
Created attachment 1823838 [details]
File: dnf.librepo.log

Comment 5 lnie 2021-09-17 10:50:40 UTC
Created attachment 1823839 [details]
File: environ

Comment 6 lnie 2021-09-17 10:50:42 UTC
Created attachment 1823840 [details]
File: lorax-packages.log

Comment 7 lnie 2021-09-17 10:50:44 UTC
Created attachment 1823841 [details]
File: lsblk_output

Comment 8 lnie 2021-09-17 10:50:45 UTC
Created attachment 1823842 [details]
File: nmcli_dev_list

Comment 9 lnie 2021-09-17 10:50:47 UTC
Created attachment 1823843 [details]
File: os_info

Comment 10 lnie 2021-09-17 10:50:49 UTC
Created attachment 1823844 [details]
File: program.log

Comment 11 lnie 2021-09-17 10:50:52 UTC
Created attachment 1823845 [details]
File: storage.log

Comment 12 lnie 2021-09-17 10:51:00 UTC
Created attachment 1823846 [details]
File: syslog

Comment 13 lnie 2021-09-17 10:51:02 UTC
Created attachment 1823847 [details]
File: packaging.log

Comment 14 Vojtech Trefny 2021-09-21 11:50:49 UTC
upstream PR: https://github.com/storaged-project/blivet-gui/pull/294

Comment 15 Fedora Blocker Bugs Application 2021-09-22 10:32:11 UTC
Proposed as a Blocker for 35-beta by Fedora user lnie using the blocker tracking app because:

 When using both the installer-native and the blivet-gui-based custom partitioning flow, the installer must be able to: Remove a planned storage volume from the planned layout

Comment 16 Fedora Update System 2021-09-22 16:45:37 UTC
FEDORA-2021-216be9465e has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-216be9465e

Comment 17 Adam Williamson 2021-09-22 16:50:16 UTC
+3 in https://pagure.io/fedora-qa/blocker-review/issue/473 , marking accepted. We could potentially waive this as a late blocker, but as we have a fix and it's limited in scope, I have built an update that includes it, and will request an RC2; we can keep most RC1 tests as valid, since this change is limited to code dealing with RAID devices in blivet-gui.

Comment 18 Geraldo Simião 2021-09-22 17:25:03 UTC
Tested right now with an Fedora-KDE-Live-x86_64-35_Beta-1.1.iso without and with the new update (https://bodhi.fedoraproject.org/updates/FEDORA-2021-216be9465e).
Confirmed the bug on the Beta-1.1.iso, and confirmed that the fix at the update really works fine. (I installed the rpms at a live session and then runned anaconda and tried to do the process described at this ticket).

Comment 19 Adam Williamson 2021-09-22 17:29:01 UTC
OK, proposed fix for this will be in RC2 that is underway now.

Comment 20 Adam Williamson 2021-09-22 17:29:20 UTC
Thanks a lot for confirming the fix, Geraldo!

Comment 21 Fedora Update System 2021-09-22 18:48:15 UTC
FEDORA-2021-216be9465e has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-216be9465e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-216be9465e

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

Comment 22 Geraldo Simião 2021-09-23 01:53:39 UTC
Tested the new beta release candidate
Fedora-Workstation-Live-x86_64-35_Beta-1.2.iso
And the fix is already there and working fine.

Comment 23 lnie 2021-09-23 02:51:10 UTC
Checked with Fedora-Workstation-Live-x86_64-35_Beta-1.2.iso,the bug is fixed.

Comment 24 sumantro 2021-09-23 06:14:43 UTC
Verified with Fedora-Workstation-Live-x86_64-35_Beta-1.2.iso, this bug is fixed

Comment 25 Fedora Update System 2021-09-24 00:31:22 UTC
FEDORA-2021-216be9465e has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.