+++ 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:
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
The dependent oVirt bug is already verified.
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."
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>