Uploaded image for project: 'openATTIC'
  1. openATTIC
  2. OP-1721

Error: Logical volume in use

    XMLWordPrintable

    Details

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

      Description

      Made steps:

      • Created a block volume
      • Created a map (iSCSI)
      • Tried to delete the volume

      The following error occurs in /var/log/openattic/openattic.log:

      2016-11-11 11:34:57,345 - ERROR - exception#custom_handler - Internal Server Error: {u'kwargs': {u'pk': u'166'}, u'args': (), u'request': <rest_framework.request.Request object at 0x7f772209fc50>, u'view': <volumes.restapi.VolumeProxyViewSet object at 0x7f772209fe50>}
      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 284, in delete
          self._delete()
        File "/srv/openattic/backend/volumes/models.py", line 293, in _delete
          obj.delete()
        File "/srv/openattic/backend/lvm/models.py", line 477, in delete
          self.uninstall()
        File "/srv/openattic/backend/lvm/models.py", line 433, in uninstall
          self.lvm.lvchange(self.path, False)
        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 51, in loggedfunc
          return func(*args, **kwargs)
        File "/srv/openattic/backend/systemd/plugins.py", line 99, in wrapper
          return meth(self, *args, **kwargs)
        File "/srv/openattic/backend/lvm/systemapi.py", line 165, in lvchange
          invoke(["/sbin/lvchange", ('-a' + {False: 'n', True: 'y'}[active]), device])
        File "/srv/openattic/backend/systemd/procutils.py", line 119, in invoke
          raise SystemError("%s failed: %s" % (cmdline, procerr))
      SystemError: "/sbin/lvchange" "-an" "/dev/vg-test02/protractor_wizardTest_blockvol1" failed:   Logical volume vg-test02/protractor_wizardTest_blockvol1 in use.
      

        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: