Bug 2182351 - [RFE] Expose mpath device type in localvolumeset creation
Summary: [RFE] Expose mpath device type in localvolumeset creation
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: management-console
Version: 4.11
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ODF 4.14.0
Assignee: Sanjal Katiyar
QA Contact: Prasad Desala
URL:
Whiteboard:
Depends On:
Blocks: 2244409
TreeView+ depends on / blocked
 
Reported: 2023-03-28 10:55 UTC by Javier Coscia
Modified: 2023-12-11 06:57 UTC (History)
10 users (show)

Fixed In Version: 4.14.0-156
Doc Type: Enhancement
Doc Text:
LSO's `LocalVolumeSet` and `LocalVolumeDiscovery` CRs now support `mpath` device types To select `mpath` as the device type, go to *Create a new StorageClass using local storage devices* > *Create local volume set*, expand *Advanced*, select *Mpath* from *Device type* dropdown. The following combinations are available from the *Device type* dropdown: - Only "disk" - Only "part" - Both "disk" + "part" - Only "mpath"
Clone Of:
Environment:
Last Closed: 2023-11-08 18:50:04 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github red-hat-storage odf-console pull 1022 0 None Merged add mpath for LSO device types 2023-09-05 08:17:55 UTC
Github red-hat-storage odf-console pull 1031 0 None Merged Bug 2182351: [release-4.14] add mpath for LSO device types 2023-09-05 08:57:00 UTC
Github red-hat-storage odf-console pull 1032 0 None Merged Bug 2182351: [release-4.14-compatibility] add mpath for LSO device types 2023-10-19 09:36:48 UTC
Github red-hat-storage odf-console pull 1082 0 None open Fix mpath filtering issue 2023-10-19 08:08:48 UTC
Github red-hat-storage odf-console pull 1084 0 None open Bug 2182351: [release-4.14] Fix mpath filtering issue 2023-10-19 09:34:56 UTC
Github red-hat-storage odf-console pull 1085 0 None open Bug 2182351: [release-4.14-compatibility] Fix mpath filtering issue 2023-10-19 09:35:09 UTC
Red Hat Product Errata RHSA-2023:6832 0 None None None 2023-11-08 18:51:47 UTC

Description Javier Coscia 2023-03-28 10:55:22 UTC
Description of problem (please be detailed as possible and provide log
snippests):

- When creating the Local Volume Set for StorageSystem CR in ODF, the DeviceType Options are Disk and Part.
- mpath device type is missing from the list

Version of all relevant components (if applicable):

- OCP 4.11
- ODF 4.11


Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?

- No

Is there any workaround available to the best of your knowledge?

- There's a workaround where you configure the LocalVolumeSet CR manually and include mpath as devicetype.
- This allows you to build the StorageClass to be used as existing during the creation of the storageSystem CR in ODF.


Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?

- 1

Can this issue reproducible?

- Yes

Can this issue reproduce from the UI?

- Yes

If this is a regression, please provide more details to justify this:


Steps to Reproduce:
1. Provision an OCP cluster.
2. Storage nodes provisioned with extra disks with multipath enabled
3. Install LocalStorageOperator
4. Deploy ODF storageSystem through the UI.


Actual results:

There's no possibility to add mpath devicetype in the web UI while configuring the storageSystem CR for ODF

Expected results:

ODF Wizard should expose / allow mpath device for the LocalVolumeSet to be created successfully.

Additional info:

LocalVolumeSet PR: https://github.com/openshift/local-storage-operator/pull/356
LocalVolumeDiscovery Jira: https://issues.redhat.com/browse/OCPBUGS-10884

Comment 2 Sanjal Katiyar 2023-03-28 14:23:21 UTC
Hi,
Since this BZ is opened on the UI side, we first need to ensure whether it is supported from the backend or not.
UI creates "LocalVolumeDiscovery" CR during the StorageSystem deployment steps and based on the output of "LocalVolumeDiscoveryResult" CR (status.discoveredDevices[n].type) it figures out the available devices of particular supported types (currently "disk" and "part").

1. So, my very first question will be, does "LocalVolumeDiscovery"/ and "LocalVolumeDiscoveryResult" CRs themselves support device types "mpath" ??
2. Second doubt is about the "workaround" mentioned in the description. After applying this manual process, was created StorageCluster got healthy and we got 3 OSDs as expected (here I am trying to make sure that rook supports "mpath" devices as well) ??

Thanks.

Comment 3 Sanjal Katiyar 2023-03-28 14:24:47 UTC
(In reply to Sanjal Katiyar from comment #2)
> Hi,
> Since this BZ is opened on the UI side, we first need to ensure whether it
> is supported from the backend or not.
> UI creates "LocalVolumeDiscovery" CR during the StorageSystem deployment
> steps and based on the output of "LocalVolumeDiscoveryResult" CR
> (status.discoveredDevices[n].type) it figures out the available devices of
> particular supported types (currently "disk" and "part").
> 
> 1. So, my very first question will be, does "LocalVolumeDiscovery"/ and
> "LocalVolumeDiscoveryResult" CRs themselves support device types "mpath" ??
> 2. Second doubt is about the "workaround" mentioned in the description.
> After applying this manual process, was created StorageCluster got healthy
> and we got 3 OSDs as expected (here I am trying to make sure that rook
> supports "mpath" devices as well) ??
> 
> Thanks.

Please feel free to add someone from the LSO team, in case we are not sure of point 1. mentioned above !

Comment 4 Javier Coscia 2023-03-28 15:09:24 UTC
Hi Sanjal,

Thanks for looking at this request.

(In reply to Sanjal Katiyar from comment #2)
> Hi,
> Since this BZ is opened on the UI side, we first need to ensure whether it
> is supported from the backend or not.
> UI creates "LocalVolumeDiscovery" CR during the StorageSystem deployment
> steps and based on the output of "LocalVolumeDiscoveryResult" CR
> (status.discoveredDevices[n].type) it figures out the available devices of
> particular supported types (currently "disk" and "part").

Thanks for clarifying this part, I thought that, after the LocalVolumeDiscovery CR, 
you could define the device types for LocalVolumeSet to be created and that this 
setting was independent of LocalVolumeDiscovery, but I understand that the deviceType,
while creating the storageSystem CR, comes from the LocalVolumeDiscoveryResults only.

> 
> 1. So, my very first question will be, does "LocalVolumeDiscovery"/ and
> "LocalVolumeDiscoveryResult" CRs themselves support device types "mpath" ??

Not yet, I've filled https://issues.redhat.com/browse/OCPBUGS-10884 for this.

> 2. Second doubt is about the "workaround" mentioned in the description.
> After applying this manual process, was created StorageCluster got healthy
> and we got 3 OSDs as expected (here I am trying to make sure that rook
> supports "mpath" devices as well) ??

It is correct.
I can ask for an ODF must-gather to collect more information about this point if you need

Comment 5 Sanjal Katiyar 2023-03-28 15:21:51 UTC
Hi @etamir,
Wdyt about this BZ, is it something we should explore from ODF UI and LSO side in future releases or we don't want to support "mpath" device types from the ODF's side and want customers (if any) to use workaround or any other CLI method ??

Comment 13 Sanjal Katiyar 2023-08-24 16:53:44 UTC
Hi Eran,

So fix on LSO's LocalVolumeDiscovery side is merged for LSO 4.14 but there is one limitation currently with LocalVolumeDiscoveryResult CR and since UI uses LocalVolumeDiscoveryResult we might have to update UI + documentation accordingly.

So, issue is that: https://issues.redhat.com/browse/OCPBUGS-10884?focusedId=22855634&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-22855634, LocalVolumeDiscoveryResult CR reports unique devices for types "disk" and "part" but in case of "mpath" it could have an overlap (with no way to differentiate as of now).

As an UI solution LSO team's proposal is to: https://issues.redhat.com/browse/STOR-1430, make sure user can only select "disk" or "part" or "disk+part" or "mpath" from the "Device type" filter dropdown.

Are you okay to move forward and update ODF UI with this, if so do you have any preference whether to pick this up for ODF 4.14 or 4.15 release ? Or, in case you see any issue we can loop in someone from LSO team on this BZ as well (please let me know if that's the case).

Comment 17 Sanjal Katiyar 2023-09-05 06:00:04 UTC
PR is merged in master, need acks if we are planning to take it for 4.14 release...

Comment 20 Sanjal Katiyar 2023-09-05 09:11:20 UTC
Updated "Doc Text", adding need_info on @olakra just to keep doc team in loop.

Changes are while creation of a new StorageSystem of "Create a new StorageClass using local storage devices" Backing storage type,
on "Create local volume set" wizard step,
for "Advanced" filtering option for "Device type" multi-select dropdown.

UI only restriction (because UI used LocalVolumeDiscovery CR): "Mpath" type selection is exclusive and cannot be used with other device types.

Comment 24 Sanjal Katiyar 2023-10-19 08:19:08 UTC
sent PR for master, will get it merged and backported to 4.14 asap !

just adding for reference: UI only selects the disks which are in "Available" state and matches one of these types: "disk" or "part" or "mpath".

Comment 30 errata-xmlrpc 2023-11-08 18:50:04 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 (Important: Red Hat OpenShift Data Foundation 4.14.0 security, enhancement & bug fix 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/RHSA-2023:6832


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