[ovirt-users] Re: stucked snapshot, locked disk

2019-02-19 Thread Shani Leviim
Hi,

In order to delete all jobs (aka tasks on the UI), I'm using:
truncate table job cascade;

Which is also mentioned here:
https://github.com/oVirt/ovirt-engine/blob/master/packaging/setup/dbutils/taskcleaner.sh

Hope it helps


*Regards,*

*Shani Leviim*


On Mon, Feb 18, 2019 at 3:52 PM Mike Lykov  wrote:

> 14.02.2019 19:45, Jiří Sléžka пишет:
> > Hello,
> >
> > we are using ovirt 4.2.8.2-1.el7.
> >
> > One our user probably tried to preview taken snapshot but the task is
> > stucked and never finished. Also disk is locked.
>
> I'm also have this problem.
> I try to use openbaccus project for backup VMs, and all was good (manual
>   started backup, for example, did his job: take snapshot, copy VM, etc.)
>
> But when I configure a task at night (Sheduled backup VM), It was some
> sort of disaster :)
>
> It try to snapshot/copy VM in infinite loop and create dozens images,
> all of that tasks have "failed" result.
> I was forced to delete it in ovirtengine by hand, but last created task
> are stuck. I switch off baccus, because it send queries to snapshots via
> API indefinitely, In engine log:
> ---
> 2019-02-12 03:17:00,659+04 INFO
> [org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default
> task-2941) [] User admin@internal successfully logged in with scopes:
> ovirt-app-api ovirt-ext=token-info:authz-search ovirt-ext=token-info:pub
> lic-authz-search ovirt-ext=token-info:validate
> ovirt-ext=token:password-access
> 2019-02-12 03:17:00,697+04 INFO
> [org.ovirt.engine.core.bll.aaa.CreateUserSessionCommand] (default
> task-2941) [7feb4bfd] Running command: CreateUserSessionCommand
> internal: false.
> 2019-02-12 03:17:00,704+04 INFO
> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
> (default task-2941) [7feb4bfd] EVENT_ID: USER_VDC_LOGIN(30), User
> admin@internal-authz connecting from '172.16.10.41' using session 'K
> tVU5wRCDZn2ZrPIE4rengdlpt+GdIfjTD6KpPIW45oY4XUfpcUCJH9ry4gRbsO98lQawu8LdMdRZ0zxqUcJKA=='
>
> logged in.
> 2019-02-12 03:17:00,804+04 INFO
> [org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default
> task-2941) [] User admin@internal successfully logged in with scopes:
> ovirt-app-api ovirt-ext=token-info:authz-search ovirt-ext=token-info:pub
> lic-authz-search ovirt-ext=token-info:validate
> ovirt-ext=token:password-access
> 2019-02-12 03:17:00,863+04 INFO
> [org.ovirt.engine.core.bll.aaa.CreateUserSessionCommand] (default
> task-2941) [34e0ac0] Running command: CreateUserSessionCommand internal:
> false.
> 2019-02-12 03:17:00,984+04 INFO
> [org.ovirt.engine.core.bll.snapshots.CreateSnapshotForVmCommand]
> (default task-2941) [2f595966-44e8-4a67-8f55-a3d09836fc4d] Lock Acquired
> to object 'EngineLock:{exclusiveLocks='[f1029df3-36f3-4746-8c58-ebe
> cf860776f=VM]', sharedLocks=''}'
> 2019-02-12 03:17:00,985+04 WARN
> [org.ovirt.engine.core.bll.snapshots.CreateSnapshotForVmCommand]
> (default task-2941) [2f595966-44e8-4a67-8f55-a3d09836fc4d] Validation of
> action 'CreateSnapshotForVm' failed for user admin@internal-authz.
> Reasons:
>
> VAR__ACTION__CREATE,VAR__TYPE__SNAPSHOT,ACTION_TYPE_FAILED_VM_IS_DURING_SNAPSHOT
> 2019-02-12 03:17:00,985+04 INFO
> [org.ovirt.engine.core.bll.snapshots.CreateSnapshotForVmCommand]
> (default task-2941) [2f595966-44e8-4a67-8f55-a3d09836fc4d] Lock freed to
> object 'EngineLock:{exclusiveLocks='[f1029df3-36f3-4746-8c58-ebecf8
> 60776f=VM]', sharedLocks=''}'
> 2019-02-12 03:17:00,990+04 ERROR
> [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default
> task-2941) [] Operation Failed: [Cannot create Snapshot. The VM is
> performing an operation on a Snapshot. Please wait for the operat
> ion to finish, and try again.]
> 2019-02-12 03:17:01,033+04 INFO
> [org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default
> task-2958) [] User admin@internal successfully logged out
> 2019-02-12 03:17:01,040+04 INFO
> [org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand]
> (default task-2955) [6310d15d] Running command:
> TerminateSessionsForTokenCommand internal: true.
> 2019-02-12 03:17:01,231+04 INFO
> [org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default
> task-2941) [] User admin@internal successfully logged in with scopes:
> ovirt-app-api ovirt-ext=token-info:authz-search ovirt-ext=token-info:pub
> lic-authz-search ovirt-ext=token-info:validate
> ovirt-ext=token:password-access
> 2019-02-12 03:17:01,255+04 INFO
> [org.ovirt.engine.core.bll.aaa.CreateUserSessionCommand] (default
> task-2941) [584a33cc] Running command: CreateUserSessionCommand
> internal: false.
> 2019-02-12 03:17:01,390+04 INFO
> [org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default
> task-2941) [] User admin@internal successfully logged in with scopes:
> ovirt-app-api ovirt-ext=token-info:authz-search ovirt-ext=token-info:pub
> lic-authz-search ovirt-ext=token-info:validate
> ovirt-ext=token:password-access
> 2019-02-12 03:17:01,414+04 INFO
> 

