Bug 951092

Summary: rhevm-upgrade: we are getting a list of empty tasks but still failing in upgrade on running tasks
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engine-setupAssignee: Alex Lourie <alourie>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: urgent    
Version: 3.2.0CC: acathrow, bazulay, dbotzer, dyasny, iheim, mgoldboi, Rhev-m-bugs, sgrinber, ykaul
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: integration
Fixed In Version: sf17.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-11 08:17:13 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:
Bug Depends On:    
Bug Blocks: 948448, 966721    
Attachments:
Description Flags
logs
none
eng-upg-task.log.tgz none

Description Dafna Ron 2013-04-11 13:02:13 UTC
Created attachment 734175 [details]
logs

Description of problem:

although the upragde is showing a list of empty tasks we are reaching the clear task step in upgrade and failing to clear the tasks (can't clear task -> upgrade cannot continue). 
My setup was not a clean sf13 but a setup that was upgraded from 3.1 (including jboss)

please note that we do have tasks in asyncTasks table

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

3.1.4 -> sf13 -> sf13.1

How reproducible:

100% when running rhevm-upgarde. 

Steps to Reproduce:
1. create tasks (like create a pool)  in sf13
2. block connectivity to the storage from the vds
3. after tasks fail check that you have tasks in asynctasks but no longer have them in vds
4. upgrade to sf13.1 
  
Actual results:

we are getting a list of empty tasks and yet reaching the step for clear tasks. 

Expected results:

we should either get a list of tasks or continue with the upragde without cleanning tasks

Additional info:logs

[root@dafna-31 ~]# rhevm-upgrade 

Checking for updates... (This may take several minutes)...[ DONE ]
10 Updates available:
 * rhevm-3.2.0-10.19.beta2.el6ev.noarch
 * rhevm-backend-3.2.0-10.19.beta2.el6ev.noarch
 * rhevm-config-3.2.0-10.19.beta2.el6ev.noarch
 * rhevm-dbscripts-3.2.0-10.19.beta2.el6ev.noarch
 * rhevm-genericapi-3.2.0-10.19.beta2.el6ev.noarch
 * rhevm-notification-service-3.2.0-10.19.beta2.el6ev.noarch
 * rhevm-restapi-3.2.0-10.19.beta2.el6ev.noarch
 * rhevm-tools-common-3.2.0-10.19.beta2.el6ev.noarch
 * rhevm-userportal-3.2.0-10.19.beta2.el6ev.noarch
 * rhevm-webadmin-portal-3.2.0-10.19.beta2.el6ev.noarch

During the upgrade process, RHEV Manager  will not be accessible.
All existing running virtual machines will continue but you will not be able to
start or stop any new virtual machines during the process.

Would you like to proceed? (yes|no): yes
Stopping ovirt-engine service...                     [ DONE ]
Stopping DB related services...                      [ DONE ]
Cleaning async tasks...                              [ DONE ]

Info: The following tasks have been found running in the system: 

System Tasks:
                                                             



[ Apr 11 15:24:48 ] Would you like to proceed and try to stop tasks automatically?
(Answering 'no' will stop the upgrade)? (yes|no): 


engine=# SELECT task_id from async_tasks;
               task_id                
--------------------------------------
 cfd1ebe2-002d-41b5-bc30-e77e7127be5e
 90956904-f189-4585-a856-60d5e3210dec
 f6140a96-f641-4f4a-9892-cbe3b627513f

Comment 4 Pavel Stehlik 2013-05-17 13:51:19 UTC
Created attachment 749352 [details]
eng-upg-task.log.tgz

engine.log

Comment 5 Alex Lourie 2013-05-19 08:28:31 UTC
Hi Pavel

Can you please attach the engine-upgrade log?

Thanks.

Comment 6 Alex Lourie 2013-05-19 10:34:53 UTC
*** Bug 959882 has been marked as a duplicate of this bug. ***

Comment 12 Moran Goldboim 2013-06-05 09:31:28 UTC
not relevant for zstream - no use of SP was done in 3.1.z code.

Comment 13 Itamar Heim 2013-06-11 08:17:13 UTC
3.2 has been released