This site requires JavaScript to be enabled to function correctly, please enable it.
Bug 2269133 - pyanaconda.modules.common.errors.general.AnacondaError: cannot initialize a disk that has partitions
Summary: pyanaconda.modules.common.errors.general.AnacondaError: cannot initialize a d...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: 40
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vojtech Trefny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:61852d5676277ddaaaf58f7f4c0...
Depends On:
Blocks: F40BetaBlocker
TreeView+ depends on / blocked
 
Reported: 2024-03-12 09:14 UTC by Lukas Ruzicka
Modified: 2024-03-13 17:31 UTC (History)
15 users (show)

Fixed In Version: python-blivet-3.9.1-2.fc40
Clone Of:
Environment:
Last Closed: 2024-03-13 17:31:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: dbus.log (3.90 KB, text/plain)
2024-03-12 09:14 UTC, Lukas Ruzicka
no flags Details
File: lsblk_output (5.38 KB, text/plain)
2024-03-12 09:14 UTC, Lukas Ruzicka
no flags Details
File: anaconda.log (16.57 KB, text/plain)
2024-03-12 09:14 UTC, Lukas Ruzicka
no flags Details
File: nmcli_dev_list (1.72 KB, text/plain)
2024-03-12 09:14 UTC, Lukas Ruzicka
no flags Details
File: program.log (16.43 KB, text/plain)
2024-03-12 09:14 UTC, Lukas Ruzicka
no flags Details
File: packaging.log (3.17 KB, text/plain)
2024-03-12 09:14 UTC, Lukas Ruzicka
no flags Details
File: storage.log (156.24 KB, text/plain)
2024-03-12 09:14 UTC, Lukas Ruzicka
no flags Details
File: description (1.57 KB, text/plain)
2024-03-12 09:14 UTC, Lukas Ruzicka
no flags Details
File: journalctl (745.06 KB, text/plain)
2024-03-12 09:14 UTC, Lukas Ruzicka
no flags Details
File: environ (575 bytes, text/plain)
2024-03-12 09:14 UTC, Lukas Ruzicka
no flags Details
File: os_info (756 bytes, text/plain)
2024-03-12 09:15 UTC, Lukas Ruzicka
no flags Details
File: backtrace (1.64 KB, text/plain)
2024-03-12 09:15 UTC, Lukas Ruzicka
no flags Details
File: anaconda-tb (989.83 KB, text/plain)
2024-03-12 09:15 UTC, Lukas Ruzicka
no flags Details
File: packaging.log (3.17 KB, text/plain)
2024-03-12 09:15 UTC, Lukas Ruzicka
no flags Details

Description Lukas Ruzicka 2024-03-12 09:14:36 UTC
Description of problem:
I was trying to install Fedora Workstation 40, 20240311 iso, onto a firmware RAID in our office, but I was not able to reclaim any space. Anaconda offered to delete the content, but the reclaim button remained inactive. 
I wanted to switch to the Custom partitioning and Anaconda crashed completely. I was installing in EFI mode.

Version-Release number of selected component:
anaconda-core-40.22.2-1.fc40.x86_64