[ovirt-users] Re: stucked snapshot, locked disk

2019-02-18 Thread Mike Lykov

14.02.2019 19:45, Jiří Sléžka пишет:

Hello,

we are using ovirt 4.2.8.2-1.el7.

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


I'm also have this problem.
I try to use openbaccus project for backup VMs, and all was good (manual 
 started backup, for example, did his job: take snapshot, copy VM, etc.)


But when I configure a task at night (Sheduled backup VM), It was some 
sort of disaster :)


It try to snapshot/copy VM in infinite loop and create dozens images, 
all of that tasks have "failed" result.
I was forced to delete it in ovirtengine by hand, but last created task 
are stuck. I switch off baccus, because it send queries to snapshots via 
API indefinitely, In engine log:

---
2019-02-12 03:17:00,659+04 INFO 
[org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default 
task-2941) [] User admin@internal successfully logged in with scopes: 
ovirt-app-api ovirt-ext=token-info:authz-search ovirt-ext=token-info:pub
lic-authz-search ovirt-ext=token-info:validate 
ovirt-ext=token:password-access
2019-02-12 03:17:00,697+04 INFO 
[org.ovirt.engine.core.bll.aaa.CreateUserSessionCommand] (default 
task-2941) [7feb4bfd] Running command: CreateUserSessionCommand 
internal: false.
2019-02-12 03:17:00,704+04 INFO 
[org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] 
(default task-2941) [7feb4bfd] EVENT_ID: USER_VDC_LOGIN(30), User 
admin@internal-authz connecting from '172.16.10.41' using session 'K
tVU5wRCDZn2ZrPIE4rengdlpt+GdIfjTD6KpPIW45oY4XUfpcUCJH9ry4gRbsO98lQawu8LdMdRZ0zxqUcJKA==' 
logged in.
2019-02-12 03:17:00,804+04 INFO 
[org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default 
task-2941) [] User admin@internal successfully logged in with scopes: 
ovirt-app-api ovirt-ext=token-info:authz-search ovirt-ext=token-info:pub
lic-authz-search ovirt-ext=token-info:validate 
ovirt-ext=token:password-access
2019-02-12 03:17:00,863+04 INFO 
[org.ovirt.engine.core.bll.aaa.CreateUserSessionCommand] (default 
task-2941) [34e0ac0] Running command: CreateUserSessionCommand internal: 
false.
2019-02-12 03:17:00,984+04 INFO 
[org.ovirt.engine.core.bll.snapshots.CreateSnapshotForVmCommand] 
(default task-2941) [2f595966-44e8-4a67-8f55-a3d09836fc4d] Lock Acquired 
to object 'EngineLock:{exclusiveLocks='[f1029df3-36f3-4746-8c58-ebe

cf860776f=VM]', sharedLocks=''}'
2019-02-12 03:17:00,985+04 WARN 
[org.ovirt.engine.core.bll.snapshots.CreateSnapshotForVmCommand] 
(default task-2941) [2f595966-44e8-4a67-8f55-a3d09836fc4d] Validation of 
action 'CreateSnapshotForVm' failed for user admin@internal-authz.
Reasons: 
VAR__ACTION__CREATE,VAR__TYPE__SNAPSHOT,ACTION_TYPE_FAILED_VM_IS_DURING_SNAPSHOT
2019-02-12 03:17:00,985+04 INFO 
[org.ovirt.engine.core.bll.snapshots.CreateSnapshotForVmCommand] 
(default task-2941) [2f595966-44e8-4a67-8f55-a3d09836fc4d] Lock freed to 
object 'EngineLock:{exclusiveLocks='[f1029df3-36f3-4746-8c58-ebecf8

60776f=VM]', sharedLocks=''}'
2019-02-12 03:17:00,990+04 ERROR 
[org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default 
task-2941) [] Operation Failed: [Cannot create Snapshot. The VM is 
performing an operation on a Snapshot. Please wait for the operat

ion to finish, and try again.]
2019-02-12 03:17:01,033+04 INFO 
[org.ovirt.engine.core.sso.servlets.OAuthRevokeServlet] (default 
task-2958) [] User admin@internal successfully logged out
2019-02-12 03:17:01,040+04 INFO 
[org.ovirt.engine.core.bll.aaa.TerminateSessionsForTokenCommand] 
(default task-2955) [6310d15d] Running command: 
TerminateSessionsForTokenCommand internal: true.
2019-02-12 03:17:01,231+04 INFO 
[org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default 
task-2941) [] User admin@internal successfully logged in with scopes: 
ovirt-app-api ovirt-ext=token-info:authz-search ovirt-ext=token-info:pub
lic-authz-search ovirt-ext=token-info:validate 
ovirt-ext=token:password-access
2019-02-12 03:17:01,255+04 INFO 
[org.ovirt.engine.core.bll.aaa.CreateUserSessionCommand] (default 
task-2941) [584a33cc] Running command: CreateUserSessionCommand 
internal: false.
2019-02-12 03:17:01,390+04 INFO 
[org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default 
task-2941) [] User admin@internal successfully logged in with scopes: 
ovirt-app-api ovirt-ext=token-info:authz-search ovirt-ext=token-info:pub
lic-authz-search ovirt-ext=token-info:validate 
ovirt-ext=token:password-access
2019-02-12 03:17:01,414+04 INFO 
[org.ovirt.engine.core.bll.aaa.CreateUserSessionCommand] (default 
task-2941) [4adc6455] Running command: CreateUserSessionCommand 
internal: false.
2019-02-12 03:17:01,587+04 INFO 
[org.ovirt.engine.core.bll.snapshots.CreateSnapshotForVmCommand] 
(default task-2941) [8b27b7bc-a7d1-4d9a-94f0-fbcad58691d0] Lock Acquired 
to object 'EngineLock:{exclusiveLocks='[f1029df3-36f3-4746-8c58-ebe

cf860776f=VM]', sharedLocks=''}'
2019-02-12 03:17:01,587+04 WARN 

[ovirt-users] Re: stucked snapshot, locked disk

2019-02-18 Thread Jiří Sléžka
Hi,


> 
> On Thu, Feb 14, 2019 at 11:37 AM Jiří Sléžka  > wrote:
> 
> Hello,
> 
> we are using ovirt 4.2.8.2-1.el7.
> 
> One our user probably tried to preview taken snapshot but the task is
> stucked and never finished. Also disk is locked.
> 
> Here is engine.log
> 
> https://pastebin.com/izBJ1BUg
> 
> I am not sure what went wrong except one java.lang.NullPointerException
> error... Could it be some bug?
> 
> 
> Indeed, it looks like a bug. Can you open one: 
> https://bugzilla.redhat.com/enter_bug.cgi?product=ovirt-engine
> component = BLL.Virt,  team = Virt
> please attach your logs too.

here it is

https://bugzilla.redhat.com/show_bug.cgi?id=1678234

Cheers,

Jiri

>  
> 
> 
> Also I 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 stucked 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 best approach to unlock and clean this?
> 
> 
> I'm not sure -- hopefully someone else can assist :)
>  
> 
> 
> Thanks in advance,
> 
> Cheers, Jiri
> 
> ___
> Users mailing list -- users@ovirt.org 
> To unsubscribe send an email to users-le...@ovirt.org
> 
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> 
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/FVJTQ25MGI2PRAXJIEHSLEOL62VRPOT2/
> 
> 
> 
> -- 
> 
> GREG SHEREMETA
> 
> SENIOR SOFTWARE ENGINEER - TEAM LEAD - RHV UX
> 
> Red Hat NA
> 
> 
> 
> gsher...@redhat.com     IRC: gshereme
> 
> 
> 




smime.p7s
Description: S/MIME Cryptographic Signature
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/2NIINLK66IU242NHZ6MBVRF2X6S3D5SC/


[ovirt-users] Re: stucked snapshot, locked disk

2019-02-18 Thread Jiří Sléžka
Hi,

On 2/15/19 10:01 PM, Benny Zlotnik wrote:
> IIUC it shouldn't get to 475 since it would short-circuit if it isn't a disk
> 
> Jiří, can you attach the full engine logs so we can retrace everything
> that happened?

sure,
https://filesender.cesnet.cz/?s=download=a67b3f78-8f65-f559-6a9c-f709fff0a94b

Cheers,

Jiri

> 
> On Fri, Feb 15, 2019 at 10:06 PM Michal Skrivanek
> mailto:michal.skriva...@redhat.com>> wrote:
> 
> Isn’t the code wrong? Seems the function checks for disks or unmanaged
> device, and if it is unmanaged non-disk device it still kind of
> assumes it’s a disk at line 475?
> It’s not common, but any device can be unmanaged
> 
> > On 14 Feb 2019, at 16:45, Jiří Sléžka  > wrote:
> >
> > Hello,
> >
> > we are using ovirt 4.2.8.2-1.el7.
> >
> > One our user probably tried to preview taken snapshot but the task is
> > stucked and never finished. Also disk is locked.
> >
> > Here is engine.log
> >
> > https://pastebin.com/izBJ1BUg
> >
> > I am not sure what went wrong except one
> java.lang.NullPointerException
> > error... Could it be some bug?
> >
> > Also I 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 stucked 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 best approach to unlock and clean this?
> >
> > Thanks in advance,
> >
> > Cheers, Jiri
> >
> > ___
> > Users mailing list -- users@ovirt.org 
> > To unsubscribe send an email to users-le...@ovirt.org
> 
> > Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> > oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> > List Archives:
> 
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/FVJTQ25MGI2PRAXJIEHSLEOL62VRPOT2/
> 




smime.p7s
Description: S/MIME Cryptographic Signature
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/RTHGO2NAVDC7VCPCAPZUAYOJC52GDDWW/


[ovirt-users] Re: stucked snapshot, locked disk

