Re: [ovirt-users] Cannot remove VM

2018-03-25 Thread Arik Hadas
On Wed, Mar 21, 2018 at 11:54 AM, Angel R. Gonzalez 
wrote:

> Hi,
>
> I can't edit/remove/modify a VM. Always show a message:
> "Cannot remove VM. Related operation is currently in progress. Please
> try again later"
>

That means that the VM is locked using an in-memory lock (rather than in
the database, so the script for unlocking entities would not help here).
The message you get was deprecated, when a lock is taken before executing a
long operation we generate a more informative message.
So that is almost certainly caused by a bug, we have fixed various bugs
that could have lead to that.
What version of oVirt do you use? Could you share the engine.log that
covers the latest operation that was made on this VM?
Anyway, restarting the engine would most probably release the lock of that
VM and allow removing it.


>
> I also used REST API
> curl -k -u admin@internal:passwd -X DELETE https://engine/ovirt-engine/ap
> i/vms/
> and the output message is the same.
>

Yeah, it doesn't matter what client you use since this error is generated
on the back-end side.


>
> How to can execute actions over the VM, or how to remove it from Cluster?
>
> Thanks in advance.
>
> Ángel González.
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] cannot remove vm.

2018-03-04 Thread Arik Hadas
On Thu, Mar 1, 2018 at 6:01 PM, nicola gentile 
wrote:

> Hi,
> I have a problem. I try to remove a pool and than I remove every vm
> but one of this display the message "Cannot remove VM. Related
> operation is currently in progress. Please try again later."


> I try to unlock with this command
>
> PGPASSWORD=... /usr/share/ovirt-engine/setup/dbutils/unlock_entity.sh
> -t all -u engine
>
> but not working
>

Yeah, that wouldn't work since the VM is locked in-memory (as opposed to
being locked in the database).


>
> in /var/log/ovirt-engine/engine.log
>
> 2018-03-01 17:02:47,799+01 INFO
> [org.ovirt.engine.core.bll.RemoveVmCommand] (default task-33)
> [0217d710-afb6-4450-9897-02748d871aa1] Failed to Acquire Lock to
> object 'EngineLock:{exclusiveLocks='[d623ad44-a645-4fd0-9993-
> d21374e99eb5=VM]',
> sharedLocks=''}'
> 2018-03-01 17:02:47,799+01 WARN
> [org.ovirt.engine.core.bll.RemoveVmCommand] (default task-33)
> [0217d710-afb6-4450-9897-02748d871aa1] Validation of action 'RemoveVm'
> failed for user admin@internal-authz. Reasons:
> VAR__ACTION__REMOVE,VAR__TYPE__VM,ACTION_TYPE_FAILED_OBJECT_LOCKED
>
> please help
>

What's the status of the VMs that are attached to the pool? It may be that
some of those VMs cannot be stopped and so they remain locked by the
remove-pool operation, but hard to tell without a complete engine log.
Anyway, you can restart the engine - it would probably release that
in-memory lock that prevents you from removing the VM.


>
> thanks
>
> Nick
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] cannot remove vm.

2018-03-04 Thread Shani Leviim
Hi Nick,

You can try the taskcleaner script on dbutils:
PGPASSWORD=... /usr/share/ovirt-engine/setup/dbutils/taskcleaner.sh --help



*Regards,*

*Shani Leviim*

On Thu, Mar 1, 2018 at 6:01 PM, nicola gentile 
wrote:

> Hi,
> I have a problem. I try to remove a pool and than I remove every vm
> but one of this display the message "Cannot remove VM. Related
> operation is currently in progress. Please try again later."
>
> I try to unlock with this command
>
> PGPASSWORD=... /usr/share/ovirt-engine/setup/dbutils/unlock_entity.sh
> -t all -u engine
>
> but not working
>
> in /var/log/ovirt-engine/engine.log
>
> 2018-03-01 17:02:47,799+01 INFO
> [org.ovirt.engine.core.bll.RemoveVmCommand] (default task-33)
> [0217d710-afb6-4450-9897-02748d871aa1] Failed to Acquire Lock to
> object 'EngineLock:{exclusiveLocks='[d623ad44-a645-4fd0-9993-
> d21374e99eb5=VM]',
> sharedLocks=''}'
> 2018-03-01 17:02:47,799+01 WARN
> [org.ovirt.engine.core.bll.RemoveVmCommand] (default task-33)
> [0217d710-afb6-4450-9897-02748d871aa1] Validation of action 'RemoveVm'
> failed for user admin@internal-authz. Reasons:
> VAR__ACTION__REMOVE,VAR__TYPE__VM,ACTION_TYPE_FAILED_OBJECT_LOCKED
>
> please help
>
> thanks
>
> Nick
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users