Bug 904729

Summary: [webadmin] Wrong error is given when trying to decrease data center compatibility version
Product: Red Hat Enterprise Virtualization Manager Reporter: Ido Begun <ibegun>
Component: ovirt-engine-webadmin-portalAssignee: Ravi Nori <rnori>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, bazulay, dyasny, ecohen, hateya, iheim, oramraz, Rhev-m-bugs, ykaul, yzaslavs
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: sf11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 948448    
Attachments:
Description Flags
engine.log none

Description Ido Begun 2013-01-27 10:44:55 UTC
Created attachment 688376 [details]
engine.log

Description of problem:
A wrong error message is given when trying to decrease data center compatibility version.

Version-Release number of selected component (if applicable):
SF4 // rhevm-3.2.0-5.el6ev

How reproducible:
100%

Steps to Reproduce:
1. Create a 3.2 data center
2. Edit data center and set it to 3.1 
  
Actual results:
[Error while executing action: Cannot edit Repository. Compatibility version is invalid, previous value restored.]

Expected results:
[Error while executing action: Cannot decrease data center compatibility version.]
OR
Don't allow users to decrease compatibility version.

Additional info:
CanDoAction is reporting the correct reason of the action failure:
CanDoAction of action UpdateStoragePool failed. Reasons:VAR__TYPE__STORAGE__POOL,ACTION_TYPE_FAIL
ED_CANNOT_DECREASE_COMPATIBILITY_VERSION,VAR__ACTION__UPDATE

Comment 1 Haim 2013-01-27 10:48:30 UTC
should be blocked in UI.

Comment 3 Elad 2013-04-04 12:38:52 UTC
Checked on RHEVM-3.2 - SF12:
rhevm-webadmin-portal-3.2.0-10.17.master.el6ev.noarch

User cannot decrease data center compatibility version, the option is available.

Comment 4 Elad 2013-04-04 12:40:34 UTC
Checked on RHEVM-3.2 - SF12:
rhevm-webadmin-portal-3.2.0-10.17.master.el6ev.noarch

User cannot decrease data center compatibility version, ***the option is not available***

Comment 5 Itamar Heim 2013-06-11 08:48:18 UTC
3.2 has been released

Comment 6 Itamar Heim 2013-06-11 08:48:24 UTC
3.2 has been released

Comment 7 Itamar Heim 2013-06-11 08:48:28 UTC
3.2 has been released

Comment 8 Itamar Heim 2013-06-11 08:53:26 UTC
3.2 has been released

Comment 9 Itamar Heim 2013-06-11 09:24:05 UTC
3.2 has been released