RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2052938 - Wrong total disk capacity and disk count reported for multipath devices in custom partitioning
Summary: Wrong total disk capacity and disk count reported for multipath devices in cu...
Keywords:
Status: CLOSED ERRATA
Alias: None
Deadline: 2023-02-07
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: anaconda
Version: 9.0
Hardware: All
OS: Linux
unspecified
low
Target Milestone: rc
: 9.0
Assignee: Jan Stodola
QA Contact: Release Test Team
Sagar Dubewar
URL:
Whiteboard:
Depends On:
Blocks: 1875375
TreeView+ depends on / blocked
 
Reported: 2022-02-10 10:07 UTC by Jiri Kortus
Modified: 2023-05-09 08:35 UTC (History)
16 users (show)

Fixed In Version: anaconda-34.25.2.8-1.el9
Doc Type: Bug Fix
Doc Text:
.The installer now displays correct total disk space in Custom partitioning with multipath or DDF RAID devices Previously, when Custom partitioning was selected in Installer on a system with a multipath or DDF RAID device, the total disk space was not reported correctly and member disk devices were listed as available for partitioning. With this update, the Custom partitioning in Installer reports correct value for total disk space and only allows to use the DDF RAID or multipath device as a whole.
Clone Of: 2017432
Environment:
Last Closed: 2023-05-09 07:35:38 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github rhinstaller anaconda pull 4524 0 None open Show only usable devices in custom partitioning 2023-01-25 13:13:22 UTC
IBM Linux Technology Center 196536 0 None None None 2022-02-25 15:01:05 UTC
Red Hat Issue Tracker RHELPLAN-111815 0 None None None 2022-02-10 10:12:47 UTC
Red Hat Issue Tracker RTT-5139 0 None None None 2023-01-25 14:42:23 UTC
Red Hat Issue Tracker RTT-5140 0 None None None 2023-01-25 14:42:28 UTC
Red Hat Product Errata RHBA-2023:2223 0 None None None 2023-05-09 07:35:54 UTC

Description Jiri Kortus 2022-02-10 10:07:46 UTC
+++ This bug was initially created as a clone of Bug #2017432 +++
This bug was cloned to address remaining flaws not fixed in the original one. The remaining issues are that when using several multipath devices (and some of them deselected) with custom partitioning, then:
- total disk capacity is wrong
- total disk count available for partitioning is wrong (selected mpath devices + all of the underlying devices)
- the list of disks available for partitioning is wrong (selected mpath devices + all of the underlying devices)

Reproducer:
1. Create a VM with 4 raw disk images, each of them connected as two SCSI/SATA drives with image sharing enabled and the same serial number for each pair (I used 0001-0004).
2. Start system installation and proceed to partitioning spoke.
3. Click on 'Add a disk button', select all of the mpathX devices and confirm the selection.
4. Deselect first two drives (e. g. mpatha, mpathb).
5. Select custom partitioning and proceed into the custom partitioning spoke.
6a. Check the amount of 'Total space'.
6b. Check the number of 'Selected storage devices' in the bottom part of the screen.
6c. Click on the 'X storage drives selected' link and check the list of available drives.

Actual results:
6a. The total disk space reported is wrong and accounts for a sum of the selected mpath devices (e. g. mpathc, mpathd) plus the underlying devices (e. g. sda, sdb, sdc, sdd).
6b. The number of selected storage devices is wrong (sum of the mpath devices plus the underlying devices, i. e. 6 instead of 2).
6c. The list of selected devices is wrong, i. e. contains both the mpath devices AND the underlying devices.

Expected results:
6a. The total disk space is just a sum of the mpath disks selected for partitioning in step 4.
6b. The number of selected drives is based only on the count of mpath disks selected for partitioning (not the underlying devices of the mpath disks).
6c. The list only contains the mpath disks, not the underlying devices.


* Here's a copy of the pre-verification comment from bug 2017432 just in case some more details could be useful:

Reproduced on RHEL-9.0.0-20220117.0 x86_64 / python3-blivet-3.4.0-11.el9 using a VM with 8 disks (using 10 GB and 3x 1 GB images, every image connected as two disks with identic serial numbers), resulting in 4 mpath devices:
- anaconda let me properly add all of the devices for partitioning (mpatha-mpathd)
- I could select just two of them (mpathc, mpathd) to be used for partitioning/installation
- in custom partitioning, the available space was reported properly (11 GiB = 10 + 1 GiB), but at the same time the total space value was incorrect (33 GiB = 10 GiB sda + 10 GiB sdb + 2*1 GiB sdc/sdd + 10 GiB mpathc + 1 GiB mpathd)
- the number of available storage devices was incorrect - 6 (should be 4), the list consisted of mpathc, mpathd, sda, sdb, sdc, sdd
- when I tried to create /boot partition, it resulted in an error and showing the details just resulted in a window with '/dev/sda'

Pre-verification on RHEL-9.0.0-20220209.d.0 / python3-blivet-3.4.0-12.el9 using the same setup was successful in the main point (partitioning), but still not flawless:
- anaconda let me properly add all of the devices for partitioning (mpatha-mpathd)
- I could select just two of them (mpathc, mpathd) to be used for partitioning/installation
- the available space was again reported correctly, but at the same time the total space was incorrect again (33 GiB)
- the number of available storage devices was still incorrect (6)
- the important change is that I was able to create partitioning and successfully finish the installation + boot the system.

Comment 3 Vojtech Trefny 2022-02-15 07:35:49 UTC
Moving this back to Anaconda -- the underlying issue is still the same, Anaconda selects both the disks and the mpath device, the blivet fix only excludes the disks in blivet, the total size and selected disks needs to be fixed in the UI.

Comment 4 Jan Stodola 2022-02-25 15:30:50 UTC
Hi Thomas,
adding the ibmconf group to this bug causes it to be private. I'm removing the group so that the bug stays public and visible to anyone. Thanks for understanding.

Comment 5 Thomas Staudt 2022-02-28 07:28:22 UTC
(In reply to Jan Stodola from comment #4)
> Hi Thomas,
> adding the ibmconf group to this bug causes it to be private. I'm removing
> the group so that the bug stays public and visible to anyone. Thanks for
> understanding.

Hi Jan,

understood - my apologies, it became a kind of a reflex to set the group.

Comment 6 IBM Bug Proxy 2022-03-04 17:00:27 UTC
------- Comment From thorsten.diehl.com 2022-03-04 11:52 EDT-------
Any updates here?
The problem exists in the same way on RHEL9.0 Nightly 20220220 with python3-blivet-3.4.0-12.el9.
(Only the issue with the /boot partiton is solved.) See also https://bugzilla.linux.ibm.com/show_bug.cgi?id=194985

Comment 7 Jan Stodola 2022-03-04 17:15:19 UTC
Hello, this bug is planned to be fixed in RHEL-9.1.

Comment 8 IBM Bug Proxy 2022-08-23 12:00:40 UTC
------- Comment From thorsten.diehl.com 2022-08-23 07:56 EDT-------
JFI and for reminder: This bus is not yet fixed in Nightly20220808.

Jan, do you have an outlook?

Comment 9 Jan Stodola 2022-08-23 12:29:31 UTC
Thorsten, unfortunately we haven't fixed this bug in 9.1 due to it's low severity. I'm moving this bug to RHEL-9.2 planning.

Comment 10 IBM Bug Proxy 2022-08-24 08:01:11 UTC
------- Comment From thorsten.diehl.com 2022-08-24 03:56 EDT-------
(In reply to comment #10)
> Thorsten, unfortunately we haven't fixed this bug in 9.1 due to it's low
> severity. I'm moving this bug to RHEL-9.2 planning.

Hi Jan, thanks.
While 9.1 might become used more widely, please consider to document this in RH customer portal (KB, errata, ...), but it's up to you.

Comment 11 Jan Stodola 2022-08-24 12:54:17 UTC
Hi Sagar,
I've proposed a doc text for this bug to be documented as a known issue. Can you please check it and prepare it for the release notes?

Comment 15 IBM Bug Proxy 2023-01-17 16:30:37 UTC
------- Comment From thorsten.diehl.com 2023-01-17 11:24 EDT-------
(In reply to comment #10)
> Thorsten, unfortunately we haven't fixed this bug in 9.1 due to it's low
> severity. I'm moving this bug to RHEL-9.2 planning.

Hi Jan, do you know whether we can expect a code fix for that with RHEL9.2?

Comment 16 Jan Stodola 2023-01-19 16:48:57 UTC
Hi Thorsten, the bug is currently not expected to be fixed in RHEL-9.2.

Comment 19 Jan Stodola 2023-01-25 13:13:23 UTC
It turned out to be an easy fix and we will fix it in RHEL-9.2.

PR: https://github.com/rhinstaller/anaconda/pull/4524

Comment 20 IBM Bug Proxy 2023-01-25 15:01:26 UTC
------- Comment From thorsten.diehl.com 2023-01-25 09:57 EDT-------
Jan, that sounds good, thank you!

Comment 30 IBM Bug Proxy 2023-03-10 12:20:37 UTC
------- Comment From thorsten.diehl.com 2023-03-10 07:10 EDT-------
Successfully verified on RHEL9.2-N20230220, which has anaconda-34.25.2.8-1.el9.
Successfully verified on RHEL9.2-N20230305, which has anaconda-34.25.2.9-1.el9.
Closing this bug.

Comment 32 errata-xmlrpc 2023-05-09 07:35:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (anaconda bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2223


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