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

/var/lock/openattic: Permission denied

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.16, 2.0.17, 2.0.18
    • Fix Version/s: None
    • Component/s: Backend
    • Labels:

      Description

      2016-12-22 10:49:19,511 - INFO - openattic_systemd#loggedfunc - Calling /volumes::fs_mount(dbus.String(u'ext4'), dbus.String(u'/dev/vg-oa-gatl-dev-1/gatling_volume'), dbus.String(u'/media/gatling_volume'), dbus.Array([], signature=dbus.Signature('as')))
      2016-12-22 10:49:19,511 - INFO - openattic_systemd#wrapper - [2511/:1.32] Deferring call to /volumes::fs_mount(dbus.String(u'ext4'), dbus.String(u'/dev/vg-oa-gatl-dev-1/gatling_volume'), dbus.String(u'/media/gatling_volume'), dbus.Array([], signature=dbus.Signature('as')))
      2016-12-22 10:49:19,513 - INFO - openattic_systemd#loggedfunc - Calling /volumes::fs_chown(dbus.String(u'/media/gatling_volume'), dbus.String(u'openattic'), dbus.String(u'users'))
      2016-12-22 10:49:19,513 - INFO - openattic_systemd#wrapper - [2511/:1.32] Deferring call to /volumes::fs_chown(dbus.String(u'/media/gatling_volume'), dbus.String(u'openattic'), dbus.String(u'users'))
      2016-12-22 10:49:19,513 - INFO - openattic_systemd#loggedfunc - Calling run_queue_background()
      2016-12-22 10:49:19,522 - INFO - openattic_systemd#_run_queue - [15081/:1.32] Incoming Queue Dump:
      2016-12-22 10:49:19,523 - INFO - openattic_systemd#_run_queue - [15081/:1.32] -> /nagios::restart_service()
      2016-12-22 10:49:19,523 - INFO - openattic_systemd#_run_queue - [15081/:1.32] -> /lvm::lvcreate(dbus.String(u'vg-oa-gatl-dev-1'), dbus.String(u'gatling_volume'), dbus.Int32(1000), dbus.String(u''))
      2016-12-22 10:49:19,523 - INFO - openattic_systemd#_run_queue - [15081/:1.32] -> /lvm::lvchange(dbus.String(u'/dev/vg-oa-gatl-dev-1/gatling_volume'), dbus.Boolean(True))
      2016-12-22 10:49:19,523 - INFO - openattic_systemd#_run_queue - [15081/:1.32] -> /nagios::writeconf()
      2016-12-22 10:49:19,524 - INFO - openattic_systemd#_run_queue - [15081/:1.32] -> /nagios::restart_service()
      2016-12-22 10:49:19,524 - INFO - openattic_systemd#_run_queue - [15081/:1.32] -> /volumes::e4fs_format(dbus.String(u'/dev/vg-oa-gatl-dev-1/gatling_volume'), dbus.String(u'gatling_volume'), dbus.Int32(-1), dbus.Int32(-1))
      2016-12-22 10:49:19,524 - INFO - openattic_systemd#_run_queue - [15081/:1.32] -> /volumes::write_fstab(dbus.Boolean(False), dbus.Int32(0))
      2016-12-22 10:49:19,525 - INFO - openattic_systemd#_run_queue - [15081/:1.32] -> /volumes::fs_mount(dbus.String(u'ext4'), dbus.String(u'/dev/vg-oa-gatl-dev-1/gatling_volume'), dbus.String(u'/media/gatling_volume'), dbus.Array([], signature=dbus.Signature('as')))
      2016-12-22 10:49:19,525 - INFO - openattic_systemd#_run_queue - [15081/:1.32] -> /volumes::fs_chown(dbus.String(u'/media/gatling_volume'), dbus.String(u'openattic'), dbus.String(u'users'))
      2016-12-22 10:49:19,525 - INFO - openattic_systemd#_run_queue - [15081/:1.32] End of queue dump.
      2016-12-22 10:49:19,525 - INFO - openattic_systemd#loggedfunc - Calling /volumes::fs_stat(dbus.String(u'/media/gatling_volume'))
      2016-12-22 10:49:19,526 - INFO - openattic_systemd#_run_queue - [15081/:1.32] Acquiring lock '/var/lock/openattic/volume-3de135d4-a338-4912-9553-9083cc73d476'...
      2016-12-22 10:49:19,526 - INFO - openattic_systemd#_run_queue - [15081/:1.32] Acquired lock '/var/lock/openattic/volume-3de135d4-a338-4912-9553-9083cc73d476'.
      2016-12-22 10:49:19,526 - ERROR - root#acquire_lock - /var/lock/openattic/volume-3de135d4-a338-4912-9553-9083cc73d476 exists but stat() failed: Permission denied
      2016-12-22 10:49:19,526 - INFO - openattic_systemd#_run_queue - [15081/:1.32] Executing deferred call to /nagios::restart_service()
      2016-12-22 10:49:19,547 - INFO - openattic_systemd#service_command - service_command(nagios3): invoking `systemctl reload-or-restart nagios3`
      2016-12-22 10:49:19,527 - ERROR - exception#custom_handler - Internal Server Error: None
      Traceback (most recent call last):
        File "/usr/lib/python2.7/dist-packages/rest_framework/views.py", line 400, 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 466, in create
          return Response(serializer.data, status=status.HTTP_201_CREATED)
        File "/usr/lib/python2.7/dist-packages/rest_framework/serializers.py", line 572, in data
          self._data = self.to_native(obj)
        File "/srv/openattic/backend/volumes/restapi.py", line 320, in to_native
          data.update(self.super_to_native_or_to_representation(obj))
        File "/srv/openattic/backend/rest/utilities.py", line 100, in super_to_native_or_to_representation
          return super(ToNativeToRepresentationMixin, self).to_native(obj)
        File "/usr/lib/python2.7/dist-packages/rest_framework/serializers.py", line 351, in to_native
          value = field.field_to_native(obj, field_name)
        File "/usr/lib/python2.7/dist-packages/rest_framework/fields.py", line 1041, in field_to_native
          value = getattr(self.parent, self.method_name)(obj)
        File "/srv/openattic/backend/volumes/restapi.py", line 340, in get_status
          return obj.get_status()
        File "/srv/openattic/backend/volumes/models.py", line 508, in get_status
          if self.is_locked:
        File "/srv/openattic/backend/volumes/models.py", line 219, in is_locked
          with Lockfile(self.lockfile, 0):
        File "/srv/openattic/backend/systemd/lockutils.py", line 190, in __enter__
          self.lock = acquire_lock(self.lockfile, self.max_wait)
        File "/srv/openattic/backend/systemd/lockutils.py", line 88, in acquire_lock
          fd = os.open(lockfile, os.O_RDWR)
      OSError: [Errno 13] Permission denied: '/var/lock/openattic/volume-3de135d4-a338-4912-9553-9083cc73d476'
      2016-12-22 10:49:19,603 - INFO - openattic_systemd#_run_queue - [15081/:1.32] Executing deferred call to /lvm
      
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: