Bug 1371366

Summary: [TEXT] - "Trying to upgrade from unsupported versions" is confusing
Product: [oVirt] ovirt-engine Reporter: Yedidyah Bar David <didi>
Component: Setup.EngineAssignee: Yedidyah Bar David <didi>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Svaty <lsvaty>
Severity: unspecified Docs Contact:
Priority: high    
Version: 4.0.0CC: bugs, lsvaty, ylavi
Target Milestone: ovirt-4.0.5Flags: rule-engine: ovirt-4.0.z+
ylavi: planning_ack+
sbonazzo: devel_ack+
lsvaty: testing_ack+
Target Release: 4.0.5.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-18 07:35:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yedidyah Bar David 2016-08-30 04:37:21 UTC
Description of problem:

When running engine-setup 4.0 to upgrade a 3.6 system that has clusters/DCs with compatibility level <= 3.5, it aborts with:

Failed to execute stage 'Setup validation': Trying to upgrade from unsupported versions: 3.5

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

4.0.3

How reproducible:
Always

Steps to Reproduce:
1. Setup 3.5 engine and some hosts
2. Upgrade engine and hosts to 3.6, keep compatibility level 3.5
3. Try to upgrade to 4.0

Actual results:

See above

Expected results:

A more detailed and clear error message, e.g.:

The following clusters have compatibility level <= 3.5, please upgrade them:

cluster1

The following Data Centers have compatibility level <= 3.5, please upgrade them:

dc1

Additional info:

Comment 1 Lukas Svaty 2016-10-19 11:03:43 UTC
verified in ovirt-engine-setup-4.0.5.1-0.1.el7ev.noarch

[ ERROR ] The following Data Centers have a too old compatibility level, please upgrade them:
          DC35
          DC34
[ ERROR ] The following Clusters have a too old compatibility level, please upgrade them:
          DC35CL35
          DC34CL34
          DC34CL35
[ ERROR ] Failed to execute stage 'Setup validation': Trying to upgrade from unsupported versions: 3.4 3.5