Bug 2458907 - Installation of the system failed: Storing configuration files and kickstarts org.fedoraproject.Anaconda.Error: 'NoneType' object has no attribute 'path' [NEEDINFO]
Summary: Installation of the system failed: Storing configuration files and kickstarts...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 44
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Katerina Koukiou
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: AcceptedBlocker
: 2438995 2445392 2445486 2445777 2445989 2446431 2446890 2446971 2446972 2446973 2446974 2447221 2447555 2447701 2448356 2448357 2449463 2450184 2450375 2450430 2452770 2452856 2452857 2452862 2452919 2454386 2455131 2457287 2458429 2458844 2459527 (view as bug list)
Depends On:
Blocks: F44FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2026-04-16 10:06 UTC by Lukas Ruzicka
Modified: 2026-04-24 05:56 UTC (History)
33 users (show)

Fixed In Version: anaconda-44.30-2.fc44
Clone Of:
Environment:
Last Closed: 2026-04-24 05:56:11 UTC
Type: ---
Embargoed:
awilliam: needinfo? (kkoukiou)


Attachments (Terms of Use)
Log file: /tmp/journal.log (3.61 MB, text/plain)
2026-04-16 10:06 UTC, Lukas Ruzicka
no flags Details
Log file: /tmp/anaconda.log (6.53 KB, text/plain)
2026-04-16 10:06 UTC, Lukas Ruzicka
no flags Details
Log file: /tmp/storage.log (549.01 KB, text/plain)
2026-04-16 10:06 UTC, Lukas Ruzicka
no flags Details
Log file: /tmp/program.log (1.63 KB, text/plain)
2026-04-16 10:06 UTC, Lukas Ruzicka
no flags Details
Log file: /tmp/packaging.log (22.48 KB, text/plain)
2026-04-16 10:06 UTC, Lukas Ruzicka
no flags Details
Log file: /tmp/anaconda-webui.log (17.87 KB, text/plain)
2026-04-16 10:06 UTC, Lukas Ruzicka
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github rhinstaller anaconda pull 6767 0 None open partitioning: manual: skip requests for devices removed from device tree in setup_kickstart 2026-04-16 20:33:31 UTC

Description Lukas Ruzicka 2026-04-16 10:06:13 UTC
Installation of the system failed: Storing configuration files and kickstarts org.fedoraproject.Anaconda.Error: 'NoneType' object has no attribute 'path'

---[ System & Environment Information ]---
OS: Fedora Linux 44 (Workstation Edition)
Anaconda version: 44.30
Anaconda UI version: 68

Comment 1 Lukas Ruzicka 2026-04-16 10:06:17 UTC
Created attachment 2137268 [details]
Log file: /tmp/journal.log

Comment 2 Lukas Ruzicka 2026-04-16 10:06:20 UTC
Created attachment 2137269 [details]
Log file: /tmp/anaconda.log

Comment 3 Lukas Ruzicka 2026-04-16 10:06:23 UTC
Created attachment 2137270 [details]
Log file: /tmp/storage.log

Comment 4 Lukas Ruzicka 2026-04-16 10:06:25 UTC
Created attachment 2137271 [details]
Log file: /tmp/program.log

Comment 5 Lukas Ruzicka 2026-04-16 10:06:28 UTC
Created attachment 2137272 [details]
Log file: /tmp/packaging.log

Comment 6 Lukas Ruzicka 2026-04-16 10:06:31 UTC
Created attachment 2137273 [details]
Log file: /tmp/anaconda-webui.log

Comment 7 Lukas Ruzicka 2026-04-16 10:17:07 UTC
## Root Cause Analysis

I've analyzed the attached logs and identified the root cause of this installation failure.

**The Problem:**

The installation fails during kickstart generation with `AttributeError: 'NoneType' object has no attribute 'path'` at line 84 of `/usr/lib64/python3.14/site-packages/pyanaconda/modules/storage/partitioning/manual/manual_module.py`.

**What Happened:**

From storage.log analysis:

1. **Initial Detection** (line 5820-5855): Anaconda discovered an existing BTRFS volume with UUID `8896fac0-a1a2-4054-8acb-3535fbfb54a8` (device ID 396) on the MD RAID array

2. **Mount Point Request** (line 6188-6209): A mount point request was created referencing this device:
   ```
   MountPointRequest(device_spec='BTRFS-8896fac0-a1a2-4054-8acb-3535fbfb54a8', ..., reformat=True)
   ```

