Bug 2236433

Summary: anaconda only able to use btrfs volumes created for one mount point
Product: [Fedora] Fedora Reporter: lnie <lnie>
Component: anacondaAssignee: anaconda-maint
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: anaconda-maint, vslavik, vtrefny, w
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-05 08:26:20 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: 2143445    
Attachments:
Description Flags
anaconda.log
none
storage.log
none
screenshot
none
screencast
none
screencast1
none
screencast2 none

Description lnie 2023-08-31 09:13:41 UTC
I created a btrfs volume and try to have / and /home use it,but anaconda complains Duplicate device.I come back to the modify storage page,and created two btrfs volume,though I don't feel like to,but it still doesn't work,as the created two btrfs volume have the same name,as shown in the screenshot.

Reproducible: Always

Comment 1 lnie 2023-08-31 09:14:11 UTC
Created attachment 1986270 [details]
anaconda.log

Comment 2 lnie 2023-08-31 09:14:57 UTC
Created attachment 1986271 [details]
storage.log

Comment 3 lnie 2023-08-31 09:17:25 UTC
Created attachment 1986272 [details]
screenshot

Comment 4 lnie 2023-08-31 09:22:04 UTC
I have to rename one of the two btrfs volume to have it work.

Comment 5 lnie 2023-09-01 03:25:55 UTC
I think the gtk ui's user experience is much better:create sub volumes accordingly when users try to use that btrfs volume for different mount points.At least,blivet-gui should use different names when users create more than one brtfs volume.
Besides,I see bugs time from time if I use the work around in #Comment4,just as the attached screencast show: anaconda complaints that blivet is not valid,
but after I look into the modify storage page,I find blivet is there,the re-named (and encrypted?) volume is gone,but I failed to find the reproducer :(

Comment 6 lnie 2023-09-01 03:27:00 UTC
Created attachment 1986491 [details]
screencast

Comment 7 Fedora Blocker Bugs Application 2023-09-05 08:18:06 UTC
Proposed as a Freeze Exception for 39-beta by Fedora user lnie using the blocker tracking app because:

 This kind of violates:
https://fedoraproject.org/wiki/Fedora_39_Beta_Release_Criteria#Custom_partitioning

Comment 8 Vojtech Trefny 2023-09-05 08:26:20 UTC
I am closing this as "notabug" because from my point of view, Anaconda is behaving here as expected -- single btrfs volume without subvolumes is a "single device" and cannot be mounted twice, you need to create subvolumes to be able to do this. The WebUI in Anaconda is not able to create new devices (this includes btrfs subvolumes that are technically not devices) at all so users needs to create all devices manually (with blivet-gui, in terminal etc.) before entering the mount point assignment.

The issue with duplicate names when creating multiple volumes is tracked in https://bugzilla.redhat.com/show_bug.cgi?id=2237379

Comment 9 lnie 2023-09-07 04:13:16 UTC
> The WebUI in Anaconda is not able to create new devices
Thanks for your info,but can't it somehow call blivet to do the favor? Just like in gtk ui custom page.
I don't know the code of anaconda/blivet/blivet-gui, as a user,I *thought* it's not hard to have web ui "create sub volumes accordingly when users try to use that btrfs volume for different mount points" because of two reasons:
1)In gtk custom ui page,when you click "+" button,create a btrfs volume for "/",and then create another btrfs volume for "/home",the two volume will be merged to one,
  so I thought web ui could do vice verse:create sub volumes accordingly.As you may know,or you can see from the attached screencast,the volume name shown to user are the same:the parent volume' name
  and I thought anaconda could,or call blivet to create sub volumes when the single volume name is called more than once.
2)When I'm saying "I think the gtk ui's user experience is much better:create sub volumes accordingly when users try to use that btrfs volume for different mount points" I mean in blivet-gui,when users click "+" and set mount point more than once on the same volume,sub volumes will be created accordingly(screencast2),I mistook "+" as set mount point button when I was drawing that conclusion,sorry.

Comment 10 lnie 2023-09-07 04:16:38 UTC
Created attachment 1987438 [details]
screencast1

Comment 11 lnie 2023-09-07 04:17:17 UTC
Created attachment 1987439 [details]
screencast2