Bug 1956413
Summary: | HE restore fails. | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [oVirt] ovirt-hosted-engine-setup | Reporter: | Nikolai Sednev <nsednev> | ||||||||
Component: | General | Assignee: | Yedidyah Bar David <didi> | ||||||||
Status: | CLOSED NOTABUG | QA Contact: | Nikolai Sednev <nsednev> | ||||||||
Severity: | high | Docs Contact: | |||||||||
Priority: | high | ||||||||||
Version: | 2.5.0 | CC: | ahadas, bugs, didi, lsvaty, mperina, stirabos | ||||||||
Target Milestone: | ovirt-4.4.7 | Keywords: | Regression, ZStream | ||||||||
Target Release: | --- | Flags: | pm-rhel:
ovirt-4.4+
lsvaty: blocker- |
||||||||
Hardware: | x86_64 | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2021-05-20 13:00:27 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: | |||||||||||
Attachments: |
|
Description
Nikolai Sednev
2021-05-03 16:09:24 UTC
Created attachment 1779051 [details]
answers-20210503185122.conf
Created attachment 1779052 [details]
ovirt-hosted-engine-setup-20210503182906-b1kwig.log
There is following error in engine setup log: psql:/usr/share/ovirt-engine/dbscripts/create_views.sql:1000: ERROR: column vm_templates.effective_bios_type does not exist LINE 76: vm_templates.effective_bios_type AS effective_bios_type, ^ FATAL: Cannot execute sql command: --file=/usr/share/ovirt-engine/dbscripts/create_views.sql 2021-05-03 18:48:07,214+0300 ERROR otopi.plugins.ovirt_engine_setup.ovirt_engine.db.schema schema._misc:530 schema.sh: FATAL: Cannot execute sql command: --file=/usr/share/ovirt-engine/dbscripts/create_views.sql 2021-05-03 18:48:07,215+0300 DEBUG otopi.context context._executeMethod:145 method exception Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/otopi/context.py", line 132, in _executeMethod method['method']() File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/db/schema.py", line 532, in _misc raise RuntimeError(_('Engine schema refresh failed')) RuntimeError: Engine schema refresh failed Looking at the db scripts below patches are handling this table column: https://gerrit.ovirt.org/c/ovirt-engine/+/111656 - this is included in the 1st 4.4.6 build https://gerrit.ovirt.org/c/ovirt-engine/+/113462 - this is included in ovirt-engine-4.4.6.4 Are you sure that you are not that ovirt-engine version from the backup is the same as the version you are restoring to? (In reply to Martin Perina from comment #3) > Are you sure that you are not that ovirt-engine version from the backup is > the same as the version you are restoring to? See also bug 1932392. If we want to handle also the hosted-engine restore case - meaning, fail there early, and not just as a result of fixing bug 1932392 - perhaps open another bug (or we can use current, if that's the case, and then please change the subject). I think Martin's observation is right and then this particular case is not that interesting as the changes to the bios type field in the database were done before the GA of ovirt 4.4.6 Nikolai, please see comment 3 onward, and either close (as duplicate?) or change subject to clarify what you want to happen. IMO we can close for now - restoring to an older version is not supported. I agree. Very well, thanks. Closing current, for hosted-engine. For the engine, we'll handle in bug 1932392. For the current bug, once we fix that one, it means that if you try to restore to an older version, it will fail, and you'll hopefully get the error from engine-backup. In any case, that's not supported. |