3. **Device Replacement** (line 6652-6669): When `reformat=True` was processed, Anaconda created a **new** BTRFS device (ID 475) with a **different** UUID: `72baea7d-eb50-4a01-8b67-6255dc38316e`

4. **Kickstart Generation Failure** (line 7524-7525): When generating the kickstart file, the code tries to lookup the device by the **original** UUID (`8896fac0-a1a2-4054-8acb-3535fbfb54a8`):
   ```
   DEBUG:blivet: DeviceTree.get_device_by_device_id: device_id: BTRFS-8896fac0-a1a2-4054-8acb-3535fbfb54a8
   DEBUG:blivet: DeviceTree.get_device_by_device_id returned None
   ```
   
   The lookup returns `None` because that device no longer exists—it was replaced by device 475 with the new UUID.

5. **Crash** (line 7549): The code attempts `mount_data.device = device.path` without checking if `device` is `None`, causing the AttributeError.

**Stack Trace:**
```
File "...pyanaconda/modules/storage/partitioning/manual/manual_module.py", line 84, in setup_kickstart
    mount_data.device = device.path
AttributeError: 'NoneType' object has no attribute 'path'
```

**Reproduction Scenario:**
This bug occurs when using manual partitioning with:
- BTRFS filesystem on an MD RAID array
- Reformatting an existing BTRFS volume (`reformat=True`)
- The mount point request retains the old device UUID instead of updating to the new device created during reformatting

**Suggested Fix:**
The code in `manual_module.py:84` needs either:
1. Null-checking before accessing `device.path`, OR
2. Properly updating mount point requests to reference the new device UUID when a device is reformatted

**Impact:**
Installation-blocking bug that prevents completing Fedora 44 installations when reformatting BTRFS volumes on MD RAID arrays.

Comment 8 Fedora Blocker Bugs Application 2026-04-16 10:19:26 UTC
Proposed as a Blocker for 44-final by Fedora user lruzicka using the blocker tracking app because:

 https://fedoraproject.org/wiki/Fedora_44_Beta_Release_Criteria#Custom_partitioning

Comment 9 Katerina Koukiou 2026-04-16 10:28:53 UTC
I do have an 'old' unmerged fix for this: https://github.com/rhinstaller/anaconda/pull/6767

Comment 10 Lukas Ruzicka 2026-04-16 10:29:54 UTC
On a repeated run, this did not happen any more and the installation completed fine, so it probably only occurs occasionally.
I am keeping the blocker status just for the sake of the discussion.

Comment 11 Katerina Koukiou 2026-04-16 15:02:17 UTC
I was never able to reporduce it, therefore I had incorrectly considered it fixed in F44.
However, I realized has been reported by more users for F44 (>10 bug reports). https://bugzilla.redhat.com/buglist.cgi?quicksearch=component%3Danaconda%20version%3D44%20NoneType&list_id=13666187

Since we have the fix ready, if the release skips by a week, please grant this a FE status if not a blocker.

Comment 13 Adam Williamson 2026-04-16 20:33:20 UTC
Discussed at 2026-04-16 Go/No-Go meeting, acting as a blocker review meeting: https://meetbot-raw.fedoraproject.org/meeting_matrix_fedoraproject-org/2026-04-16/f44-final-go-no-go-meeting.2026-04-16-18.00.html . Accepted as a blocker as a violation of various storage criteria in the case you are unlucky enough to hit this bug; we do believe the 31 bugs listed in the search above, plus others closed as dupes, are likely all (or almost all) this bug, and that seemed like enough reports to count it as a blocker.

Katerina, please do a build with the fix ASAP, thanks!

