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

Bug 1136789

Summary: [engine-backend] Gluster storage domain is enabled in GUI in < 3.3 compatibility versions DCs
Product: [Retired] oVirt Reporter: Elad <ebenahar>
Component: ovirt-engine-coreAssignee: Amit Aviram <aaviram>
Status: CLOSED CURRENTRELEASE QA Contact: lkuchlan <lkuchlan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.5CC: aaviram, acanan, amureini, bugs, ecohen, gklein, rbalakri, tnisan, yeylon
Target Milestone: m1   
Target Release: 3.6.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: ovirt-engine-3.6.0-0.0.master.20150412172306.git55ba764 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:
: 1202268 (view as bug list) Environment:
Last Closed: 2015-11-04 11:17:35 UTC 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:    
Bug Blocks: 1202268    
Attachments:
Description Flags
engine.log
none
engine.log+image none

Description Elad 2014-09-03 10:18:55 UTC
Created attachment 934032 [details]
engine.log

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

Comment 1 Amit Aviram 2015-03-09 15:38:21 UTC
The problem here is actually that specifically Gluster storage is not supported in versions lower than 3.4, changing the bug's summery.

Comment 2 Allon Mureinik 2015-03-15 20:17:34 UTC
Amit, this patch changes a user visible behavior. Can you please add the relevant doctext to describe it?
Thanks!

Comment 3 lkuchlan 2015-04-20 09:43:42 UTC
Created attachment 1016277 [details]
engine.log+image

Tested using ovirt-engine-3.6.0-0.0.master.20150412172306.git55ba764
Creating storage type Posix is still possible

Comment 4 Aharon Canan 2015-04-20 09:48:52 UTC

(In reply to lkuchlan from comment #3)
> Created attachment 1016277 [details]
> engine.log+image
> 
> Tested using ovirt-engine-3.6.0-0.0.master.20150412172306.git55ba764
> Creating storage type Posix is still possible

We are talking about gluster storage domain and not posix.
anyway, Following the verification on https://bugzilla.redhat.com/show_bug.cgi?id=1202268

Verified.

Comment 5 Sandro Bonazzola 2015-11-04 11:17:35 UTC
oVirt 3.6.0 has been released on November 4th, 2015 and should fix this issue.
If problems still persist, please open a new BZ and reference this one.