Bug 1412556
Summary: | [UPGRADE] 4.0 -> 4.1 engine upgrade fails - ERROR: column "mac_pool_id" contains null values | ||
---|---|---|---|
Product: | [oVirt] ovirt-engine | Reporter: | Gil Klein <gklein> |
Component: | Database.Core | Assignee: | Martin Mucha <mmucha> |
Status: | CLOSED DUPLICATE | QA Contact: | Pavel Stehlik <pstehlik> |
Severity: | urgent | Docs Contact: | |
Priority: | high | ||
Version: | 4.1.0 | CC: | bugs, danken, mperina |
Target Milestone: | ovirt-4.1.0-beta | Flags: | rule-engine:
ovirt-4.1+
rule-engine: blocker+ |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | http://resources.ovirt.org/repos/ovirt/experimental/4.1/latest.tested/rpm/el7/noarch/ovirt-engine-4.1.0-0.4.master.20170115090623.git8e588d9.el7.centos.noarch.rpm | Doc Type: | If docs needed, set a value |
Doc Text: |
upgrade script 04_01_0010_add_mac_pool_id_to_vds_group.sql assumed, that there cannot exist clusters without relation to some data center. Such clusters won't be able to run any VM and would have other serious problems, therefore it was assumed, that no one has this setup. This assumption was wrong and because of that db script failed on creation not null db constraint. After this fix upgrade works also for environments containing such clusters.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2017-01-23 13:11:27 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Network | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Gil Klein
2017-01-12 09:46:49 UTC
Dan, can you have someone look at this? null mac addresses are the result of bugs, which we cordially ignored in the past, and caused us lots of pain in debugging. In 4.1 we've added db-level protection, to make sure they do not infect us. Gil, can you provide your Engine credentials to mmucha? Martin may be able to write a tool to list buggy db rows in 4.0, so that a user can fix them prior to upgrade. script fails on line 17; where fails adding not null constraint. This means that preceding update statement did not remove all null values in cluster.mac_pool_id. I believe this problem is caused by unexpected existence of cluster, which is not part of any datacenter ( not sure why this should be valid, and how this worked in past, when all macs had scope of datacenter) Not sure if this is possible, but until script is fixed, you can assign cluster which does not belong to any datacenter to some newly created arbitrary data center and then run upgrade. (In reply to Dan Kenigsberg from comment #3) > null mac addresses are the result of bugs, which we cordially ignored in the > past, and caused us lots of pain in debugging. In 4.1 we've added db-level > protection, to make sure they do not infect us. > > Gil, can you provide your Engine credentials to mmucha? Sure, I emailed you both privately. > > Martin may be able to write a tool to list buggy db rows in 4.0, so that a > user can fix them prior to upgrade. updated original script in gerrit patch: 70108 (In reply to Gil Klein from comment #5) > (In reply to Dan Kenigsberg from comment #3) > > null mac addresses are the result of bugs, which we cordially ignored in the > > past, and caused us lots of pain in debugging. In 4.1 we've added db-level > > protection, to make sure they do not infect us. > > > > Gil, can you provide your Engine credentials to mmucha? > Sure, I emailed you both privately. > > > > Martin may be able to write a tool to list buggy db rows in 4.0, so that a > > user can fix them prior to upgrade. seems that in shared environment there's cluster without non-null storage_pool_id, thus it seems to be same issue as one in https://bugzilla.redhat.com/show_bug.cgi?id=1410189 I created cluster without link to DC on my env, and tried to to upgrade. Before patch 70108 it failed, but after this fix upgrade was successful. (In reply to Dan Kenigsberg from comment #3) > null mac addresses are the result of bugs, which we cordially ignored in the > past, and caused us lots of pain in debugging. In 4.1 we've added db-level > protection, to make sure they do not infect us. Please disregard my my comment 3. It refers to an unrelated issue. This bug seems like a dup of bug 1412556. Thanks for the doc suggestion, Martin, but no user has seen this script (as 4.1 is not released yet) so no need to document it. *** This bug has been marked as a duplicate of bug 1410189 *** |