Comment 14 Fedora Update System 2026-04-17 10:25:21 UTC
FEDORA-2026-de98ec2a35 (anaconda-44.30-2.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-de98ec2a35

Comment 15 Fedora Update System 2026-04-18 01:32:02 UTC
FEDORA-2026-de98ec2a35 has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-de98ec2a35`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-de98ec2a35

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

Comment 16 Katerina Koukiou 2026-04-20 06:17:17 UTC
*** Bug 2438995 has been marked as a duplicate of this bug. ***

Comment 17 Katerina Koukiou 2026-04-20 06:17:18 UTC
*** Bug 2445392 has been marked as a duplicate of this bug. ***

Comment 18 Katerina Koukiou 2026-04-20 06:17:39 UTC
*** Bug 2445486 has been marked as a duplicate of this bug. ***

Comment 19 Katerina Koukiou 2026-04-20 06:18:02 UTC
*** Bug 2446431 has been marked as a duplicate of this bug. ***

Comment 20 Katerina Koukiou 2026-04-20 06:18:14 UTC
*** Bug 2446971 has been marked as a duplicate of this bug. ***

Comment 21 Katerina Koukiou 2026-04-20 06:18:17 UTC
*** Bug 2446890 has been marked as a duplicate of this bug. ***

Comment 22 Katerina Koukiou 2026-04-20 06:18:57 UTC
*** Bug 2446972 has been marked as a duplicate of this bug. ***

Comment 23 Katerina Koukiou 2026-04-20 06:19:03 UTC
*** Bug 2446973 has been marked as a duplicate of this bug. ***

Comment 24 Katerina Koukiou 2026-04-20 06:19:07 UTC
*** Bug 2446974 has been marked as a duplicate of this bug. ***

Comment 25 Katerina Koukiou 2026-04-20 06:19:15 UTC
*** Bug 2447221 has been marked as a duplicate of this bug. ***

Comment 26 Katerina Koukiou 2026-04-20 06:19:19 UTC
*** Bug 2448356 has been marked as a duplicate of this bug. ***

Comment 27 Katerina Koukiou 2026-04-20 06:19:25 UTC
*** Bug 2448357 has been marked as a duplicate of this bug. ***

Comment 28 Katerina Koukiou 2026-04-20 06:19:50 UTC
*** Bug 2449463 has been marked as a duplicate of this bug. ***

Comment 29 Katerina Koukiou 2026-04-20 06:19:52 UTC
*** Bug 2450184 has been marked as a duplicate of this bug. ***

Comment 30 Katerina Koukiou 2026-04-20 06:20:31 UTC
*** Bug 2450375 has been marked as a duplicate of this bug. ***

Comment 31 Katerina Koukiou 2026-04-20 06:20:32 UTC
*** Bug 2450430 has been marked as a duplicate of this bug. ***

Comment 32 Katerina Koukiou 2026-04-20 06:20:33 UTC
*** Bug 2452770 has been marked as a duplicate of this bug. ***

Comment 33 Katerina Koukiou 2026-04-20 06:20:34 UTC
*** Bug 2452856 has been marked as a duplicate of this bug. ***

Comment 34 Katerina Koukiou 2026-04-20 06:20:47 UTC
*** Bug 2452857 has been marked as a duplicate of this bug. ***

Comment 35 Katerina Koukiou 2026-04-20 06:22:14 UTC
*** Bug 2457287 has been marked as a duplicate of this bug. ***

Comment 36 Katerina Koukiou 2026-04-20 06:22:22 UTC
*** Bug 2454386 has been marked as a duplicate of this bug. ***

Comment 37 Katerina Koukiou 2026-04-20 06:22:34 UTC
*** Bug 2452919 has been marked as a duplicate of this bug. ***

Comment 38 Katerina Koukiou 2026-04-20 06:22:45 UTC
*** Bug 2447701 has been marked as a duplicate of this bug. ***

Comment 39 Katerina Koukiou 2026-04-20 06:23:05 UTC
*** Bug 2459527 has been marked as a duplicate of this bug. ***

Comment 40 Katerina Koukiou 2026-04-20 06:23:06 UTC
*** Bug 2458429 has been marked as a duplicate of this bug. ***

Comment 41 Katerina Koukiou 2026-04-20 06:23:08 UTC
*** Bug 2455131 has been marked as a duplicate of this bug. ***

Comment 42 Katerina Koukiou 2026-04-20 06:23:09 UTC
*** Bug 2452862 has been marked as a duplicate of this bug. ***

Comment 43 Katerina Koukiou 2026-04-20 06:23:10 UTC
*** Bug 2447555 has been marked as a duplicate of this bug. ***

Comment 44 Katerina Koukiou 2026-04-20 06:23:18 UTC
*** Bug 2445989 has been marked as a duplicate of this bug. ***

Comment 45 Katerina Koukiou 2026-04-20 06:23:21 UTC
*** Bug 2445777 has been marked as a duplicate of this bug. ***

Comment 46 Katerina Koukiou 2026-04-20 06:23:24 UTC
*** Bug 2458844 has been marked as a duplicate of this bug. ***

Comment 47 Fedora Update System 2026-04-24 05:56:11 UTC
FEDORA-2026-de98ec2a35 (anaconda-44.30-2.fc44) has been pushed to the Fedora 44 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.