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

REST-API test SystemError: 'Locks can only be acquired within transactions'

    XMLWordPrintable

    Details

      Description

      2016-12-21 10:15:38,276 - INFO - openattic_systemd#loggedfunc - Calling start_queue()
      2016-12-21 10:15:38,277 - INFO - openattic_systemd#loggedfunc - Calling acquire_lock(dbus.String(u'/var/lock/openattic/volume-46a73b2c-ff97-4cdc-8b9d-3fdc0aa7afa9'))
      2016-12-21 10:15:38,288 - INFO - openattic_systemd#loggedfunc - Calling /btrfs::delete_subvolume(dbus.String(u'/media/gatling_btrfs/gatling_volume'))
      2016-12-21 10:15:38,288 - INFO - openattic_systemd#wrapper - [6577/:1.88] Deferring call to /btrfs::delete_subvolume(dbus.String(u'/media/gatling_btrfs/gatling_volume'))
      2016-12-21 10:15:38,297 - INFO - openattic_systemd#loggedfunc - Calling /nagios::writeconf()
      2016-12-21 10:15:38,297 - INFO - openattic_systemd#wrapper - [6577/:1.88] Deferring call to /nagios::writeconf()
      2016-12-21 10:15:38,298 - INFO - openattic_systemd#loggedfunc - Calling /nagios::restart_service()
      2016-12-21 10:15:38,298 - INFO - openattic_systemd#wrapper - [6577/:1.88] Deferring call to /nagios::restart_service()
      2016-12-21 10:15:38,303 - INFO - openattic_systemd#loggedfunc - Calling /volumes::write_fstab(dbus.Boolean(True), dbus.Int32(23))
      2016-12-21 10:15:38,304 - INFO - openattic_systemd#wrapper - [6577/:1.88] Deferring call to /volumes::write_fstab(dbus.Boolean(True), dbus.Int32(23))
      2016-12-21 10:15:38,317 - INFO - openattic_systemd#loggedfunc - Calling run_queue()
      2016-12-21 10:15:38,317 - INFO - openattic_systemd#_run_queue - [6577/:1.88] Incoming Queue Dump:
      2016-12-21 10:15:38,318 - INFO - openattic_systemd#_run_queue - [6577/:1.88] -> /btrfs::delete_subvolume(dbus.String(u'/media/gatling_btrfs/gatling_volume'))
      2016-12-21 10:15:38,318 - INFO - openattic_systemd#_run_queue - [6577/:1.88] -> /nagios::writeconf()
      2016-12-21 10:15:38,318 - INFO - openattic_systemd#_run_queue - [6577/:1.88] -> /nagios::restart_service()
      2016-12-21 10:15:38,318 - INFO - openattic_systemd#_run_queue - [6577/:1.88] -> /volumes::write_fstab(dbus.Boolean(True), dbus.Int32(23))
      2016-12-21 10:15:38,318 - INFO - openattic_systemd#_run_queue - [6577/:1.88] End of queue dump.
      2016-12-21 10:15:38,318 - INFO - openattic_systemd#_run_queue - [6577/:1.88] Acquiring lock '/var/lock/openattic/volume-23382164-ea7f-4959-9561-9a55c8baeb90'...
      2016-12-21 10:15:38,318 - INFO - openattic_systemd#_run_queue - [6577/:1.88] Acquired lock '/var/lock/openattic/volume-23382164-ea7f-4959-9561-9a55c8baeb90'.
      2016-12-21 10:15:38,318 - INFO - openattic_systemd#_run_queue - [6577/:1.88] Acquiring lock '/var/lock/openattic/volume-46a73b2c-ff97-4cdc-8b9d-3fdc0aa7afa9'...
      2016-12-21 10:15:38,319 - INFO - openattic_systemd#_run_queue - [6577/:1.88] Acquired lock '/var/lock/openattic/volume-46a73b2c-ff97-4cdc-8b9d-3fdc0aa7afa9'.
      2016-12-21 10:15:38,319 - INFO - openattic_systemd#_run_queue - [6577/:1.88] Executing deferred call to /btrfs::delete_subvolume(dbus.String(u'/media/gatling_btrfs/gatling_volume'))
      2016-12-21 10:15:38,336 - INFO - openattic_systemd#_run_queue - [6577/:1.88] Executing deferred call to /nagios::writeconf()
      2016-12-21 10:15:38,372 - INFO - openattic_systemd#_run_queue - [6577/:1.88] Executing deferred call to /nagios::restart_service()
      2016-12-21 10:15:38,396 - INFO - openattic_systemd#service_command - service_command(nagios3): invoking `systemctl reload-or-restart nagios3`
      2016-12-21 10:15:38,473 - INFO - openattic_systemd#_run_queue - [6577/:1.88] Executing deferred call to /volumes::write_fstab(dbus.Boolean(True), dbus.Int32(23))
      2016-12-21 10:15:38,522 - INFO - openattic_systemd#_release_acquired_locks - [6577/:1.88] Releasing acquired lock '/var/lock/openattic/volume-23382164-ea7f-4959-9561-9a55c8baeb90'.
      2016-12-21 10:15:38,523 - INFO - openattic_systemd#_release_acquired_locks - [6577/:1.88] Releasing acquired lock '/var/lock/openattic/volume-46a73b2c-ff97-4cdc-8b9d-3fdc0aa7afa9'.
      2016-12-21 10:15:38,689 - INFO - openattic_systemd#loggedfunc - Calling acquire_lock(dbus.String(u'/var/lock/openattic/volume-23382164-ea7f-4959-9561-9a55c8baeb90'))
      2016-12-21 10:15:38,690 - INFO - openattic_systemd#loggedfunc - Calling discard_queue()
      2016-12-21 10:15:38,690 - INFO - openattic_systemd#_release_acquired_locks - [6577/:1.60] Releasing acquired locks: None acquired.
      2016-12-21 10:15:38,691 - ERROR - exception#custom_handler - Internal Server Error: {u'kwargs': {u'pk': u'54'}, u'args': (), u'request': <rest_framework.request.Request object at 0x7fdfebc72c90>, u'view': <volumes.restapi.VolumeProxyViewSet object at 0x7fdfebbe8ad0>}
      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 119, in update
          return super(RequestHandlers, self).update(request, args, kwargs)
        File "/srv/openattic/backend/volumes/restapi.py", line 479, in update
          storageobj.resize(int(get_request_data(request)["megs"]))
        File "/srv/openattic/backend/volumes/models.py", line 299, in resize
          self._resize(megs)
        File "/srv/openattic/backend/volumes/models.py", line 317, in _resize
          self.lock()
        File "/srv/openattic/backend/volumes/models.py", line 213, in lock
          get_dbus_object("/").acquire_lock(self.lockfile)
        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.SystemError: 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 186, in acquire_lock
          raise SystemError("Locks can only be acquired within transactions")
      SystemError: Locks can only be acquired within transactions
      
      

        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: