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

Nodes tab: KeyError: 'hostname'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.4
    • Fix Version/s: 3.5.0
    • Component/s: Backend: Ceph
    • Labels:
      None

      Description

      2017-09-05 09:23:04,761 2999 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 92, in list
          page = self.paginate_queryset(self.object_list)
        File "/usr/lib/python2.7/site-packages/rest_framework/generics.py", line 158, in paginate_queryset
          page_number = paginator.validate_number(page)
        File "/usr/lib/python2.7/site-packages/django/core/paginator.py", line 39, in validate_number
          if number > self.num_pages:
        File "/usr/lib/python2.7/site-packages/django/core/paginator.py", line 86, in _get_num_pages
          if self.count == 0 and not self.allow_empty_first_page:
        File "/usr/lib/python2.7/site-packages/django/core/paginator.py", line 72, in _get_count
          self._count = self.object_list.count()
        File "/srv/openattic/backend/nodb/models.py", line 199, in count
          return len(self._filtered_data)
        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 "/srv/openattic/backend/nodb/models.py", line 161, in _filtered_data
          filtered = [obj for obj in self._data()
        File "/srv/openattic/backend/nodb/models.py", line 93, in _data
          objects = self.model.get_all_objects(context, query=self._query)
        File "/srv/openattic/backend/ceph_deployment/models/ceph_minion.py", line 63, in get_all_objects
          minions = merge_pillar_metadata()
        File "/srv/openattic/backend/ceph_deployment/models/ceph_minion.py", line 76, in merge_pillar_metadata
          metadata = all_metadata()
        File "/srv/openattic/backend/ceph_deployment/models/ceph_minion.py", line 98, in all_metadata
          hosts = reduce(metadata_by_cluster, CephCluster.objects.all(), {})
        File "/srv/openattic/backend/ceph_deployment/models/ceph_minion.py", line 155, in metadata_by_cluster
          hosts.setdefault(mds['hostname'], []).append(mds)
      KeyError: 'hostname'
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              swagner Sebastian Wagner
              Reporter:
              swagner Sebastian Wagner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: