Bug 1951895 - Add validation when creating storage domain with disperse volume type
Summary: Add validation when creating storage domain with disperse volume type
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: rhhi
Version: rhhiv-1.8
Hardware: All
OS: All
high
low
Target Milestone: ---
: RHHI-V 1.8.z Batch Update 6
Assignee: Ritesh Chikatwar
QA Contact: SATHEESARAN
URL:
Whiteboard:
Depends On: 1951894
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-21 06:54 UTC by Ritesh Chikatwar
Modified: 2021-07-23 08:43 UTC (History)
6 users (show)

Fixed In Version: rhv-4.4.7-4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1951894
Environment:
Last Closed: 2021-07-23 08:43:32 UTC
Embargoed:


Attachments (Terms of Use)

Description Ritesh Chikatwar 2021-04-21 06:54:47 UTC
+++ This bug was initially created as a clone of Bug #1951894 +++

Description of problem:
When creating storage domain it should fail for unsupported volume type.

Version-Release number of selected component (if applicable):
4.4.4


How reproducible:


Steps to Reproduce:
1. Login to administration portal
2. Navigate to Storage -> Domain -> New 
3. Select gluster type & disperse volume and submit

Actual results:
Storage Domain created.

Expected results:
It should fail as disperse volume is not supported

Additional info:

Comment 3 SATHEESARAN 2021-05-04 00:27:28 UTC
This bug is to prevent users from using disperse volume for ovirt/RHV storage domains,
which is not supported though. This information is clearly documented in the RHHI-V installation guide
that replicated, arbiter, distributed-replicated, distributed-arbiter and single brick volume are the only
supported volumes for RHHI-V deployments.

This was discussed in the last RHHI-V sprint planning meeting and decided to target this bug for 
the next z-stream release of ovirt

Comment 6 SATHEESARAN 2021-06-21 07:29:34 UTC
The dependent oVirt bug is already verified.

Comment 7 SATHEESARAN 2021-06-21 07:29:50 UTC
Tested with 4.4.7.4-0.9.el8ev

On the hyperconverged virt + gluster cluster, created a new gluster volume of type disperse from command line interface.
Tried to create a new storage domain with this gluster disperse volume and that failed with the warning:
"Error while executing action: Unsupported Gluster volume type, volume: disperse, volume type: DISPERSE. Please use the replicate type. To recover existing, migrate it to the supported type."

Comment 8 SATHEESARAN 2021-06-21 10:02:18 UTC
Corresponding error message is also found with the engine.log

<snip>
2021-06-21 07:24:13,791Z WARN  [org.ovirt.engine.core.bll.storage.connection.AddStorageServerConnectionCommand] (default task-3) [c36812ce-1933-4498-8547-b74ff5ce4d2f] Validation of action '
AddStorageServerConnection' failed for user admin@internal-authz. Reasons: VAR__ACTION__ADD,VAR__TYPE__STORAGE__CONNECTION,$volumeName disperse,$volumeType DISPERSE,ACTION_TYPE_FAILED_GLUSTE
R_STORAGE_CONNECTION_UNSUPPORTED_STORAGE_TYPE
</snip>


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