Bug 2394554 - WebUI: org.fedoraproject.Anaconda.Error: 'NoneType' object has no attribute 'path'
Summary: WebUI: org.fedoraproject.Anaconda.Error: 'NoneType' object has no attribute '...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 43
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Katerina Koukiou
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2395492 2395902 2400385 2400957 2402989 2404899 2406198 2406260 2406300 2407418 2408796 2408893 2411891 2411925 2411975 2412018 2412243 2413201 2413555 2413618 2416141 2416322 2416540 2416606 2416814 2417369 2417560 2417592 2417622 2417741 2417766 2418451 2418915 2419065 2419742 2419745 2419766 2419815 2421741 2421795 2421995 2422244 (view as bug list)
Depends On:
Blocks: BetaBlocker, F44BetaBlocker
TreeView+ depends on / blocked
 
Reported: 2025-09-11 12:37 UTC by Lukas Ruzicka
Modified: 2025-12-15 15:21 UTC (History)
49 users (show)

Fixed In Version: anaconda-44.6-1.fc44
Clone Of:
Environment:
Last Closed: 2025-12-04 17:58:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
journal.log as requested (3.51 MB, text/plain)
2025-09-11 12:38 UTC, Lukas Ruzicka
no flags Details

Description Lukas Ruzicka 2025-09-11 12:37:55 UTC
Installer WebUI Critical Error:
org.fedoraproject.Anaconda.Error: 'NoneType' object has no attribute 'path'

Please attach the log file /tmp/journal.log to the issue.

Reproducible: Always

Comment 1 Lukas Ruzicka 2025-09-11 12:38:41 UTC
Created attachment 2106349 [details]
journal.log as requested

Comment 2 Lukas Ruzicka 2025-09-11 12:39:32 UTC
This happened when I was trying to perform the "preserve home while setting mount points manually" test case.

Comment 3 Katerina Koukiou 2025-10-02 07:04:41 UTC
*** Bug 2400957 has been marked as a duplicate of this bug. ***

Comment 4 Katerina Koukiou 2025-10-02 07:05:06 UTC
*** Bug 2395902 has been marked as a duplicate of this bug. ***

Comment 5 Katerina Koukiou 2025-10-02 07:06:17 UTC
*** Bug 2395492 has been marked as a duplicate of this bug. ***

Comment 6 Katerina Koukiou 2025-11-18 14:18:32 UTC
*** Bug 2412018 has been marked as a duplicate of this bug. ***

Comment 7 Katerina Koukiou 2025-11-18 14:18:33 UTC
*** Bug 2412243 has been marked as a duplicate of this bug. ***

Comment 8 Katerina Koukiou 2025-11-18 14:30:47 UTC
*** Bug 2413201 has been marked as a duplicate of this bug. ***

Comment 9 Katerina Koukiou 2025-11-18 14:30:49 UTC
*** Bug 2413555 has been marked as a duplicate of this bug. ***

Comment 10 Katerina Koukiou 2025-11-19 16:17:59 UTC
Analysis:


The interesting part of the failure is:


Sep 11 12:33:00 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]:   File "/usr/lib64/python3.14/site-packages/pyanaconda/modules/storage/partitioning/manual/manual_module.py", line 84, in setup_kickstart
Sep 11 12:33:00 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]:     mount_data.device = device.path
Sep 11 12:33:00 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]:                         ^^^^^^^^^^^
Sep 11 12:33:00 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]: AttributeError: 'NoneType' object has no attribute 'path'

The requests object for this manual partitioning can be seen here:

Sep 11 12:30:44 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]: DEBUG:anaconda.modules.storage.partitioning.manual.manual_module:Requests are set to '[MountPointRequest(device_spec='nvme1n1p1', format_options='', format_type='efi', ks_spec='', mount_options='', mount_point='/boot/efi', reformat=False), MountPointRequest(device_spec='nvme1n1p2', format_options='', format_type='ext4', ks_spec='', mount_options='', mount_point='/boot', reformat=False), MountPointRequest(device_spec='BTRFS-8e512a44-fddd-454d-beea-64be22044dff-home', format_options='', format_type='btrfs', ks_spec='', mount_options='subvol=home', mount_point='/home', reformat=False), MountPointRequest(device_spec='BTRFS-8e512a44-fddd-454d-beea-64be22044dff-root', format_options='', format_type='btrfs', ks_spec='', mount_options='subvol=root', mount_point='/', reformat=True), MountPointRequest(device_spec='BTRFS-8e512a44-fddd-454d-beea-64be22044dff-root/var/lib/machines', format_options='', format_type='btrfs', ks_spec='', mount_options='subvol=root/var/lib/machines', mount_point='', reformat=False)]'.

