Uploaded image for project: 'Optimization Framework'
  1. Optimization Framework
  2. OPTFRA-1099

AAF cannot be disabled for OSDF

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Kohn Release
    • Kohn Release
    • OSDF

      During my tests for Service Mesh compatibility, I need to disable the HTTPS configuration for all clients.
      In my Patch https://gerrit.onap.org/r/c/oom/+/130621
      I disabled AAF and configured all client interfaces to use HTTP.
      But during the startup the app tries to connect to aaf-sms to fetch secrets, which fails:
      (https://logs.onap.org/onap-integration/daily/onap-daily-dt-oom-sm-master/2022-09/21_13-47/infrastructure-healthcheck/k8s-teardown/kubernetes-status/pod-onap-oof-6bf8c58c79-fzs86-oof-logs.html)

              Traceback (most recent call last):
        File "/opt/osdf/osdfapp.py", line 207, in 
          run_app()
        File "/opt/osdf/osdf/apps/baseapp.py", line 213, in run_app
          sms.load_secrets()
        File "/opt/osdf/osdf/adapters/aaf/sms.py", line 78, in load_secrets
          secret_dict = retrieve_secrets()
        File "/opt/osdf/osdf/adapters/aaf/sms.py", line 68, in retrieve_secrets
          secrets = sms_client.getSecretNames(domain)
        File "/usr/local/lib/python3.9/site-packages/onapsmsclient/__init__.py", line 192, in getSecretNames
          response = self._request('get', url)
        File "/usr/local/lib/python3.9/site-packages/onapsmsclient/__init__.py", line 126, in _request
          self._raiseException(response.status_code, errors)
        File "/usr/local/lib/python3.9/site-packages/onapsmsclient/__init__.py", line 89, in _raiseException
          raise UnexpectedError(errors)
      onapsmsclient.UnexpectedError: upstream connect error or disconnect/reset before headers. reset reason: protocol error
       

      Reason is the call of sms.load_secrets() (see https://git.onap.org/optf/osdf/tree/osdf/apps/baseapp.py#n213)

      , which should be IMHO disabled, if AAF is disabled (is_aaf_enabled: false ) or a 2nd option for SMS is required.

            andreasgeissler Andreas Geissler
            andreasgeissler Andreas Geissler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: