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

Missing error message on the "Nodes" tab when DeepSea is not configured

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.6.1
    • Fix Version/s: None
    • Component/s: WebUI
    • Labels:

      Description

      When installing oA manually without configuring DeepSea, oA does not print an error message (e.g. a Toasty) about a missing DeepSea configuration when opening the "Nodes" tab. It just returns an empty datatable, while the backend correctly logs an error:

      2017-11-29 13:53:15,061 2065 mod_wsgi ERROR ceph_deployment.models.ceph_minion#merge_pillar_metadata - failed to get minions
      Traceback (most recent call last):
        File "/usr/share/openattic/ceph_deployment/models/ceph_minion.py", line 100, in merge_pillar_metadata
          minions = DeepSea.instance().get_minions()
        File "/usr/share/openattic/deepsea.py", line 110, in get_minions
          keys = self.key_list()
        File "/usr/share/openattic/rest_client.py", line 408, in func_wrapper
          **kwargs)
        File "/usr/share/openattic/rest_client.py", line 320, in func_wrapper
          raise e
      RequestException: Salt REST API cannot be reached: Name or service not known [errno -2]. Please check your configuration and that the API endpoint is accessible
      

       Instead of silently ignoring this error, the oA WebUI should either display a toasty error, or show a clear error message like it's done on the NFS and iSCSI management tabs.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            lgrimmer Grimmer, Lenz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: