Uploaded image for project: 'Red Hat OpenShift Data Science'
  1. Red Hat OpenShift Data Science
  2. RHODS-5079

Dashboard logs report error in fetching some kube object when users log for the first time

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • RHODS_1.18.0_GA
    • RHODS_1.16.0_GA
    • UI
    • RHODS 1.18
    • Low

      Description of problem:

      Log of dashboard pods report errors about missing secrets and configmap after user performs log in:

      {"level":50,"time":1661789602669,"pid":108,"hostname":"rhods-dashboard-78bc9d868-bpt8f","msg":"Configmap jupyterhub-singleuser-profile-ldap-2duser2-envs could not be read, HttpError: HTTP request failed"}95{"level":50,"time":1661789602834,"pid":108,"hostname":"rhods-dashboard-78bc9d868-bpt8f","msg":"Secret jupyterhub-singleuser-profile-ldap-2duser2-envs could not be read, HttpError: HTTP request failed"}

      UPDATE 2022/09/26:

      Adding logs for CM and PVC. Moreover, the following logs replace the generic "HTTP request failed" with more descriptive message. This change was implemented in rhods v1.17 live build

      {"level":50,"time":1664204535677,"pid":79,"hostname":"rhods-dashboard-695d7ddcd8-bwj6s","msg":"Configmap
       jupyterhub-singleuser-profile-ldap-2dadmin19-envs could not be read, 
      NotFoundError: configmaps 
      \"jupyterhub-singleuser-profile-ldap-2dadmin19-envs\" not found"}{"level":50,"time":1664204535911,"pid":79,"hostname":"rhods-dashboard-695d7ddcd8-bwj6s","msg":"Secret
       jupyterhub-singleuser-profile-ldap-2dadmin19-envs could not be read, 
      secrets \"jupyterhub-singleuser-profile-ldap-2dadmin19-envs\" not 
      found"}{"level":50,"time":1664204551549,"pid":79,"hostname":"rhods-dashboard-695d7ddcd8-bwj6s","msg":"Configmap
       jupyterhub-singleuser-profile-ldap-2dadmin19-envs could not be read, 
      NotFoundError: configmaps 
      \"jupyterhub-singleuser-profile-ldap-2dadmin19-envs\" not found"}{"level":50,"time":1664204551550,"pid":79,"hostname":"rhods-dashboard-695d7ddcd8-bwj6s","msg":"Secret
       jupyterhub-singleuser-profile-ldap-2dadmin19-envs could not be read, 
      secrets \"jupyterhub-singleuser-profile-ldap-2dadmin19-envs\" not 
      found"}{"level":50,"time":1664204551551,"pid":79,"hostname":"rhods-dashboard-695d7ddcd8-bwj6s","msg":"PVC
       jupyterhub-nb-ldap-2dadmin19-pvc could not be read, 
      persistentvolumeclaims \"jupyterhub-nb-ldap-2dadmin19-pvc\" not found"}

      Prerequisites (if any, like setup, operators/versions):

      Install RHODS

      Steps to Reproduce

      1. Log in RHOD Dashboard
      2. check the logs in Dashboard pods

      Actual results:

      errors about user's secrets, configmap and PVC impossible to read are reported in the logs of Dashboard pods when users log in for the first time

      Expected results:

      no errors about user's secrets, configmap and PVC impossible to read are reported in the logs of Dashboard pods when users log in for the first time

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Build Details:

      RHODS v1.16.0-dashboard-kfnbc

      Workaround:

      Additional info:

      • screenshot and logs attached
      • dashboard tried to fetch the user secrets (e.g., jupyterhub-singleuser-profile-ldap-2dadmin19-envs), config map and pvc but if this is the very first time a user is logging in, those objects have not been created yet. 

              aballantyne Andrew Ballantyne
              rhn-support-bdattoma Berto D'Attoma
              Berto D'Attoma Berto D'Attoma
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: