Uploaded image for project: 'openATTIC'
  1. openATTIC
  2. OP-1670 Errors when installing openATTIC on a plain Ubuntu xenial
  3. OP-1734

Traceback after running oaconfig install a second time

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Backend: Ceph, CLI
    • Labels:

      Description

      This happened after OP-1733.
      I need to check if the error is reproducible.

      Checking Ceph cluster ceph (e6597ef5-cacc-4315-bbc1-c56a2b62beba)...
      Traceback (most recent call last):
        File "manage.py", line 26, in <module>
          execute_from_command_line(sys.argv)
        File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
          utility.execute()
        File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 346, in execute
          self.fetch_command(subcommand).run_from_argv(self.argv)
        File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 394, in run_from_argv
          self.execute(*args, **cmd_options)
        File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
          output = self.handle(*args, **options)
        File "/srv/openattic/backend/sysutils/management/commands/post_install.py", line 49, in handle
          sysutils.models.post_install.send(sender=sysutils.models)
        File "/usr/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 189, in send
          response = receiver(signal=self, sender=sender, **named)
        File "/srv/openattic/backend/ceph/management/__init__.py", line 60, in update
          cluster = ceph_models.Cluster.objects.get(uuid=conf.get("global", "fsid"))
        File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 127, in manager_method
          return getattr(self.get_queryset(), name)(*args, **kwargs)
        File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 338, in get
          (self.model._meta.object_name, num)
      ceph.models.MultipleObjectsReturned: get() returned more than one Cluster -- it returned 2!
      
      

      ceph -s output (on oA system) displays only one cluster:

          cluster e6597ef5-cacc-4315-bbc1-c56a2b62beba
           health HEALTH_OK
           monmap e1: 1 mons at {<hostname>=<IP>:6789/0}
                  election epoch 5, quorum 0 <hostname>
            fsmap e15: 1/1/1 up {0=0=up:active}
           osdmap e27: 1 osds: 1 up, 1 in
                  flags sortbitwise
            pgmap v6817: 120 pgs, 8 pools, 3704 bytes data, 191 objects
                  3952 MB used, 9025 MB / 13695 MB avail
                       120 active+clean
      

        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: