Bug 1547038 - Upgrade from 4.3 to 4.4 will fail if there are versioned templates in database
Summary: Upgrade from 4.3 to 4.4 will fail if there are versioned templates in database
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Network
Version: 4.3.0
Hardware: Unspecified
OS: Linux
high
high
Target Milestone: ovirt-4.4.0
: ---
Assignee: Dominik Holler
QA Contact: Michael Burman
URL:
Whiteboard:
: 1687707 (view as bug list)
Depends On: 1528316 1684586
Blocks: 1687707 1688781 1750657
TreeView+ depends on / blocked
 
Reported: 2018-02-20 11:54 UTC by Dan Kenigsberg
Modified: 2020-05-20 20:04 UTC (History)
20 users (show)

Fixed In Version:
Clone Of: 1528316
: 1687707 1688781 (view as bug list)
Environment:
Last Closed: 2020-05-20 20:04:19 UTC
oVirt Team: Network
Embargoed:
pm-rhel: ovirt-4.4+
pm-rhel: blocker+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 98357 0 master MERGED Remove vmt of vm_interface 2021-01-05 13:27:10 UTC

Description Dan Kenigsberg 2018-02-20 11:54:26 UTC
+++ This bug was initially created as a clone of Bug #1528316 +++


As explained in https://bugzilla.redhat.com/show_bug.cgi?id=1528316#c4 our vm_interface has two fields (vm_guid and vmt_guid) referring to the same table, and we should eliminate this.

Comment 1 Red Hat Bugzilla Rules Engine 2018-02-20 11:54:41 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 2 Yaniv Kaul 2018-02-21 08:11:31 UTC
Is this a bug or a feature?

Comment 3 eraviv 2018-02-22 06:54:53 UTC
This is technical debt of normalizing the db and aligning the engine accordingly, with no customer facing effects (hopefully...)

Comment 4 Yaniv Lavi 2018-08-29 08:12:03 UTC
This seems like a risky change with limited benefit, therefore for now.

Comment 5 Dominik Holler 2019-03-06 09:04:49 UTC
*** Bug 1684586 has been marked as a duplicate of this bug. ***

Comment 6 Dominik Holler 2019-03-06 14:51:50 UTC
Steps to Reproduce on oVirt 4.3:
1. Create a VM with a vNIC
2. Create a template of this VM
3. Create a subversion of the template
4. Run engine-setup


Actual results:
[ INFO  ] Checking the Engine database consistency
[ ERROR ] Failed to execute stage 'Setup validation': Failed checking Engine database: an exception occurred while validating the Engine database, please check the logs for getting more info:
         Constraint violation found in  vm_interface (vmt_guid) |1


Expected results:
engine-setup succeeds

Comment 7 Dominik Holler 2019-03-08 22:02:23 UTC
*** Bug 1685890 has been marked as a duplicate of this bug. ***

Comment 8 Martin Perina 2019-03-12 07:54:33 UTC
Removing CodeChange and updating title as this is an upgrade blocker

Comment 9 Martin Perina 2019-03-12 08:03:38 UTC
Ahh, sorry I've missed that we have BZ1684586 to track that issue in 4.3

Comment 10 Martin Perina 2019-03-12 08:04:41 UTC
*** Bug 1687707 has been marked as a duplicate of this bug. ***

Comment 12 Dominik Holler 2019-03-26 09:22:20 UTC
QE is required to test ovirt-dwh to ensure the related code change does not introduce regressions.

Comment 13 Michael Burman 2019-10-27 12:25:20 UTC
Verified on - rhvm-4.4.0-0.4.master.el7.noarch
rhvm-4.3.7.0-0.1.el7.noarch >> rhvm-4.4.0-0.4.master.el7.noarch

Comment 14 Sandro Bonazzola 2020-05-20 20:04:19 UTC
This bugzilla is included in oVirt 4.4.0 release, published on May 20th 2020.

Since the problem described in this bug report should be
resolved in oVirt 4.4.0 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


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