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.
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
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
(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.
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