Created attachment 744008 [details] system-task Description of problem: Incorrect Upgrade Message while async tasks running (System Tasks name and empty lines) Version-Release number of selected component (if applicable): 3.2/sf14 How reproducible: Always Steps to Reproduce: 1.Install rhevm sf13 2.Create some VMs and Create template from one VM 3.Upgrade SF13 to SF14 (No reports, only rhevm), while async task running Actual results: System tasks shows nothing, and too much empty lines See output below Expected results: Should show the name of the task that is running ::Perhaps create template doesnt have a name or else Additional info: Sandro Bonazzola, added: Seems strange to me having only 4 blank lines there. I would have expected something written there: MSG_TASKS_COMPENSATIONS = "\n\nSystem Tasks:\n%s\n%s\n\n" where the 2 %s are runningTasks and compensations. ----------------------- Would you like to proceed? (yes|no): y 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: [ May 01 16:52:40 ] Would you like to proceed and try to stop tasks automatically? (Answering 'no' will stop the upgrade)? (yes|no): y [ May 01 16:53:13 ] System will try to clear tasks during the next 3 minutes.
What did the async_tasks table contain during the upgrade (direct SQL output is required). What did the business_entity_snapshots table (compensation) table contained during the upgrade ?
Will get back to you with SF17
I upgraded SF16 to SF17 and while creating template from a vm, I ran upgrade -> async_tasks table contained - partial SQL table, see Attached TXT After upgrade it was cleared business_entity_snapshots table (compensation) table contained - NOTHING after upgrade - NOTHING The template was locked =========== "ef5875e2-5f09-40b5-899c-d9b144a88914";201;2;0;"{ "@class" : "org.ovirt.engine.core.common.action.AddVmTemplateParameters", "commandId" : [ "org.ovirt.engine.core.compat.Guid", { "uuid" : "7f850bab-c84f-4ffa-85b8-e42b3f13c6f0" } ], "httpSessionId" : null, "parametersCurrentUser" : [ "org.ovirt.engine.core.common.users.VdcUser", { "groupIds" : "", "password" : null, "domainControler" : "internal", "browser" : null, "groupNames" : "", "firstName" : "admin", "surName" : null, "admin" : true, "fqn" : "admin@internal", "userId" : [ "org.ovirt.engine.core.compat.Guid", { "uuid" : "fdfc627c-d875-11e0-90f0-83df133b58cc" } ], "userName" : "admin@internal" } ], "compensationEnabled" : false, "parentCommand" : "Unknown", "commandType" : "Unknown", "multipleAction" : false, "entityId" : [ "org.ovirt.engine.core.compat.Guid", { "uuid" : "413c469a-e4b3-4f99-9065-90ad8cf43cf9" } ], "taskGroupSuccess" : true, "taskIds" : null, "executionIndex" : 0, "correlationId" : "741b05e3", "removeTemplateFromDb" : false, "vmTemplateId" : [ "org.ovirt.engine.core.compat.Guid", { "uuid" : "413c469a-e4b3-4f99-9065-90ad8cf43cf9" } ], "quotaId" : null, "destinationStorageDomainId" : null, "publicUse" : true, "name" : null, "description" : null, "checkDisksExists" : false, "storageDomainsList" : null, "shouldBeLogged" : true, "executionReason" : "REGULAR_FLOW", "transactionScopeOption" : "Required", "sessionId" : "mxX4i68q-U90BRNSYyfEclvT" }";"org.ovirt.engine.core.common.action.AddVmTemplateParameters"
SF17 - I reproduced, this time without reports installed, I didnt perform any brute stop, during upgrade. I am asked to stop async Y/N - Yes to stop and continue upgrade ----- async_tasks table contained the task in progress - creating template from vm After upgrade it was cleared business_entity_snapshots table (compensation) table contained - NOTHING after upgrade - NOTHING -------- Info: The following tasks have been found running in the system: System Tasks: [ May 19 10:23:26 ] Would you like to proceed and try to stop tasks automatically? (Answering 'no' will stop the upgrade)? (yes|no): y [ May 19 10:23:28 ] System will try to clear tasks during the next 3 minutes. Pre-upgrade validations... [ DONE ] Backing Up Database... [ DONE ] Rename Database... [ ERROR ] Error: Database rename failed. Check that there are no active connections to the DB and try again. Starting ovirt-engine service... [ DONE ] Error: Upgrade failed. please check log at /var/log/ovirt-engine/ovirt-engine-upgrade_2013_05_19_10_23_15.log
Created attachment 749975 [details] engine.log engine.log upgrade sf16 to sf17 while running async task - create template
Created attachment 749976 [details] upgrade-log
*** This bug has been marked as a duplicate of bug 951092 ***