Bug 1167769

Summary: Failed to execute stage 'Setup validation': Failed to clear zombie tasks.
Product: Red Hat Enterprise Virtualization Manager Reporter: Petr Matyáš <pmatyas>
Component: ovirt-engine-setupAssignee: Yair Zaslavsky <yzaslavs>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matyáš <pmatyas>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 3.5.0CC: bazulay, didi, ecohen, gklein, iheim, lsurette, oourfali, pmatyas, rbalakri, Rhev-m-bugs, sbonazzo, sherold, sradco, yeylon, yzaslavs
Target Milestone: ---Keywords: Regression
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: vt12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-17 17:07:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1164308, 1164311, 1166122, 1166123    
Attachments:
Description Flags
Engine-setup log before reboot
none
Engine-setup log after reboot none

Description Petr Matyáš 2014-11-25 11:37:52 UTC
Created attachment 961165 [details]
Engine-setup log before reboot

Description of problem:
Engine-setup fails with "[ ERROR ] Failed to execute stage 'Setup validation': Failed to clear zombie tasks. Please access support in attempt to resolve the problem" after upgrade from 3.4.

Version-Release number of selected component (if applicable):
3.5

How reproducible:
always on my setup

Steps to Reproduce:
1. install rhevm 3.4 (engine+dwh+reports) and setup 
2. update to 3.5
3. engine-setup

Actual results:
fails in setup validation

Expected results:
doesn't fail

Additional info:

Comment 1 Petr Matyáš 2014-11-25 11:38:25 UTC
Created attachment 961166 [details]
Engine-setup log after reboot

Comment 2 Sandro Bonazzola 2014-11-25 11:53:27 UTC
Can you detail which version of 3.5 are you trying to use?
From logs I see:
rhevm-setup-3.5.0-0.21.el6ev.noarch
but I see also dwh version: rhevm-dwh-3.5.1_master (3.5.1_master) which should have been something like 3.5.0 since rhevm-dwh-3.5.0-7.el6ev.noarch is pulled in.

Comment 3 Petr Matyáš 2014-11-25 11:56:20 UTC
it's vt11, 3.4 was clean install

Comment 4 Sandro Bonazzola 2014-11-25 11:58:45 UTC
2014-11-25 12:13:21 DEBUG otopi.plugins.ovirt_engine_setup.ovirt_engine.upgrade.asynctasks plugin.execute:866 execute-output: ('/usr/share/ovirt-engine/setup/dbutils/taskcleaner.sh', '-l', '/var/log/ovirt-engine/setup/ovirt-engine-setup-20141125121230-xtiroe.log', '-u', 'engine', '-s', 'localhost', '-p', '5432', '-d', 'engine', '-R', '-A', '-J', '-q') stderr:
psql:/usr/share/ovirt-engine/setup/dbutils/taskcleaner_sp.sql:145: ERROR:  type "command_entities" does not exist
FATAL: Cannot execute sql command: --file=/usr/share/ovirt-engine/setup/dbutils/taskcleaner_sp.sql

2014-11-25 12:13:21 DEBUG otopi.context context._executeMethod:152 method exception
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/otopi/context.py", line 142, in _executeMethod
    method['method']()
  File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/upgrade/asynctasks.py", line 422, in _validateZombies
    self._clearZombieTasks()
  File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/upgrade/asynctasks.py", line 156, in _clearZombieTasks
    'Failed to clear zombie tasks. Please access support '
RuntimeError: Failed to clear zombie tasks. Please access support in attempt to resolve the problem

Comment 5 Sandro Bonazzola 2014-11-25 12:04:13 UTC
Looks like offending patch may be: http://gerrit.ovirt.org/35220

Comment 6 Shirly Radco 2014-11-25 12:29:13 UTC
The dwh and reports d/s packages are based on the u/s which is already 3.5.1.
I use same branch for the z-stream.

The d/s version is updated according to the d/s build.

The current packages are:
rhevm-dwh-3.5.0-7.el6ev.noarch.rpm
rhevm-dwh-setup-3.5.0-7.el6ev.noarch.rpm
rhevm-reports-3.5.0-10.el6ev.noarch.rpm
rhevm-reports-setup-3.5.0-10.el6ev.noarch.rpm.

Were built for vt10 but added to the repo only on 10.1 because they were built late.

Comment 7 Yedidyah Bar David 2014-11-25 13:12:18 UTC
Following a discussion, Yair will now revert this patch and later fix it to work also on upgrade.

Comment 8 Eyal Edri 2015-02-17 17:07:34 UTC
rhev 3.5.0 was released. closing.