What looks like the root case is that the root BTRFS subvolume is reformatted, but it's nested subvolume root/var/lib/machines are not marked for reformatting in the requests. Blivet therefore removes the root/var/lib/machines subvolume from the device tree.

Sep 11 12:30:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]: DEBUG:blivet:removing root
Sep 11 12:30:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]: DEBUG:blivet:                   DeviceTree.get_dependent_devices: dep: existing 929.91 GiB btrfs subvolume root (98) with existing btrfs filesystem ; hidden: False ;
Sep 11 12:30:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]: DEBUG:blivet:checking if nvme0n1 depends on root
Sep 11 12:30:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]: DEBUG:blivet:checking if nvme0n1p3 depends on root
Sep 11 12:30:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]: DEBUG:blivet:checking if sda depends on root
Sep 11 12:30:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]: DEBUG:blivet:checking if nvme1n1 depends on root
Sep 11 12:30:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]: DEBUG:blivet:checking if nvme1n1p1 depends on root
Sep 11 12:30:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]: DEBUG:blivet:checking if nvme1n1p2 depends on root
Sep 11 12:30:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]: DEBUG:blivet:checking if /LiveOS/squashfs.img depends on root
Sep 11 12:30:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]: DEBUG:blivet:checking if loop0 depends on root
Sep 11 12:30:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]: DEBUG:blivet:checking if luks-53cf23ae-76fa-413f-a293-b257e0f1a868 depends on root
Sep 11 12:30:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]: DEBUG:blivet:checking if fedora depends on root
Sep 11 12:30:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]: DEBUG:blivet:checking if home depends on root
Sep 11 12:30:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]: DEBUG:blivet:checking if root depends on root
Sep 11 12:30:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]: DEBUG:blivet:checking if root/var/lib/machines depends on root
Sep 11 12:30:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]: DEBUG:blivet:devices to remove: ['root/var/lib/machines']
Sep 11 12:30:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]: DEBUG:blivet:leaves to remove: ['root/var/lib/machines']
Sep 11 12:30:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]: DEBUG:blivet:                             BTRFSSubVolumeDevice.remove_child: name: root ; child: root/var/lib/machines ; kids: 1 ;
Sep 11 12:30:47 localhost-live org.fedoraproject.Anaconda.Modules.Storage[3584]: INFO:blivet:removed btrfs subvolume root/var/lib/machines (id 102) from device tree


Then, setup_kickstart looks up the remove device, which is marked for remount in the Requests object , but it's gone, causing AttributeError: 'NoneType' object has no attribute 'path'.

This however, should have been prevented by the front end. In MountPointMapping.jsx, when a parent is set to reformat=true, we check that all children are also set to reformat=true, otherwise we prevent the user from clicking "Next".

Comment 11 Katerina Koukiou 2025-11-19 16:49:07 UTC
The Anaconda WebUI frontend includes all devices in the manual partitioning requests sent to the backend, even those without mount points. This includes BTRFS subvolumes like root/var/lib/machines that exist in the device tree but aren't assigned a mount point.
When these requests (with empty mount_point) reach the backend's setup_kickstart, it tries to process them, leading to errors when the device is missing from the device tree (e.g., after a parent is reformatted).

Comment 12 Katerina Koukiou 2025-11-20 16:09:31 UTC
*** Bug 2416141 has been marked as a duplicate of this bug. ***

Comment 13 Katerina Koukiou 2025-11-21 06:30:26 UTC
Fixed upstream: https://github.com/rhinstaller/anaconda/pull/6767
Extended our automated test to cover this exact scenario: https://github.com/rhinstaller/anaconda-webui/pull/1079

Comment 14 Katerina Koukiou 2025-11-21 08:54:52 UTC
*** Bug 2406260 has been marked as a duplicate of this bug. ***

Comment 15 Katerina Koukiou 2025-11-21 08:55:10 UTC
*** Bug 2406300 has been marked as a duplicate of this bug. ***

Comment 16 Katerina Koukiou 2025-11-21 08:57:31 UTC
*** Bug 2407418 has been marked as a duplicate of this bug. ***

Comment 17 Katerina Koukiou 2025-11-21 08:58:27 UTC
*** Bug 2408796 has been marked as a duplicate of this bug. ***

Comment 18 Katerina Koukiou 2025-11-28 07:20:05 UTC
*** Bug 2416606 has been marked as a duplicate of this bug. ***

Comment 19 Katerina Koukiou 2025-11-28 07:20:09 UTC
*** Bug 2417369 has been marked as a duplicate of this bug. ***

Comment 20 Katerina Koukiou 2025-11-28 07:20:13 UTC
*** Bug 2417560 has been marked as a duplicate of this bug. ***

Comment 21 Katerina Koukiou 2025-11-28 07:20:17 UTC
*** Bug 2417592 has been marked as a duplicate of this bug. ***

Comment 22 Katerina Koukiou 2025-11-28 07:20:25 UTC
*** Bug 2417622 has been marked as a duplicate of this bug. ***

Comment 23 Katerina Koukiou 2025-11-28 07:20:30 UTC
*** Bug 2416540 has been marked as a duplicate of this bug. ***

Comment 24 Katerina Koukiou 2025-11-28 07:20:33 UTC
*** Bug 2416322 has been marked as a duplicate of this bug. ***

Comment 25 Katerina Koukiou 2025-11-28 07:20:38 UTC
*** Bug 2413618 has been marked as a duplicate of this bug. ***

Comment 26 Katerina Koukiou 2025-11-28 07:20:48 UTC
*** Bug 2411975 has been marked as a duplicate of this bug. ***

Comment 27 Katerina Koukiou 2025-11-28 07:20:53 UTC
*** Bug 2411925 has been marked as a duplicate of this bug. ***

Comment 28 Katerina Koukiou 2025-11-28 07:20:57 UTC
*** Bug 2411891 has been marked as a duplicate of this bug. ***

Comment 29 Katerina Koukiou 2025-11-28 07:21:02 UTC
*** Bug 2408893 has been marked as a duplicate of this bug. ***

Comment 30 Katerina Koukiou 2025-11-28 08:45:31 UTC
*** Bug 2402989 has been marked as a duplicate of this bug. ***

Comment 31 Katerina Koukiou 2025-11-28 08:50:08 UTC
*** Bug 2416814 has been marked as a duplicate of this bug. ***

Comment 32 Fedora Update System 2025-12-03 13:47:14 UTC
FEDORA-2025-d70e047fbf (anaconda-webui-58-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-d70e047fbf

Comment 33 Fedora Update System 2025-12-04 17:58:14 UTC
FEDORA-2025-d70e047fbf (anaconda-44.6-1.fc44 and anaconda-webui-59-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 34 Katerina Koukiou 2025-12-05 12:54:34 UTC
*** Bug 2400385 has been marked as a duplicate of this bug. ***

Comment 35 Katerina Koukiou 2025-12-08 07:44:52 UTC
*** Bug 2419742 has been marked as a duplicate of this bug. ***

Comment 36 Katerina Koukiou 2025-12-08 07:45:17 UTC
*** Bug 2419745 has been marked as a duplicate of this bug. ***

Comment 37 Katerina Koukiou 2025-12-08 07:45:21 UTC
*** Bug 2419766 has been marked as a duplicate of this bug. ***

Comment 38 Katerina Koukiou 2025-12-08 07:45:39 UTC
*** Bug 2419815 has been marked as a duplicate of this bug. ***

Comment 39 Katerina Koukiou 2025-12-08 09:00:24 UTC
*** Bug 2404899 has been marked as a duplicate of this bug. ***

Comment 40 Katerina Koukiou 2025-12-09 08:43:25 UTC
*** Bug 2419065 has been marked as a duplicate of this bug. ***

Comment 41 Katerina Koukiou 2025-12-09 08:43:28 UTC
*** Bug 2418915 has been marked as a duplicate of this bug. ***

Comment 42 Katerina Koukiou 2025-12-09 08:43:33 UTC
*** Bug 2418451 has been marked as a duplicate of this bug. ***

Comment 43 Katerina Koukiou 2025-12-09 12:21:21 UTC
*** Bug 2417766 has been marked as a duplicate of this bug. ***

Comment 44 Katerina Koukiou 2025-12-09 13:40:54 UTC
*** Bug 2417741 has been marked as a duplicate of this bug. ***

Comment 45 Katerina Koukiou 2025-12-12 08:53:57 UTC
*** Bug 2406198 has been marked as a duplicate of this bug. ***

Comment 46 Katerina Koukiou 2025-12-12 11:43:13 UTC
*** Bug 2421741 has been marked as a duplicate of this bug. ***

Comment 47 Katerina Koukiou 2025-12-15 15:16:15 UTC
*** Bug 2422244 has been marked as a duplicate of this bug. ***

Comment 48 Katerina Koukiou 2025-12-15 15:21:31 UTC
*** Bug 2421995 has been marked as a duplicate of this bug. ***

Comment 49 Katerina Koukiou 2025-12-15 15:21:37 UTC
*** Bug 2421795 has been marked as a duplicate of this bug. ***


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