Re: [ovirt-users] Mantenance mode error
On Mon, Oct 10, 2016 at 3:11 PM, nicola.gentile.to < nicola.gentile...@gmail.com> wrote: > Hi, > > I have a problem. I try to put in maintenance mode the host, but the > message that is displayed is this > > "Error while executing action: Cannot switch Host to Maintenance mode. > Host has asynchronous running tasks, wait for operation to complete and > retry." > > I checked the log file engine.log: > > "2016-10-10 14:32:53,841 INFO > [org.ovirt.engine.core.bll.MaintenanceNumberOfVdssCommand] > (default task-15) [697e9736] Lock Acquired to object > 'EngineLock:{exclusiveLocks='null', > sharedLocks='[0001-0001-0001-0001-016a= ACTION_TYPE_FAILED_OBJECT_LOCKED>]'}' > 2016-10-10 14:32:53,843 WARN > [org.ovirt.engine.core.bll.MaintenanceNumberOfVdssCommand] > (default task-15) [697e9736] Validation of action 'MaintenanceNumberOfVdss' > failed for user admin@internal-authz. Reasons: > VAR__TYPE__HOST,VAR__ACTION__MAINTENANCE,VDS_CANNOT_MAINTENA > NCE_SPM_WITH_RUNNING_TASKS > 2016-10-10 14:32:53,843 INFO > [org.ovirt.engine.core.bll.MaintenanceNumberOfVdssCommand] > (default task-15) [697e9736] Lock freed to object > 'EngineLock:{exclusiveLocks='null', > sharedLocks='[0001-0001-0001-0001-016a= ACTION_TYPE_FAILED_OBJECT_LOCKED>]'}' > 2016-10-10 14:32:53,851 ERROR [org.ovirt.engine.api.restapi. > resource.AbstractBackendResource] (default task-15) [] Operation Failed: > [Cannot switch Host to Maintenance mode. Host has asynchronous running > tasks," > > How can I revolve? > It seams that you have ongoing async operation on that host. If this it's true, I'd suggest to wait for them to complete. If it's not the case or that tasks somehow died, on the engine machine you have the /usr/share/ovirt-engine/setup/dbutils/taskcleaner.sh utility to remove that zombies. > > Regards > > > Nicola > > ___ > 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
[ovirt-users] Mantenance mode error
Hi, I have a problem. I try to put in maintenance mode the host, but the message that is displayed is this "Error while executing action: Cannot switch Host to Maintenance mode. Host has asynchronous running tasks, wait for operation to complete and retry." I checked the log file engine.log: "2016-10-10 14:32:53,841 INFO [org.ovirt.engine.core.bll.MaintenanceNumberOfVdssCommand] (default task-15) [697e9736] Lock Acquired to object 'EngineLock:{exclusiveLocks='null', sharedLocks='[0001-0001-0001-0001-016a=ACTION_TYPE_FAILED_OBJECT_LOCKED>]'}' 2016-10-10 14:32:53,843 WARN [org.ovirt.engine.core.bll.MaintenanceNumberOfVdssCommand] (default task-15) [697e9736] Validation of action 'MaintenanceNumberOfVdss' failed for user admin@internal-authz. Reasons: VAR__TYPE__HOST,VAR__ACTION__MAINTENANCE,VDS_CANNOT_MAINTENANCE_SPM_WITH_RUNNING_TASKS 2016-10-10 14:32:53,843 INFO [org.ovirt.engine.core.bll.MaintenanceNumberOfVdssCommand] (default task-15) [697e9736] Lock freed to object 'EngineLock:{exclusiveLocks='null', sharedLocks='[0001-0001-0001-0001-016a=ACTION_TYPE_FAILED_OBJECT_LOCKED>]'}' 2016-10-10 14:32:53,851 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-15) [] Operation Failed: [Cannot switch Host to Maintenance mode. Host has asynchronous running tasks," How can I revolve? Regards Nicola ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] mantenance mode error
Hi, it was alr3eady answered in previous emails http://lists.ovirt.org/pipermail/users/2014-November/028985.html > > login to your SPM host and run the following > > > > vdsClient -s 0 getAllTasksStatuses > > > > You can than use > > > > stopTask > > > > stop async task > > > > and then > > > > clearTask > > > > clear async task 30.06.2016, 15:21, "nicola.gentile.to" :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='[0001-0001-0001-0001-037d=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_TASKS2016-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='[0001-0001-0001-0001-037d=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 advanceNicola___Users mailing listUsers@ovirt.orghttp://lists.ovirt.org/mailman/listinfo/users -- С уважением, Краснобаев Михаил. ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] mantenance mode error
On Thu, Jun 30, 2016 at 4:08 PM, nicola.gentile.to 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 ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] mantenance mode error
On Thu, Jun 30, 2016 at 3:20 PM, nicola.gentile.to 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='[0001-0001-0001-0001-037d= 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='[0001-0001-0001-0001-037d= 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 Nir > > Thanks in advance > > Nicola > ___ > 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
[ovirt-users] mantenance mode error
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='[0001-0001-0001-0001-037d=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='[0001-0001-0001-0001-037d=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 ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users