Bug 1238795
Summary: | Upgrade from 3.5.2 to 3.5.3 experiencing database execution error | ||
---|---|---|---|
Product: | [Retired] oVirt | Reporter: | srepetsk <srepetsk> |
Component: | ovirt-engine-installer | Assignee: | Sandro Bonazzola <sbonazzo> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Lukas Svaty <lsvaty> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.5 | CC: | bugs, didi, ecohen, emesika, gklein, lsurette, lveyde, oourfali, rbalakri, sbonazzo, stirabos, yeylon, ylavi |
Target Milestone: | --- | Keywords: | CodeChange, Regression |
Target Release: | 3.5.5 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | integration | ||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause: if an async task with VdcActionType 0 was running when executing engine-setup, the upgrade to 3.5.3 fails with a KeyError exception.
Consequence: user may hit an upgrade failure until the async task complete or, if zombie, it's manually removed from the DB.
Fix: a key for VdcActionType 0 has been added
Result: VdcActionType 0 tasks are now correctly handled.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2015-11-09 09:11:57 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
srepetsk
2015-07-02 15:59:30 UTC
Looks like the issue here is that the first async task detected has action_type 0 which is not in ASYNC_TASKS_MAP. Eli, Simone, is an action_type 0 supposed to exist? If so, how should it be mapped? it has been returned by: select async_tasks.action_type, async_tasks.task_id, async_tasks.started_at, storage_pool.name from async_tasks, storage_pool where async_tasks.storage_pool_id = storage_pool.id ; (In reply to Sandro Bonazzola from comment #1) > Looks like the issue here is that the first async task detected has > action_type 0 which is not in ASYNC_TASKS_MAP. > > Eli, Simone, is an action_type 0 supposed to exist? If so, how should it be > mapped? In VdcActionType enum the first entry is : Unknown(0, QuotaDependency.NONE) So, AFAIK , since there can be entries with this value, it should also be included in the ASYNC_TASKS_MAP in async_tasks_map.py (In reply to Eli Mesika from comment #2) > In VdcActionType enum the first entry is : > > Unknown(0, QuotaDependency.NONE) > > So, AFAIK , since there can be entries with this value, it should also be > included in the ASYNC_TASKS_MAP in async_tasks_map.py In 3.6/master there are 369 values which are in VdcActionType and not in ASYNC_TASKS_MAP. Just to be sure, must all the values in VdcActionType be mapped there? (In reply to Sandro Bonazzola from comment #3) > (In reply to Eli Mesika from comment #2) > > In VdcActionType enum the first entry is : > > > > Unknown(0, QuotaDependency.NONE) > > > > So, AFAIK , since there can be entries with this value, it should also be > > included in the ASYNC_TASKS_MAP in async_tasks_map.py > > In 3.6/master there are 369 values which are in VdcActionType and not in > ASYNC_TASKS_MAP. Just to be sure, must all the values in VdcActionType be > mapped there? No, I don't think so ... But 0 (Unknown) should be added IMO Putting also needinfo on didi who can elaborate on that Adding also Oved. Sorry, no idea. Someone who knows async tasks better than me should reply. It might be better to just drop this file and keep the id/name/desc list in the database, if it's not already there, or find some other way to allow engine-setup read this enum. So adding 0 for now, opening an RFE for getting these values in a place where both java and python can read them. What's the open question here? AFAIK , there is no open question here ... No open question left, discussion moved on bug #1240940 Can you please help us with the SQL code needed to reproduce and test this issue? (In reply to Yaniv Dary from comment #11) > Can you please help us with the SQL code needed to reproduce and test this > issue? Please note that the fix was in the python code by adding the UNKNOWN entry, no SQL reproduce is available see https://gerrit.ovirt.org/#/c/43301/2/packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/upgrade/async_tasks_map.py verified in rhevm-3.5.5-0.1.el6ev.noarch |