Uploaded image for project: 'Spring Boot & Cloud'
  1. Spring Boot & Cloud
  2. SB-883

Cryptic ClassCastException in f-m-p when host verification fails on Openshift

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • SB-2018-09-28, SB-2018-10-12

      f-m-p is trying to detect openshift by sending an http requests to query all the root paths. If for any reason this request fails (e.g. ssl related reasons, network issues) f-m-p is considering the cluster to be vanilla kubernetes (and will use an instance of DefaultKubernetesClient). However, if the user has requested openshift mode then it will cast the DefaultKubernetesClient to OpenshiftClient leading to a class cast exception.

      We need to provide a more acurate error messsage to the user that indicates the real problem.

              ikanello1@redhat.com Ioannis Kanellos
              ikanello1@redhat.com Ioannis Kanellos
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: