Bug 2005289 - blivet.errors.DeviceFormatError: Failed to delete the device:format has not been created
Summary: blivet.errors.DeviceFormatError: Failed to delete the device:format has not b...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: blivet-gui
Version: 35
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vojtech Trefny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:dd72950e45ca28cb8de5f39657b...
Depends On:
Blocks: F35BetaBlocker
TreeView+ depends on / blocked
 
Reported: 2021-09-17 10:50 UTC by lnie
Modified: 2021-09-24 00:31 UTC (History)
13 users (show)

Fixed In Version: blivet-gui-2.3.0-3.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-24 00:31:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (607.02 KB, text/plain)
2021-09-17 10:50 UTC, lnie
no flags Details
File: anaconda.log (24.15 KB, text/plain)
2021-09-17 10:50 UTC, lnie
no flags Details
File: dbus.log (3.36 KB, text/plain)
2021-09-17 10:50 UTC, lnie
no flags Details
File: dnf.librepo.log (1.21 KB, text/plain)
2021-09-17 10:50 UTC, lnie
no flags Details
File: environ (702 bytes, text/plain)
2021-09-17 10:50 UTC, lnie
no flags Details
File: lorax-packages.log (24.96 KB, text/plain)
2021-09-17 10:50 UTC, lnie
no flags Details
File: lsblk_output (878 bytes, text/plain)
2021-09-17 10:50 UTC, lnie
no flags Details
File: nmcli_dev_list (1.52 KB, text/plain)
2021-09-17 10:50 UTC, lnie
no flags Details
File: os_info (791 bytes, text/plain)
2021-09-17 10:50 UTC, lnie
no flags Details
File: program.log (8.29 KB, text/plain)
2021-09-17 10:50 UTC, lnie
no flags Details
File: storage.log (63.01 KB, text/plain)
2021-09-17 10:50 UTC, lnie
no flags Details
File: syslog (384.21 KB, text/plain)
2021-09-17 10:51 UTC, lnie
no flags Details
File: packaging.log (4.46 KB, text/plain)
2021-09-17 10:51 UTC, lnie
no flags Details

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.


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