Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-2495

'oc login' should be robust in the face of gather failures

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 4.12.z
    • 4.12, 4.11
    • oc
    • None
    • Moderate
    • False
    • Hide

      None

      Show
      None
    • NA
    • Bug Fix

    Description

      Failures like:

      $ oc login --token=...
      
      Logged into "https://api..." as "..." using the token provided.
      
      Error from server (Timeout): the server was unable to return a response in the time allotted, but may still be processing the request (get projects.project.openshift.io)
      

      break login, which tries to gather information before saving the configuration, including a giant project list.

      Ideally login would be able to save the successful login credentials, even when the informative gathering had difficulties. And possibly the informative gathering could be made conditional (--quiet or similar?) so expensive gathering could be skipped in use-cases where the context was not needed.

      Attachments

        Issue Links

          Activity

            People

              aguclu@redhat.com Arda Guclu
              trking W. Trevor King
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: