Bug 1417571

Summary: 'Remote data sync setup' should throw helpful message, if there are no gluster geo-rep is setup for the volume
Product: [oVirt] ovirt-engine Reporter: SATHEESARAN <sasundar>
Component: BLL.GlusterAssignee: Sahina Bose <sabose>
Status: CLOSED CURRENTRELEASE QA Contact: SATHEESARAN <sasundar>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.1.0CC: bugs
Target Milestone: ovirt-4.1.1Flags: rule-engine: ovirt-4.1+
rule-engine: planning_ack+
sabose: devel_ack+
sasundar: testing_ack+
Target Release: 4.1.1.3   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-21 09:45:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Gluster RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1277939    
Attachments:
Description Flags
screenshot showing the 'Remote Data Sync Setup' tab
none
Remote Data Sync Setup dialog none

Description SATHEESARAN 2017-01-30 10:14:41 UTC
Description of problem:
-----------------------
New data domain is created by using the gluster volume managed in the cluster.
The gluster volume doesn't had geo-replication setup. When clicking on the sub-tab, "Remote Data Sync Setup" after selecting the storage domain, there is no helpful message to explain that there are no geo-rep setup available.

Version-Release number of selected component (if applicable):
--------------------------------------------------------------
oVirt Engine Version: 4.1.0.3-0.0

How reproducible:
-----------------
Always

Steps to Reproduce:
-------------------
1. Create a cluster with virt + gluster capability enabled
2. Add 3 nodes and create a replica 3 volume, optimize for virt store
3. Now create a new gluster data domain and select 'use managed gluster volume' which will the list the gluster volumes managed in that cluster
4. Choose a gluster volume from the dropdown list
5. Complete creation of data domain
6. Select the gluster storage domain and select the sub tab 'Remote Data Sync Setup'

Actual results:
---------------
There is no useful message to explain the user that there is no geo-rep setup exists on the volume

Expected results:
-----------------
If there are no geo-replication sessions created, instead of the drop down, an alert should be shown that geo-replication session needs to be setup.
A link should be provided for user to navigate to Create Geo-replication Session.

Also there should be hint that if the geo-replication remote volume is not managed in that cluster, then hint the user to create geo-rep session from command line interface

Comment 1 SATHEESARAN 2017-01-30 10:19:18 UTC
Created attachment 1245816 [details]
screenshot showing the 'Remote Data Sync Setup' tab

Comment 2 SATHEESARAN 2017-01-30 10:19:58 UTC
Created attachment 1245817 [details]
Remote Data Sync Setup dialog

Comment 3 SATHEESARAN 2017-03-28 11:54:58 UTC
Tested with RHV 4.1.1-6 and useful error messages is shown, when the associated glusterfs storage domain doesn't have the geo-replication session

Error message is thrown as follows :

<snip>
There are no geo-replication sessions configured for this gluster volume. Before setting up the remote data synchronization schedule for storage domain, please create a geo-replication session for gluster volume associated with this storage domain.
</snip>