The following was filed automatically by anaconda:
anaconda 40.22.2 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.12/site-packages/dasbus/client/handler.py", line 509, in _handle_method_error
    raise exception from None
  File "/usr/lib/python3.12/site-packages/dasbus/client/handler.py", line 483, in _get_method_reply
    return self._handle_method_error(error)
  File "/usr/lib/python3.12/site-packages/dasbus/client/handler.py", line 450, in _call_method
    return self._get_method_reply(
  File "/usr/lib64/python3.12/site-packages/pyanaconda/ui/gui/spokes/custom_storage.py", line 303, in refresh
    self._default_file_system = self._device_tree.GetDefaultFileSystem()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/ui/gui/hubs/__init__.py", line 415, in _on_spoke_clicked
    spoke.refresh()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/ui/gui/hubs/__init__.py", line 448, in spoke_done
    self._on_spoke_clicked(self._spokes[dest].selector, None, self._spokes[dest])
  File "/usr/lib64/python3.12/site-packages/pyanaconda/ui/gui/spokes/__init__.py", line 64, in on_back_clicked
    self.main_window.current_action.spoke_done(self)
  File "/usr/lib64/python3.12/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 803, in _skip_to_spoke
    NormalSpoke.on_back_clicked(self, None)
  File "/usr/lib64/python3.12/site-packages/pyanaconda/ui/gui/spokes/storage.py", line 734, in on_back_clicked
    self._skip_to_spoke("CustomPartitioningSpoke")
pyanaconda.modules.common.errors.general.AnacondaError: cannot initialize a disk that has partitions

Additional info:
other involved packages: anaconda-gui-40.22.2-1.fc40.x86_64, python3-dasbus-1.7-6.fc40.noarch
version:        40
kernel:         6.8.0-0.rc6.49.fc40.x86_64
addons:         com_redhat_kdump
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz root=live:CDLABEL=Fedora-WS-Live-40-20240311-n-0 rd.live.image quiet rhgb
release:        Fedora release 40 (Forty)
type:           anaconda
release_type:   pre-release
reason:         pyanaconda.modules.common.errors.general.AnacondaError: cannot initialize a disk that has partitions
package:        anaconda-core-40.22.2-1.fc40.x86_64
product:        Fedora
hashmarkername: anaconda
executable:     /sbin/anaconda
cmdline:        /usr/bin/python3  /sbin/anaconda --liveinst --graphical

Comment 1 Lukas Ruzicka 2024-03-12 09:14:39 UTC
Created attachment 2021215 [details]
File: dbus.log

Comment 2 Lukas Ruzicka 2024-03-12 09:14:41 UTC
Created attachment 2021216 [details]
File: lsblk_output

Comment 3 Lukas Ruzicka 2024-03-12 09:14:43 UTC
Created attachment 2021217 [details]
File: anaconda.log

Comment 4 Lukas Ruzicka 2024-03-12 09:14:45 UTC
Created attachment 2021218 [details]
File: nmcli_dev_list

Comment 5 Lukas Ruzicka 2024-03-12 09:14:47 UTC
Created attachment 2021219 [details]
File: program.log

Comment 6 Lukas Ruzicka 2024-03-12 09:14:49 UTC
Created attachment 2021220 [details]
File: packaging.log

Comment 7 Lukas Ruzicka 2024-03-12 09:14:51 UTC
Created attachment 2021221 [details]
File: storage.log

Comment 8 Lukas Ruzicka 2024-03-12 09:14:53 UTC
Created attachment 2021222 [details]
File: description

Comment 9 Lukas Ruzicka 2024-03-12 09:14:56 UTC
Created attachment 2021223 [details]
File: journalctl

Comment 10 Lukas Ruzicka 2024-03-12 09:14:58 UTC
Created attachment 2021224 [details]
File: environ

Comment 11 Lukas Ruzicka 2024-03-12 09:15:00 UTC
Created attachment 2021225 [details]
File: os_info

Comment 12 Lukas Ruzicka 2024-03-12 09:15:02 UTC
Created attachment 2021226 [details]
File: backtrace

Comment 13 Lukas Ruzicka 2024-03-12 09:15:05 UTC
Created attachment 2021227 [details]
File: anaconda-tb

Comment 14 Lukas Ruzicka 2024-03-12 09:15:07 UTC
Created attachment 2021228 [details]
File: packaging.log

Comment 15 Fedora Blocker Bugs Application 2024-03-12 09:19:52 UTC
Proposed as a Blocker for 40-beta by Fedora user lruzicka using the blocker tracking app because:

 I am proposing this for a blocker consideration, as I am not able to install onto a firmware RAID which violates the following Hardware RAID criterion (https://fedoraproject.org/wiki/Fedora_40_Beta_Release_Criteria#Hardware_RAID)

Comment 16 Lukas Ruzicka 2024-03-12 09:37:10 UTC
So, how to reproduce. Happens regularly using BIOS and UEFI modes:

1. Boot Workstation 40 Beta, 20240311 in EFI or BIOS mode on a computer with a firmware RAID 1.
2. Start Anaconda.
3. Try to reclaim free space from the RAID device -> this will not work as the button will not become functional.
4. Cancel the operation and return to the previous screen.
5. Select "Custom partitioning" and confirm.
6. Anaconda crashes.

Comment 18 Adam Williamson 2024-03-12 17:01:53 UTC
I reproduced this problem locally, and can confirm the updates image fixes it.

Comment 19 Lukas Brabec 2024-03-12 18:20:16 UTC
Can confirm as well, the updates image fixes the bug.

Comment 20 Adam Williamson 2024-03-12 19:36:40 UTC
+3 in https://pagure.io/fedora-qa/blocker-review/issue/1514 , marking accepted.

Comment 21 Fedora Update System 2024-03-12 19:53:34 UTC
FEDORA-2024-cf2afdecb3 (python-blivet-3.9.1-2.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-cf2afdecb3

Comment 22 Fedora Update System 2024-03-12 20:55:05 UTC
FEDORA-2024-cf2afdecb3 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-cf2afdecb3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-cf2afdecb3

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

Comment 23 Lukas Ruzicka 2024-03-13 07:41:13 UTC
I can confirm that the bodhi update works, too.

Comment 24 Fedora Update System 2024-03-13 17:31:31 UTC
FEDORA-2024-cf2afdecb3 (python-blivet-3.9.1-2.fc40) has been pushed to the Fedora 40 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.