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

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

    XMLWordPrintable

Details

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

      None

      Show
      None

    Description

      This is a clone of issue OCPBUGS-2495. The following is the description of the original issue:

      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

              jchaloup@redhat.com Jan Chaloupka
              openshift-crt-jira-prow OpenShift Prow Bot
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: