Bug 1693983

Summary: CLUSTER_CANNOT_DISABLE_GLUSTER_WHEN_CLUSTER_CONTAINS_VOLUMES
Product: [oVirt] ovirt-engine Reporter: Arsene Gschwind <arsene.gschwind>
Component: Frontend.WebAdminAssignee: Kaustav Majumder <kmajumde>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Lukas Svaty <lsvaty>
Severity: high Docs Contact:
Priority: high    
Version: 4.3.2.1CC: bugs, godas, gshereme, kborup, kmajumde, sabose
Target Milestone: ovirt-4.4.0Flags: pm-rhel: ovirt-4.4+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1730004 (view as bug list) Environment:
Last Closed: 2019-11-21 09:43:02 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: 1730004    

Description Arsene Gschwind 2019-03-29 08:28:26 UTC
Description of problem:

After updating oVirt from 4.2.8 to 4.3.2-1 we are unable to update the cluster version to 4.3, it returns the error: CLUSTER_CANNOT_DISABLE_GLUSTER_WHEN_CLUSTER_CONTAINS_VOLUMES
Next to them,the cluster setting "Enable Gluster Service" is unchecked and grayed out. Our installation is an HCI installation on top of gluster and the checkbox was checked before the update.
At this time we are unable to change any settings on the cluster page, it always return the same error. 

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Edit cluster settings
2. Save
3.

Actual results:
Throw error: CLUSTER_CANNOT_DISABLE_GLUSTER_WHEN_CLUSTER_CONTAINS_VOLUMES

Expected results:
Save and apply changes on the cluster

Additional info:
Engine.log2019-03-20 14:33:28,125+01 INFO  [org.ovirt.engine.core.bll.UpdateClusterCommand] (default task-59) [c93c7f4f-b9a3-4e10-82bf-f8bbda46cc87] Lock Acquired to object 'EngineLock:{exclusiveLocks='[25682477-0bd2-4303-a5fd-0ae9adfd276c=TEMPLATE]', sharedLocks='[119fad69-b4a2-441f-9056-354cd1b8a7aa=VM, 1f696eca-c0a0-48ff-8aa9-b977345b5618=VM, 95ee485d-7992-45b8-b1be-256223b5a89f=VM, 432ed647-c150-425e-aac7-3cb5410f4bc8=VM, 7c2646b1-8a4c-4618-b3c9-dfe563f29e00=VM, 629e40c0-e83b-47e0-82bc-df42ec310ca4=VM, 2e0741bd-33e2-4a8e-9624-a9b7bb70b664=VM, 136d0ca0-478c-48d9-9af4-530f98ac30fd=VM, dafaa8d2-c60c-44c8-b9a3-2b5f80f5aee3=VM, 2112902c-ed42-4fbb-a187-167a5f5a446c=VM, 5330b948-f0cd-4b2f-b722-28918f59c5ca=VM, 3f06be8c-8af9-45e2-91bc-9946315192bf=VM, 8cf338bf-8c94-4db4-b271-a85dbc5d6996=VM, c0be6ae6-3d25-4a99-b93d-81b4ecd7c9d7=VM, 8f4acfc6-3bb1-4863-bf97-d7924641b394=VM]'}'
2019-03-20 14:33:28,214+01 WARN  [org.ovirt.engine.core.bll.UpdateClusterCommand] (default task-59) [c93c7f4f-b9a3-4e10-82bf-f8bbda46cc87] Validation of action 'UpdateCluster' failed for user xxxx@yyy. Reasons: VAR__TYPE__CLUSTER,VAR__ACTION__UPDATE,CLUSTER_CANNOT_DISABLE_GLUSTER_WHEN_CLUSTER_CONTAINS_VOLUMES
2019-03-20 14:33:28,215+01 INFO [org.ovirt.engine.core.bll.UpdateClusterCommand] (default task-59) [c93c7f4f-b9a3-4e10-82bf-f8bbda46cc87] Lock freed to object 'EngineLock:{exclusiveLocks='[25682477-0bd2-4303-a5fd-0ae9adfd276c=TEMPLATE]', sharedLocks='[119fad69-b4a2-441f-9056-354cd1b8a7aa=VM, 1f696eca-c0a0-48ff-8aa9-b977345b5618=VM, 95ee485d-7992-45b8-b1be-256223b5a89f=VM, 432ed647-c150-425e-aac7-3cb5410f4bc8=VM, 7c2646b1-8a4c-4618-b3c9-dfe563f29e00=VM, 629e40c0-e83b-47e0-82bc-df42ec310ca4=VM, 2e0741bd-33e2-4a8e-9624-a9b7bb70b664=VM, 136d0ca0-478c-48d9-9af4-530f98ac30fd=VM, dafaa8d2-c60c-44c8-b9a3-2b5f80f5aee3=VM, 2112902c-ed42-4fbb-a187-167a5f5a446c=VM, 5330b948-f0cd-4b2f-b722-28918f59c5ca=VM, 3f06be8c-8af9-45e2-91bc-9946315192bf=VM, 8cf338bf-8c94-4db4-b271-a85dbc5d6996=VM, c0be6ae6-3d25-4a99-b93d-81b4ecd7c9d7=VM, 8f4acfc6-3bb1-4863-bf97-d7924641b394=VM]'}'

Comment 1 Arsene Gschwind 2019-04-08 10:17:10 UTC
Hi,

Any news about this issue, I'm not able to change any cluster settings.

Thanks.

Comment 2 Sahina Bose 2019-04-23 05:37:13 UTC
(In reply to Arsene Gschwind from comment #1)
> Hi,
> 
> Any news about this issue, I'm not able to change any cluster settings.
> 
> Thanks.

Looks like you will not be able to unless we reset the gluster service as enabled. 
Can you try to do this on the database - update cluster set gluster_service = 'true' where name = '<name of your cluster>';

Meanwhile, we will investigate how upgrade reset the gluster service checkbox

Comment 3 Arsene Gschwind 2019-05-12 15:50:23 UTC
I could set the gluster service as "enabled" and when I open the cluster edit dialog it appears as set but when I close this dialog without editing anything with the cancel butten it will reset to off the gluster service.

After setting the gluster service to "enabled" i've tried to update the cluster version to 4.3 but it return the following error:

Error while executing action: Update of cluster compatibility version failed because there are VMs/Templates [spfy-dc01] with incorrect configuration. To fix the issue, please go to each of them, edit, change the Custom Compatibility Version of the VM/Template to the cluster level you want to update the cluster to and press OK. If the save does not pass, fix the dialog validation. After successful cluster update, you can revert your Custom Compatibility Version change.

I went through all VMs and Template and could not figure out wich one is causing this error, all "custom compatibility version" are set to blank.

Any idea?