Uploaded image for project: 'CORD'
  1. CORD
  2. CORD-1721

Error when trimming auth cache in apihelper / core container

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.0, 4.0
    • Component/s: None
    • Labels:
      None

      Description

      The following was observed in an A-CORD error report:

      ERROR:root:Exception calling application: 'xosadmin@opencord.org:XXXJgqhzks5kBIbxN8Qd'
      Traceback (most recent call last):
        File "/usr/local/lib/python2.7/dist-packages/grpc/_server.py", line 364, in _call_behavior
          return behavior(argument, context), True
        File "/opt/xos/coreapi/apihelper.py", line 24, in wrapper
          return function(*args, **kwargs)
        File "/opt/xos/coreapi/xos_grpc_api.py", line 3912, in FilterControllerUser
          user=self.authenticate(context)
        File "/opt/xos/coreapi/apihelper.py", line 361, in authenticate
          user = cached_authenticator.authenticate(username=username, password=password)
        File "/opt/xos/coreapi/apihelper.py", line 73, in authenticate
          self.trim()
        File "/opt/xos/coreapi/apihelper.py", line 95, in trim
          del self.cached_creds[k]
      KeyError: 'xosadmin@opencord.org:XXXJgqhzks5kBIbxN8Qd'
      

      I was unable to reproduce this issue. It may be due to a race of two clients trying to authenticate at the same time.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            scottb Scott Baker
            Reporter:
            scottb Scott Baker
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes