
hello, I must put in maintenance mode the node of ovirt but returns the following error (by admin web page): Error while executing action: Cannot switch Host to Maintenance mode. Host has asynchronous running tasks, wait for operation to complete and retry. I have checked the log file engine.log and returns the following errors: 2016-06-30 13:31:35,688 INFO [org.ovirt.engine.core.bll.MaintenanceNumberOfVdssCommand] (default task-47) [5f3d36f7] Lock Acquired to object 'EngineLock:{exclusiveLocks='null', sharedLocks='[00000001-0001-0001-0001-00000000037d=<POOL, ACTION_TYPE_FAILED_OBJECT_LOCKED>]'}' 2016-06-30 13:31:35,692 WARN [org.ovirt.engine.core.bll.MaintenanceNumberOfVdssCommand] (default task-47) [5f3d36f7] CanDoAction of action 'MaintenanceNumberOfVdss' failed for user admin@internal. Reasons: VAR__TYPE__HOST,VAR__ACTION__MAINTENANCE,VDS_CANNOT_MAINTENANCE_SPM_WITH_RUNNING_TASKS 2016-06-30 13:31:35,692 INFO [org.ovirt.engine.core.bll.MaintenanceNumberOfVdssCommand] (default task-47) [5f3d36f7] Lock freed to object 'EngineLock:{exclusiveLocks='null', sharedLocks='[00000001-0001-0001-0001-00000000037d=<POOL, ACTION_TYPE_FAILED_OBJECT_LOCKED>]'}' how can I do to see if there are tasks? What can i do for resolve the problem? Thanks in advance Nicola

On Thu, Jun 30, 2016 at 3:20 PM, nicola.gentile.to <nicola.gentile.to@gmail.com> wrote:
hello, I must put in maintenance mode the node of ovirt but returns the following error (by admin web page):
Error while executing action: Cannot switch Host to Maintenance mode. Host has asynchronous running tasks, wait for operation to complete and retry.
I have checked the log file engine.log and returns the following errors:
2016-06-30 13:31:35,688 INFO [org.ovirt.engine.core.bll.MaintenanceNumberOfVdssCommand] (default task-47) [5f3d36f7] Lock Acquired to object 'EngineLock:{exclusiveLocks='null', sharedLocks='[00000001-0001-0001-0001-00000000037d=<POOL, ACTION_TYPE_FAILED_OBJECT_LOCKED>]'}' 2016-06-30 13:31:35,692 WARN [org.ovirt.engine.core.bll.MaintenanceNumberOfVdssCommand] (default task-47) [5f3d36f7] CanDoAction of action 'MaintenanceNumberOfVdss' failed for user admin@internal. Reasons: VAR__TYPE__HOST,VAR__ACTION__MAINTENANCE,VDS_CANNOT_MAINTENANCE_SPM_WITH_RUNNING_TASKS 2016-06-30 13:31:35,692 INFO [org.ovirt.engine.core.bll.MaintenanceNumberOfVdssCommand] (default task-47) [5f3d36f7] Lock freed to object 'EngineLock:{exclusiveLocks='null', sharedLocks='[00000001-0001-0001-0001-00000000037d=<POOL, ACTION_TYPE_FAILED_OBJECT_LOCKED>]'}'
how can I do to see if there are tasks?
You can run this on the host: vdsClient -s 0 getAllTasksStatuses And share the output.
What can i do for resolve the problem?
You should see the status of each task - if you have a finished task, and engine is not clearing it, this is a bug in engine - please file a bug and attached vdsm and engine logs. To clear the a finished task not cleared by the engine, try to restart the engine. If engine is not clearing finished tasks after restart, you can clear it yourself: vdsClient -s 0 clearTask <task uuid> Nir
Thanks in advance
Nicola _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

I run what you have told me and now I put in maintenance mode the node successfully This is the results of command "vdsClient -s 0 getAllTasksStatuses": {'status': {'message': 'OK', 'code': 0}, 'allTasksStatus': {'19d51354-0add-4c88-a9cf-be660146af6d': {'message': '1 jobs completed successfully', 'code': 0, 'taskID': '19d51354-0add-4c88-a9cf-be660146af6d', 'taskResult': 'success', 'taskState': 'finished'}, '355a6da4-be07-4fed-b424-99aa4e3321aa': {'message': '1 jobs completed successfully', 'code': 0, 'taskID': '355a6da4-be07-4fed-b424-99aa4e3321aa', 'taskResult': 'success', 'taskState': 'finished'}, 'a0f1551a-f23c-4b89-84c4-43dadbc7c772': {'message': '1 jobs completed successfully', 'code': 0, 'taskID': 'a0f1551a-f23c-4b89-84c4-43dadbc7c772', 'taskResult': 'success', 'taskState': 'finished'}}} I attach the request file vdsm.log and engine.log Thanks a lot Nicola Il 30/06/2016 14:33, Nir Soffer ha scritto:
On Thu, Jun 30, 2016 at 3:20 PM, nicola.gentile.to <nicola.gentile.to@gmail.com> wrote:
hello, I must put in maintenance mode the node of ovirt but returns the following error (by admin web page):
Error while executing action: Cannot switch Host to Maintenance mode. Host has asynchronous running tasks, wait for operation to complete and retry.
I have checked the log file engine.log and returns the following errors:
2016-06-30 13:31:35,688 INFO [org.ovirt.engine.core.bll.MaintenanceNumberOfVdssCommand] (default task-47) [5f3d36f7] Lock Acquired to object 'EngineLock:{exclusiveLocks='null', sharedLocks='[00000001-0001-0001-0001-00000000037d=<POOL, ACTION_TYPE_FAILED_OBJECT_LOCKED>]'}' 2016-06-30 13:31:35,692 WARN [org.ovirt.engine.core.bll.MaintenanceNumberOfVdssCommand] (default task-47) [5f3d36f7] CanDoAction of action 'MaintenanceNumberOfVdss' failed for user admin@internal. Reasons: VAR__TYPE__HOST,VAR__ACTION__MAINTENANCE,VDS_CANNOT_MAINTENANCE_SPM_WITH_RUNNING_TASKS 2016-06-30 13:31:35,692 INFO [org.ovirt.engine.core.bll.MaintenanceNumberOfVdssCommand] (default task-47) [5f3d36f7] Lock freed to object 'EngineLock:{exclusiveLocks='null', sharedLocks='[00000001-0001-0001-0001-00000000037d=<POOL, ACTION_TYPE_FAILED_OBJECT_LOCKED>]'}'
how can I do to see if there are tasks? You can run this on the host:
vdsClient -s 0 getAllTasksStatuses
And share the output.
What can i do for resolve the problem? You should see the status of each task - if you have a finished task, and engine is not clearing it, this is a bug in engine - please file a bug and attached vdsm and engine logs.
To clear the a finished task not cleared by the engine, try to restart the engine.
If engine is not clearing finished tasks after restart, you can clear it yourself:
vdsClient -s 0 clearTask <task uuid>
Nir
Thanks in advance
Nicola _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Thu, Jun 30, 2016 at 4:08 PM, nicola.gentile.to <nicola.gentile.to@gmail.com> wrote:
I run what you have told me and now I put in maintenance mode the node successfully
This is the results of command "vdsClient -s 0 getAllTasksStatuses":
{'status': {'message': 'OK', 'code': 0}, 'allTasksStatus': {'19d51354-0add-4c88-a9cf-be660146af6d': {'message': '1 jobs completed successfully', 'code': 0, 'taskID': '19d51354-0add-4c88-a9cf-be660146af6d', 'taskResult': 'success', 'taskState': 'finished'}, '355a6da4-be07-4fed-b424-99aa4e3321aa': {'message': '1 jobs completed successfully', 'code': 0, 'taskID': '355a6da4-be07-4fed-b424-99aa4e3321aa', 'taskResult': 'success', 'taskState': 'finished'}, 'a0f1551a-f23c-4b89-84c4-43dadbc7c772': {'message': '1 jobs completed successfully', 'code': 0, 'taskID': 'a0f1551a-f23c-4b89-84c4-43dadbc7c772', 'taskResult': 'success', 'taskState': 'finished'}}}
I attach the request file vdsm.log and engine.log
Would you open a bug for this? https://bugzilla.redhat.com/enter_bug.cgi?product=ovirt-engine We need one place with all the information so we can track this issue. Thanks, Nir
participants (3)
-
nicola.gentile.to
-
Nir Soffer
-
Краснобаев Михаил