Uploaded image for project: 'openATTIC'
  1. openATTIC
  2. OP-1809 gatling-rest-tests errors
  3. OP-1831

ValueError in runsystemd.py: there is already an open queue

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Backend: Local Storage
    • Labels:

      Description

      2016-12-21 10:04:26,607 - INFO - openattic_systemd#_release_acquired_locks - [6577/:1.53] Releasing acquired lock '/var/lock/openattic/volume-9f24c1ff-d0d8-4c94-8a79-258858ecccfd'.
      2016-12-21 10:04:26,642 - INFO - openattic_systemd#loggedfunc - Calling start_queue()
      2016-12-21 10:04:26,643 - INFO - openattic_systemd#loggedfunc - Calling acquire_lock(dbus.String(u'/var/lock/openattic/volume-5babf0a8-a711-47c1-aa00-fedb69c18926'))
      2016-12-21 10:04:26,658 - INFO - openattic_systemd#loggedfunc - Calling /nagios::writeconf()
      2016-12-21 10:04:26,658 - INFO - openattic_systemd#wrapper - [6577/:1.40] Deferring call to /nagios::writeconf()
      2016-12-21 10:04:26,658 - INFO - openattic_systemd#loggedfunc - Calling /nagios::restart_service()
      2016-12-21 10:04:26,658 - INFO - openattic_systemd#wrapper - [6577/:1.40] Deferring call to /nagios::restart_service()
      2016-12-21 10:04:26,666 - INFO - openattic_systemd#loggedfunc - Calling /zfs::zfs_destroy_volume(dbus.String(u'gatling_zpool/gatling_volume'))
      2016-12-21 10:04:26,667 - INFO - openattic_systemd#wrapper - [6577/:1.40] Deferring call to /zfs::zfs_destroy_volume(dbus.String(u'gatling_zpool/gatling_volume'))
      2016-12-21 10:04:26,684 - INFO - openattic_systemd#loggedfunc - Calling run_queue()
      2016-12-21 10:04:26,684 - INFO - openattic_systemd#_run_queue - [6577/:1.40] Incoming Queue Dump:
      2016-12-21 10:04:26,685 - INFO - openattic_systemd#_run_queue - [6577/:1.40] -> /nagios::writeconf()
      2016-12-21 10:04:26,685 - INFO - openattic_systemd#_run_queue - [6577/:1.40] -> /nagios::restart_service()
      2016-12-21 10:04:26,685 - INFO - openattic_systemd#_run_queue - [6577/:1.40] -> /zfs::zfs_destroy_volume(dbus.String(u'gatling_zpool/gatling_volume'))
      2016-12-21 10:04:26,685 - INFO - openattic_systemd#_run_queue - [6577/:1.40] End of queue dump.
      2016-12-21 10:04:26,685 - INFO - openattic_systemd#_run_queue - [6577/:1.40] Acquiring lock '/var/lock/openattic/volume-5babf0a8-a711-47c1-aa00-fedb69c18926'...
      2016-12-21 10:04:26,685 - INFO - openattic_systemd#_run_queue - [6577/:1.40] Acquired lock '/var/lock/openattic/volume-5babf0a8-a711-47c1-aa00-fedb69c18926'.
      2016-12-21 10:04:26,685 - INFO - openattic_systemd#_run_queue - [6577/:1.40] Executing deferred call to /nagios::writeconf()
      2016-12-21 10:04:26,715 - INFO - openattic_systemd#_run_queue - [6577/:1.40] Executing deferred call to /nagios::restart_service()
      2016-12-21 10:04:26,732 - INFO - openattic_systemd#service_command - service_command(nagios3): invoking `systemctl reload-or-restart nagios3`
      2016-12-21 10:04:26,816 - INFO - openattic_systemd#_run_queue - [6577/:1.40] Executing deferred call to /zfs::zfs_destroy_volume(dbus.String(u'gatling_zpool/gatling_volume'))
      2016-12-21 10:04:26,829 - ERROR - openattic_systemd#invoke - > "zfs" "destroy" "gatling_zpool/gatling_volume"
      E cannot destroy 'gatling_zpool/gatling_volume': dataset is busy
      2016-12-21 10:04:26,830 - ERROR - openattic_systemd#_run_queue - Received error:
      Traceback (most recent call last):
        File "/srv/openattic/backend/systemd/management/commands/runsystemd.py", line 117, in _run_queue
          func(scope, *args, **kwargs)
        File "/srv/openattic/backend/zfs/systemapi.py", line 87, in zfs_destroy_volume
          invoke(["zfs", "destroy", volume])
        File "/srv/openattic/backend/systemd/procutils.py", line 116, in invoke
          raise SystemError("%s failed: %s" % (cmdline, procerr))
      SystemError: "zfs" "destroy" "gatling_zpool/gatling_volume" failed: cannot destroy 'gatling_zpool/gatling_volume': dataset is busy
      
      
      2016-12-21 10:04:26,830 - INFO - openattic_systemd#_release_acquired_locks - [6577/:1.40] Releasing acquired lock '/var/lock/openattic/volume-5babf0a8-a711-47c1-aa00-fedb69c18926'.
      2016-12-21 10:04:27,054 - INFO - openattic_systemd#loggedfunc - Calling /volumes::fs_stat(dbus.String(u'/media/gatling_zpool'))
      2016-12-21 10:04:27,146 - INFO - openattic_systemd#loggedfunc - Calling start_queue()
      2016-12-21 10:04:27,147 - ERROR - exception#custom_handler - Internal Server Error: {u'kwargs': {}, u'args': (), u'request': <rest_framework.request.Request object at 0x7fdfebb88850>, u'view': <volumes.restapi.VolumeProxyViewSet object at 0x7fdfebb886d0>}
      Traceback (most recent call last):
        File "/usr/lib/python2.7/dist-packages/rest_framework/views.py", line 463, in dispatch
          response = handler(request, *args, **kwargs)
        File "/srv/openattic/backend/rest/multinode/handlers.py", line 101, in create
          return super(RequestHandlers, self).create(request, args, kwargs)
        File "/srv/openattic/backend/volumes/restapi.py", line 462, in create
          "is_protected": get_request_data(request).get('is_protected', False)
        File "/srv/openattic/backend/volumes/models.py", line 342, in create_volume
          return self.volumepool.volumepool.create_volume(name, megs, options).storageobj
        File "/srv/openattic/backend/volumes/models.py", line 674, in create_volume
          with Transaction():
        File "/srv/openattic/backend/systemd/helpers.py", line 111, in __enter__
          get_dbus_object("/").start_queue()
        File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
          return self._proxy_method(*args, **keywords)
        File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
          **keywords)
        File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
          message, timeout)
      DBusException: org.freedesktop.DBus.Python.ValueError: Traceback (most recent call last):
        File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 707, in _message_cb
          retval = candidate_method(self, *args, **keywords)
        File "/srv/openattic/backend/systemd/plugins.py", line 57, in loggedfunc
          return func(*args, **kwargs)
        File "/srv/openattic/backend/systemd/management/commands/runsystemd.py", line 93, in start_queue
          raise ValueError("there is already an open queue")
      ValueError: there is already an open queue
      2016-12-21 10:04:27,241 - INFO - openattic_systemd#loggedfunc - Calling start_queue()
      2016-12-21 10:04:27,242 - ERROR - exception#custom_handler - Internal Server Error: {u'kwargs': {u'pk': u'38'}, u'args': (), u'request': <rest_framework.request.Request object at 0x7fdfebc76bd0>, u'view': <volumes.restapi.VolumeProxyViewSet object at 0x7fdfebb7bfd0>}
      Traceback (most recent call last):
        File "/usr/lib/python2.7/dist-packages/rest_framework/views.py", line 463, in dispatch
          response = handler(request, *args, **kwargs)
        File "/srv/openattic/backend/volumes/restapi.py", line 516, in destroy
          return super(VolumeProxyViewSet, self).destroy(request, args, kwargs)
        File "/srv/openattic/backend/rest/multinode/handlers.py", line 110, in destroy
          return super(RequestHandlers, self).destroy(request, args, kwargs)
        File "/usr/lib/python2.7/dist-packages/rest_framework/mixins.py", line 87, in destroy
          self.perform_destroy(instance)
        File "/usr/lib/python2.7/dist-packages/rest_framework/mixins.py", line 91, in perform_destroy
          instance.delete()
        File "/srv/openattic/backend/volumes/models.py", line 283, in delete
          with Transaction(background=False):
        File "/srv/openattic/backend/systemd/helpers.py", line 111, in __enter__
          get_dbus_object("/").start_queue()
        File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
          return self._proxy_method(*args, **keywords)
        File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
          **keywords)
        File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
          message, timeout)
      DBusException: org.freedesktop.DBus.Python.ValueError: Traceback (most recent call last):
        File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 707, in _message_cb
          retval = candidate_method(self, *args, **keywords)
        File "/srv/openattic/backend/systemd/plugins.py", line 57, in loggedfunc
          return func(*args, **kwargs)
        File "/srv/openattic/backend/systemd/management/commands/runsystemd.py", line 93, in start_queue
          raise ValueError("there is already an open queue")
      ValueError: there is already an open queue
      
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              lpaduano Paduano, Laura
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: