Bug 1951895

Summary: Add validation when creating storage domain with disperse volume type
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Ritesh Chikatwar <rchikatw>
Component: rhhiAssignee: Ritesh Chikatwar <rchikatw>
Status: CLOSED CURRENTRELEASE QA Contact: SATHEESARAN <sasundar>
Severity: low Docs Contact:
Priority: high    
Version: rhhiv-1.8CC: bugs, godas, rcyriac, rhs-bugs, sasundar, vdas
Target Milestone: ---Keywords: ZStream
Target Release: RHHI-V 1.8.z Batch Update 6   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: rhv-4.4.7-4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1951894 Environment:
Last Closed: 2021-07-23 08:43:32 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: 1951894    
Bug Blocks:    

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>