Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1202268

Summary: [RHEVM][engine-backend] Gluster storage domain is enabled in GUI in < 3.3 compatibility versions DCs
Product: Red Hat Enterprise Virtualization Manager Reporter: Allon Mureinik <amureini>
Component: ovirt-engineAssignee: Amit Aviram <aaviram>
Status: CLOSED CURRENTRELEASE QA Contact: Ori Gofen <ogofen>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: aaviram, acanan, amureini, bugs, ebenahar, gklein, lpeer, lsurette, pstehlik, rbalakri, Rhev-m-bugs, tnisan, yeylon, ykaul
Target Milestone: ovirt-3.6.0-rc   
Target Release: 3.6.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-3.6.0_qa1 Doc Type: Bug Fix
Doc Text:
Cause: Unsupported storage types for DC version appeared in domain type selection when adding a new storage domain to a DC. (Specifically, Posix and Gluster types which are supported only in later versions appeared in the selection box of lower DC versions which does not support them.) Consequence: The user was able to choose unsupported storage types for domains added for a low DC version. Fix: Storage types which appear in the selection box are only types which are supported in the selected DC's version. Result: It is now safe to select any type of storage when adding a new domain.
Story Points: ---
Clone Of: 1136789 Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1136789    
Bug Blocks:    

Description Allon Mureinik 2015-03-16 09:27:10 UTC
+++ This bug was initially created as a clone of Bug #1136789 +++

Description of problem:
I have a 3.5 setup with 3.1 DC.
When I created the DC, I picked 'shared' and then created a NFS data domain. 
New additional storage domain creation is possible to be created as different than NFS storage types (Gluster, Posix and local) in this 3.1 DC.

Version-Release number of selected component (if applicable):
ovirt-3.5
ovirt-engine-3.5.0-0.0.master.20140821064931.gitb794d66.el6.noarch

How reproducible:
Always

Steps to Reproduce:
On a 3.5 ovirt:
1. Create a 3.1 DC, pick 'shared' 
2. Create the first storage domain as NFS domain, wait for it to become active
3. Open 'New' storage domain for creating an additional storage domain.

Actual results:
For this 3.1 shared DC which supposed to be from NFS type, we are able to pick different storage types for the second storage domain in the DC. 

I picked Gluster and tried to create it. The operation failed because this DC compatibility version doesn't support Gluster domains.

2014-09-03 12:59:26,407 WARN  [org.ovirt.engine.core.bll.storage.AttachStorageDomainToPoolCommand] (ajp--127.0.0.1-8702-3) [e7a23d7] CanDoAction of action AttachStorageDomainToPool failed. Reasons:VAR__TYPE__STORA
GE__DOMAIN,VAR__ACTION__ATTACH,DATA_CENTER_GLUSTER_STORAGE_NOT_SUPPORTED_IN_CURRENT_VERSION


Expected results:
For lower than 3.4 DCs, engine shouldn't allow to pick different storage types for data domains. 

Additional info: engine.log

--- Additional comment from Amit Aviram on 2015-03-09 17:38:21 IST ---

The problem here is actually that specifically Gluster storage is not supported in versions lower than 3.4, changing the bug's summery.

--- Additional comment from Allon Mureinik on 2015-03-15 22:17:34 IST ---

Amit, this patch changes a user visible behavior. Can you please add the relevant doctext to describe it?
Thanks!
===============================================================================

This is a clone for RHEVM so it too can pick up the doctext.

Comment 1 Ori Gofen 2015-04-19 14:41:04 UTC
Verified on oVirt3.6 master, glusterfs is disabled on versions < 3.3 (3.3 is the first version which allows gluster domains)

Comment 2 Allon Mureinik 2016-03-10 10:42:28 UTC
RHEV 3.6.0 has been released, setting status to CLOSED CURRENTRELEASE

Comment 3 Allon Mureinik 2016-03-10 10:47:08 UTC
RHEV 3.6.0 has been released, setting status to CLOSED CURRENTRELEASE

Comment 4 Allon Mureinik 2016-03-10 12:03:41 UTC
RHEV 3.6.0 has been released, setting status to CLOSED CURRENTRELEASE