Bug 1326421

Summary: Prevent upgrade to 4.0 if datacenters and clusters older than 3.6 are managed
Product: [oVirt] ovirt-engine Reporter: Sandro Bonazzola <sbonazzo>
Component: Setup.EngineAssignee: Allon Mureinik <amureini>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Belka <jbelka>
Severity: urgent Docs Contact:
Priority: high    
Version: 4.0.0CC: amureini, bgraveno, bugs, dmoessne, michal.skrivanek, sbonazzo
Target Milestone: ovirt-4.0.0-alphaFlags: rule-engine: ovirt-4.0.0+
rule-engine: planning_ack+
sbonazzo: devel_ack+
pstehlik: testing_ack+
Target Release: 4.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Deprecated Functionality
Doc Text:
Red Hat Virtualization Manager 4.0 does not support data center or cluster compatibility levels 3.5 or lower. A data center or cluster compatibility version of 3.5 or lower will prevent an upgrade to Red Hat Virtualization 4.0.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-05 07:58:33 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:
Bug Depends On:    
Bug Blocks: 1343898    

Description Sandro Bonazzola 2016-04-12 15:45:10 UTC
Description of problem:
with https://gerrit.ovirt.org/#/c/55752/ support for datacenters older than 3.6 will be dropped. We should stop the upgrade and tell user to upgrade datacenters first to at least 3.6, before upgrading engine.

Comment 1 Michal Skrivanek 2016-04-13 05:25:49 UTC
Same for Cluster level

Comment 2 Sandro Bonazzola 2016-04-14 10:46:01 UTC
Assigning to Allon who already pushed a patch including a fix for this.

Comment 3 Michal Skrivanek 2016-05-14 07:19:38 UTC
how is this MODIFIED with patch 55752 only? It just removes <=3.5 code from engine but there's no upgrade code to stop users from upgrading when they have 3.5 clusters/DCs. Is there a patch missing?

Comment 5 Michal Skrivanek 2016-05-20 14:11:54 UTC
Ah, I missed that. Thanks. Just beware it won't be enough in the next version since the introduction of a per VM cluster level override

Comment 6 Allon Mureinik 2016-06-14 11:50:51 UTC
The doctext claimed that "Red Hat Virtualization Manager 4.0 does not support data center or cluster compatibility levels 3.6 or lower.", implying that 3.6 clusters/DCs aren't supported. This is /not/ correct - 3.6 clusters/DCs are supported, compatibility version lower than that (i.e., **3.5 or lower** are not.

I fixed the numbering and reset the flag to ? to make sure someone from the documentation team confirms this phrasing.

Comment 7 daniel 2016-06-25 09:35:33 UTC
Documentation about this bug in https://access.redhat.com/documentation/en/red-hat-virtualization/4.0-beta/release-notes/ is wrong since it states 3.6 cannot be upgraded:

---
BZ#1326421
Red Hat Virtualization Manager 4.0 does not support data center or cluster compatibility levels 3.6 or lower. A data center or cluster compatibility version of 3.6 or lower will prevent an upgrade to Red Hat Virtualization 4.0.
---

To my understanding this should be 3.5 and lower

Comment 8 Allon Mureinik 2016-06-26 02:59:30 UTC
(In reply to dmoessne from comment #7)
> Documentation about this bug in
> https://access.redhat.com/documentation/en/red-hat-virtualization/4.0-beta/
> release-notes/ is wrong since it states 3.6 cannot be upgraded:
> 
> ---
> BZ#1326421
> Red Hat Virtualization Manager 4.0 does not support data center or cluster
> compatibility levels 3.6 or lower. A data center or cluster compatibility
> version of 3.6 or lower will prevent an upgrade to Red Hat Virtualization
> 4.0.
> ---
> 
> To my understanding this should be 3.5 and lower

You understanding is correct.
This seems to be the text provided before I corrected it in comment 6.

Byron - is there anything special that needs to be done to get the updated text pushed to the documentation, or will this be done automatically once the next beta/GA is released?

Comment 11 Jiri Belka 2016-07-01 11:10:37 UTC
ok, 4.0.0-19

...
[ ERROR ] Failed to execute stage 'Setup validation': Trying to upgrade from unsupported versions: 3.5
[ INFO  ] Stage: Clean up
          Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20160701130929-lhrkf9.log
[ INFO  ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20160701130943-setup.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Execution of setup failed
[root@10-34-61-116 ~]# rpm -qf `which engine-setup`
ovirt-engine-setup-base-4.0.0.6-0.1.el7ev.noarch

Comment 12 Sandro Bonazzola 2016-07-05 07:58:33 UTC
oVirt 4.0.0 has been released, closing current release.