Bug 1298976 - Error about lowering DC compatibility version appears when lowering cluster compatibility version
Summary: Error about lowering DC compatibility version appears when lowering cluster c...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 3.6.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: ovirt-3.6.3
: ---
Assignee: Eli Mesika
QA Contact: Petr Matyáš
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-15 15:11 UTC by Petr Matyáš
Modified: 2016-01-27 10:20 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-27 09:57:13 UTC
oVirt Team: Infra
oourfali: ovirt-3.6.z?
pmatyas: planning_ack?
pmatyas: devel_ack?
pmatyas: testing_ack?


Attachments (Terms of Use)
screenshot (35.77 KB, image/png)
2016-01-15 15:11 UTC, Petr Matyáš
no flags Details

Description Petr Matyáš 2016-01-15 15:11:53 UTC
Created attachment 1115177 [details]
screenshot

Description of problem:
When lowering cluster compat version, error appears with 'Cannot decrease data center compatibility version' even though data center compat version is lower than what I'm trying to set in cluster.

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

How reproducible:
always

Steps to Reproduce:
1. have DC with cluster on compat version 3.6
2. set DC compat version to 3.5 or 3.4
3. try to set cluster compat version to 3.5

Actual results:
error

Expected results:
exact/correct error with information what's wrong or compat version set to lower version

Additional info:
2016-01-15 16:06:32,359 WARN  [org.ovirt.engine.core.bll.UpdateVdsGroupCommand] (ajp-/127.0.0.1:8702-9) [88ebcf8] CanDoAction of action 'UpdateVdsGroup' failed for user admin@internal. Reasons: VAR__TYPE__CLUSTER,VAR__ACTION__UPDATE,ACTION_TYPE_FAILED_CANNOT_DECREASE_COMPATIBILITY_VERSION

Comment 1 Yaniv Kaul 2016-01-17 10:53:31 UTC
Engine logs?

Comment 2 Eli Mesika 2016-01-17 15:01:11 UTC
Not reproducible on master 
I guess that was fixed only on master and we have just to back-port the fix

Comment 3 Eli Mesika 2016-01-17 15:17:12 UTC
Not reproducible on the 3.6 branch as well 
Petr, I had followed the exact scenario from bug description, can you please check again and tell me how to reproduce ?

Comment 4 Petr Matyáš 2016-01-18 12:26:42 UTC
Sorry, I forgot to mention you have to have installed host in that cluster (not working with hosts either up or in maintenance)

Comment 5 Eli Mesika 2016-01-18 14:25:34 UTC
As far as I see, the option to decrease a cluster version was issued by commit 1f9fa54a82474f5037200c29800f82419dc1f356
Looking at that commit I found the following comment in code 

// decreasing of compatibility version is only allowed when no hosts exists, and not beneath the DC version

So, it seems that this is working as designed
As far as I understand, if you want to be supported when host is in Maintenance, a RFE suits more that a simple bug since this is working IMO exactly as expected.

Oved, please decide how should we proceed with this BZ

Comment 6 Oved Ourfali 2016-01-18 17:40:41 UTC
I agree. However, not sure it is a relevant use-case.
Moran?

Comment 7 Moran Goldboim 2016-01-27 09:57:13 UTC
(In reply to Oved Ourfali from comment #6)
> I agree. However, not sure it is a relevant use-case.
> Moran?

Working by design, closing.


Note You need to log in before you can comment on or make changes to this bug.