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

rbd.ImageNotFound error when trying to delete more than one RBD

    XMLWordPrintable

    Details

      Description

      RBDs will be deleted - but this error shows up in openattic.log as well as a notification pop-up in the UI (I was able to reproduce this error on a CI system as well)

      2017-06-08 13:28:07,833 4895 runsystemd INFO taskqueue.models#finish_task - Task finished: ({u'used_size': 0, u'name': u'test2', u'provisioned_size': 2147483648}, 46.1)
      2017-06-08 13:28:07,833 4895 runsystemd INFO taskqueue.models#transition - Task Transition: Running -> Finished
      2017-06-08 13:28:14,655 4953 mod_wsgi INFO requests.packages.urllib3.connectionpool#_get_conn - Resetting dropped connection: deepsea-ci-1.oa.suse.de
      2017-06-08 13:28:14,729 4965 mod_wsgi INFO requests.packages.urllib3.connectionpool#_new_conn - Starting new HTTP connection (1): deepsea-ci-1.oa.suse.de
      2017-06-08 13:28:14,738 4965 mod_wsgi INFO deepsea#_login - Salt API login successful
      2017-06-08 13:28:15,348 4895 runsystemd INFO openattic_systemd#loggedfunc - Calling /ceph::remove_nagios_configs(dbus.Array([dbus.String(u'rbd')], signature=dbus.Signature('s')))
      2017-06-08 13:28:15,349 4895 runsystemd INFO openattic_systemd#loggedfunc - Calling /ceph::write_rbd_nagios_configs()
      2017-06-08 13:28:15,629 4895 runsystemd INFO openattic_systemd#loggedfunc - Calling /ceph::remove_nagios_configs(dbus.Array([dbus.String(u'rbd')], signature=dbus.Signature('s')))
      2017-06-08 13:28:15,629 4895 runsystemd INFO openattic_systemd#loggedfunc - Calling /ceph::write_rbd_nagios_configs()
      2017-06-08 13:28:15,628 4953 mod_wsgi ERROR exception#custom_handler - Internal Server Error: None
      Traceback (most recent call last):
        File "/usr/lib/python2.7/site-packages/rest_framework/views.py", line 400, in dispatch
          response = handler(request, *args, **kwargs)
        File "/usr/lib/python2.7/site-packages/rest_framework/mixins.py", line 194, in destroy
          obj.delete()
        File "/usr/share/openattic/ceph/models.py", line 956, in delete
          self._update_nagios_configs()
        File "/usr/share/openattic/ceph/models.py", line 964, in _update_nagios_configs
          ceph.write_rbd_nagios_configs()
        File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
          **keywords)
        File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
          message, timeout)
      DBusException: org.freedesktop.DBus.Python.TypeError: Traceback (most recent call last):
        File "/usr/lib/python2.7/site-packages/dbus/service.py", line 707, in _message_cb
          retval = candidate_method(self, *args, **keywords)
        File "/usr/share/openattic/systemd/plugins.py", line 51, in loggedfunc
          return func(*args, **kwargs)
        File "/usr/share/openattic/systemd/plugins.py", line 99, in wrapper
          return meth(self, *args, **kwargs)
        File "/usr/share/openattic/ceph/systemapi.py", line 238, in write_rbd_nagios_configs
          for rbd in CephRbd.objects.filter(pool__name=pool.name):
        File "/usr/share/openattic/nodb/models.py", line 173, in next
          if self._current > self._max:
        File "/usr/lib/python2.7/site-packages/django/utils/functional.py", line 49, in __get__
          res = instance.__dict__[self.func.__name__] = self.func(instance)
        File "/usr/share/openattic/nodb/models.py", line 89, in _max
          return len(self._filtered_data) - 1
        File "/usr/lib/python2.7/site-packages/django/utils/functional.py", line 49, in __get__
          res = instance.__dict__[self.func.__name__] = self.func(instance)
        File "/usr/share/openattic/nodb/models.py", line 154, in _filtered_data
          filtered = [obj for obj in self._data()
        File "/usr/share/openattic/nodb/models.py", line 93, in _data
          objects = self.model.get_all_objects(context, query=self._query)
        File "/usr/share/openattic/ceph/models.py", line 861, in get_all_objects
          rbd, pool=pool, id=CephRbd.make_key(pool, rbd['name'])))) for (rbd, pool) in rbds]
        File "/usr/share/openattic/ceph/models.py", line 857, in <genexpr>
          for (image_name, pool)
        File "/usr/share/openattic/ceph/librados.py", line 878, in image_stat
          return self._call_librados(_action)
        File "/usr/share/openattic/ceph/librados.py", line 933, in _call_librados
          return call_librados(self.fsid, func, timeout)
        File "/usr/share/openattic/ceph/librados.py", line 273, in call_librados
          res = com1.recv()
        File "rbd.pyx", line 390, in rbd.OSError.__init__ (/home/abuild/rpmbuild/BUILD/ceph-12.0.3+git.1495798013.23dd2b67dc/build/src/pybind/rbd/pyrex/rbd.c:2257)
      TypeError: ('__init__() takes exactly 3 positional arguments (1 given)', <class 'rbd.ImageNotFound'>, ())
      
      2017-06-08 13:28:16,978 4895 runsystemd INFO openattic_systemd#loggedfunc - Calling /nagios::restart_service()
      2017-06-08 13:28:16,990 4895 runsystemd INFO openattic_systemd#service_command - service_command(icinga): invoking `systemctl reload-or-restart icinga`
      
      

      Ceph oA version:

      oa-pkg-sle-lp:/etc/ceph # ceph --version
      ceph version 12.0.3-152-g23dd2b67dc (23dd2b67dc4068018f22570be4154e06ed5f5a49)
      oa-pkg-sle-lp:/etc/ceph # ceph version
      ceph version v12.0.3-152-g23dd2b67dc (23dd2b67dc4068018f22570be4154e06ed5f5a49)
      
      oa-pkg-sle-lp:/etc/ceph # cat /usr/share/openattic/version.txt 
      [package]
      VERSION = 3.1.1
      STATE = snapshot
      REV = 384a275182fef410026d7d554664cd4c3c990a40
      BUILDDATE = 201706080638
      
      
      DS cluster Ceph version: ceph version v12.0.3-152-g23dd2b67dc (23dd2b67dc4068018f22570be4154e06ed5f5a49)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: