Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1197616 - Template creation stuck after upgrade
Template creation stuck after upgrade
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-setup (Show other bugs)
3.4.0
Unspecified Unspecified
unspecified Severity high
: ---
: 3.5.1
Assigned To: Simone Tiraboschi
Petr Kubica
integration
: ZStream
Depends On: 1202334
Blocks: oVirt_3.5.2_tracker 1193058
  Show dependency treegraph
 
Reported: 2015-03-02 03:53 EST by rhev-integ
Modified: 2015-05-04 07:58 EDT (History)
22 users (show)

See Also:
Fixed In Version: org.ovirt.engine-root-3.5.1-4
Doc Type: Bug Fix
Doc Text:
Previously, when creating a template and then running an upgrade command, an implementation that was supposed to only clear zombie tasks and commands also killed pending tasks for template creation. This caused the template creation to be stuck. With this update, only zombie tasks and commands are cleared as normal.
Story Points: ---
Clone Of: 1119639
Environment:
Last Closed: 2015-04-28 14:49:14 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
ylavi: Triaged+


Attachments (Terms of Use)
engine-logs (1.02 MB, application/x-gzip)
2015-04-07 07:08 EDT, Petr Kubica
no flags Details
screenshot (83.81 KB, image/png)
2015-04-14 11:11 EDT, Petr Kubica
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 36302 master MERGED packaging: setup: clearing only zombie tasks Never
oVirt gerrit 38158 ovirt-engine-3.5 MERGED packaging: setup: clearing only zombie tasks Never
oVirt gerrit 38159 ovirt-engine-3.5.2 MERGED packaging: setup: clearing only zombie tasks Never
oVirt gerrit 39660 master MERGED packaging: setup: fixing RunningCommands type Never
oVirt gerrit 39663 ovirt-engine-3.5 MERGED packaging: setup: fixing RunningCommands type Never
oVirt gerrit 39664 ovirt-engine-3.5.2 MERGED packaging: setup: fixing RunningCommands type Never
Red Hat Product Errata RHSA-2015:0888 normal SHIPPED_LIVE Moderate: Red Hat Enterprise Virtualization Manager 3.5.1 update 2015-04-28 18:40:04 EDT

  None (edit)
Comment 1 Yaniv Lavi 2015-03-02 03:56:17 EST
This was probably fixed as part of BZ #1196136. It needs to be tested.
Comment 2 Petr Kubica 2015-03-16 08:41:32 EDT
It cannot be verified in vt14. I'll wait for next 3.5.1 vt build to verified this.
Comment 3 Petr Kubica 2015-03-26 06:03:03 EDT
Got error while upgrading vt13.15 to vt14.1:
[ ERROR ] Failed to execute stage 'Setup validation': 201

details -> the same problem in bug: https://bugzilla.redhat.com/show_bug.cgi?id=1196136

It has already been addressed by https://gerrit.ovirt.org/#/c/38895/
Comment 4 Eyal Edri 2015-04-01 11:32:13 EDT
if this bug failed qe, it should move to ASSIGNED/FAILED_QA and not MODIFIED.
please update bug accordingly.
Comment 6 Pavel Novotny 2015-04-03 14:48:11 EDT
Verified in rhevm-3.5.1-0.3.el6ev.noarch (vt14.2). Upgraded from rhevm-3.5.0-0.32.el6ev.noarch (vt13.11).

Verification steps followed steps to reproduce from comment 0: 
1. Install RHEVM 3.5.0 (vt13.11).
2. Start creating a template.
3. Stop ovirt-engine service
4. Run engine-setup to upgrade to 3.5.1 (vt14.2).

Result:

          Please confirm installation settings (OK, Cancel) [OK]: ok