2019-02-15 Thread Benny Zlotnik
IIUC it shouldn't get to 475 since it would short-circuit if it isn't a disk

Jiří, can you attach the full engine logs so we can retrace everything that
happened?

On Fri, Feb 15, 2019 at 10:06 PM Michal Skrivanek <
michal.skriva...@redhat.com> wrote:

> Isn’t the code wrong? Seems the function checks for disks or unmanaged
> device, and if it is unmanaged non-disk device it still kind of
> assumes it’s a disk at line 475?
> It’s not common, but any device can be unmanaged
>
> > On 14 Feb 2019, at 16:45, Jiří Sléžka  wrote:
> >
> > Hello,
> >
> > we are using ovirt 4.2.8.2-1.el7.
> >
> > One our user probably tried to preview taken snapshot but the task is
> > stucked and never finished. Also disk is locked.
> >
> > Here is engine.log
> >
> > https://pastebin.com/izBJ1BUg
> >
> > I am not sure what went wrong except one java.lang.NullPointerException
> > error... Could it be some bug?
> >
> > Also I 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 stucked 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 best approach to unlock and clean this?
> >
> > Thanks in advance,
> >
> > Cheers, Jiri
> >
> > ___
> > Users mailing list -- users@ovirt.org
> > To unsubscribe send an email to users-le...@ovirt.org
> > Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> > oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> > List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/FVJTQ25MGI2PRAXJIEHSLEOL62VRPOT2/
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/I5ZHM2KONJSARNOFS64SYOSSIQBHJLIR/


[ovirt-users] Re: stucked snapshot, locked disk

2019-02-15 Thread Michal Skrivanek
Isn’t the code wrong? Seems the function checks for disks or unmanaged
device, and if it is unmanaged non-disk device it still kind of
assumes it’s a disk at line 475?
It’s not common, but any device can be unmanaged

> On 14 Feb 2019, at 16:45, Jiří Sléžka  wrote:
>
> Hello,
>
> we are using ovirt 4.2.8.2-1.el7.
>
> One our user probably tried to preview taken snapshot but the task is
> stucked and never finished. Also disk is locked.
>
> Here is engine.log
>
> https://pastebin.com/izBJ1BUg
>
> I am not sure what went wrong except one java.lang.NullPointerException
> error... Could it be some bug?
>
> Also I 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 stucked 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 best approach to unlock and clean this?
>
> Thanks in advance,
>
> Cheers, Jiri
>
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct: 
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives: 
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/FVJTQ25MGI2PRAXJIEHSLEOL62VRPOT2/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/ISBPQVBYOOTUPNLYBSL72B5ZNF3JO3FK/


[ovirt-users] Re: stucked snapshot, locked disk

2019-02-15 Thread Greg Sheremeta
On Thu, Feb 14, 2019 at 11:37 AM Jiří Sléžka  wrote:

> Hello,
>
> we are using ovirt 4.2.8.2-1.el7.
>
> One our user probably tried to preview taken snapshot but the task is
> stucked and never finished. Also disk is locked.
>
> Here is engine.log
>
> https://pastebin.com/izBJ1BUg
>
> I am not sure what went wrong except one java.lang.NullPointerException
> error... Could it be some bug?
>

Indeed, it looks like a bug. Can you open one:
https://bugzilla.redhat.com/enter_bug.cgi?product=ovirt-engine
component = BLL.Virt,  team = Virt
please attach your logs too.


>
> Also I 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 stucked 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 best approach to unlock and clean this?
>

I'm not sure -- hopefully someone else can assist :)


>
> Thanks in advance,
>
> Cheers, Jiri
>
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/FVJTQ25MGI2PRAXJIEHSLEOL62VRPOT2/
>


-- 

GREG SHEREMETA

SENIOR SOFTWARE ENGINEER - TEAM LEAD - RHV UX

Red Hat NA



gsher...@redhat.comIRC: gshereme

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/HOMNZLKTIGDSYA7MW3IG3JC4MLV2WN3J/