Bug 1678234 - Stucked snapshot and locked disk when doing preview of snapshot
Summary: Stucked snapshot and locked disk when doing preview of snapshot
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Virt
Version: 4.2.8.1
Hardware: x86_64
OS: Linux
unspecified
low with 1 vote
Target Milestone: ---
: ---
Assignee: Michal Skrivanek
QA Contact: meital avital
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-18 10:52 UTC by Jiří Sléžka
Modified: 2021-10-15 17:57 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-01 14:48:21 UTC
oVirt Team: Virt
Embargoed:
rbarry: ovirt-4.5?


Attachments (Terms of Use)
engine.log (10.81 MB, text/plain)
2019-02-18 10:52 UTC, Jiří Sléžka
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-43815 0 None None None 2021-10-15 17:57:46 UTC

Description Jiří Sléžka 2019-02-18 10:52:18 UTC
Created attachment 1535883 [details]
engine.log

Description of problem:

One our user tried to preview taken snapshot but the task is jammed and never finished. Also disk is locked.

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

ovirt 4.2.8.2-1.el7

How reproducible:

not sure if reproducible every time but it was happened at least three times

Steps to Reproduce:
1. try to priview snapshot in manager
2. wait...

Actual results:

The task is jammed and never finished. Also disk is locked.

Expected results:

Task is finished or task fails but eventually disk is unlocked.

Additional info:

enegine.log included, time is around 2019-02-12 11:27:23,185+01

Comment 1 Jiří Sléžka 2019-02-18 10:58:26 UTC
btw. I also would like to unlock disk and clean this task. I can see locked
snapshot and disk

[root@ovirt dbutils]# ./unlock_entity.sh -q -t snapshot -c

Locked snapshots

                vm_id                 |             snapshot_id

--------------------------------------+--------------------------------------
 df27ee13-9961-41d5-a4eb-bbb0aadf9086 | 58998020-08cb-4c84-8847-0cb6790724ba

[root@ovirt dbutils]# ./unlock_entity.sh -q -t disk -c

Locked disks

                vm_id                 |               disk_id

--------------------------------------+--------------------------------------
 df27ee13-9961-41d5-a4eb-bbb0aadf9086 | f6405448-baf8-4cc2-8ee7-798ca11cad10

but no runnig tasks

[root@ovirt dbutils]# ./taskcleaner.sh -o
 t

but in ovirt-manager I see this jammed task...

Preview VM Snapshot predsysprep of VM install_10_64bit_LTSB_UK_ucebny -
Started: Feb 12, 2019, 11:28:04 AM
Validating - Completed: Feb 12, 2019, 11:28:04 AM
Executing - Completed: Feb 12, 2019, 11:28:15 AM
Creating Volume - Completed: Feb 12, 2019, 11:28:15 AM
Finalizing - Started: Feb 12, 2019, 11:28:15 AM

what is the best approach to unlock and clean this?

Comment 2 Ryan Barry 2019-02-19 00:10:59 UTC
It appears that the snapshot has never finished finalizing. How old is the snapshot (or how bust is the VM)?

The user experience here is bad, but I'm wondering whether the task is actually still running... I'll look at engine.log

Comment 3 Ryan Barry 2019-03-05 23:03:57 UTC
The task is still running. Let's see if we can block the operation later, once there's capacity

Comment 4 Michal Skrivanek 2020-03-18 15:49:53 UTC
This bug didn't get any attention for a while, we didn't have the capacity to make any progress. If you deeply care about it or want to work on it please assign/target accordingly

Comment 5 Michal Skrivanek 2020-03-18 15:52:30 UTC
This bug didn't get any attention for a while, we didn't have the capacity to make any progress. If you deeply care about it or want to work on it please assign/target accordingly

Comment 6 Michal Skrivanek 2020-04-01 14:48:21 UTC
Closing old bug. Please reopen if still relevant/you want to work on it.

Comment 7 bbarret 2021-10-15 17:55:30 UTC
having this bug with ovirt 4.3 too


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