[ INFO  ] Cleaning async tasks and compensations
          The following system tasks have been found running in the system:
          Task ID:           9e2f4bd5-2f6e-414c-9c4c-a0f6e0e4d239
          Task Name:         AddVmTemplateCommand          
          Task Description:  Adding a template             
          Started at:        30
          DC Name:           dc34                          
          The following commands have been found running in the system:
          The following compensations have been found running in the system:
          Would you like to try to wait for that?
          (Answering "no" will stop the upgrade (Yes, No) yes
          Waiting for the completion of 1 running tasks during the next 20 seconds.
          Press Ctrl+C to interrupt. 
          Waiting for the completion of 1 running tasks during the next 20 seconds.
          Press Ctrl+C to interrupt. 
[ INFO  ] Checking the Engine database consistency
[ INFO  ] Stage: Transaction setup
...
...
[ INFO  ] Execution of setup completed successfully
Comment 7 Petr Kubica 2015-04-07 07:08:04 EDT
I found an issue with upgrading from latest_av:

          Please confirm installation settings (OK, Cancel) [OK]: 
[ INFO  ] Cleaning async tasks and compensations
          The following system tasks have been found running in the system:
          Task ID:           aa197e14-a2ec-476e-9930-94ddb64a1a27
          Task Name:         AddVmTemplateCommand          
          Task Description:  Adding a template             
          Started at:        30
          DC Name:           Default                       
          Task ID:           70bc0a87-8faf-4fbe-ad84-b348baf39ee6
          Task Name:         AddVmTemplateCommand          
          Task Description:  Adding a template             
          Started at:        30
          DC Name:           Default                       
[ ERROR ] Failed to execute stage 'Setup validation': 
[ INFO  ] Stage: Clean up
          Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20150407124637-s1qm17.log
[ INFO  ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20150407124658-setup.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Execution of setup failed

Setup failed after confirm installation settings
I used these steps:
1. Install latest_av
2. Start creating a template.
3. Run engine-setup to upgrade to 3.5.1 (vt14.2).

2015-04-07 12:46:58 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 454, in _validateAsyncTasks
    compensations,
  File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/upgrade/asynctasks.py", line 305, in _askUserToWaitForTasks
    commands='\n'.join(runningCommands),
TypeError
2015-04-07 12:46:58 ERROR otopi.context context._executeMethod:161 Failed to execute stage 'Setup validation'

attached logs

I tested vt13.11 too and there isn't any issue
Comment 8 Petr Kubica 2015-04-07 07:08:34 EDT
Created attachment 1011693 [details]
engine-logs
Comment 9 Petr Kubica 2015-04-14 11:09:01 EDT
When I tested upgrading from latest_av >> vt14.3
I tried to interrupt (with ctrl + c) waiting for task completion. Execution of setup failed as I expected but after that, rhevm webadmin was turned into ovirt webadmin (It looks like oVirt)

I suppose it's not the expected behavior. I noticed that the turning of webadmin theme happens before executing the configuration preview.

--additional info--
Attached screenshot
Comment 10 Petr Kubica 2015-04-14 11:11:07 EDT
Created attachment 1014383 [details]
screenshot
Comment 11 Sandro Bonazzola 2015-04-14 11:18:12 EDT
(In reply to Petr Kubica from comment #9)
> When I tested upgrading from latest_av >> vt14.3
> I tried to interrupt (with ctrl + c) waiting for task completion. Execution
> of setup failed as I expected but after that, rhevm webadmin was turned into
> ovirt webadmin (It looks like oVirt)
> 
> I suppose it's not the expected behavior. I noticed that the turning of
> webadmin theme happens before executing the configuration preview.
> 
> --additional info--
> Attached screenshot

Please track this issue in a separate bug. I guess that the rhevm-branding got upgraded from 3.4 to 3.5 and not rolled back when interrupting the setup.
Comment 12 Petr Kubica 2015-04-15 05:00:28 EDT
Verified in rhevm 3.5.1-0.4.el6ev (vt14.3)
Comment 13 errata-xmlrpc 2015-04-28 14:49:14 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-0888.html

Note You need to log in before you can comment on or make changes to this bug.