Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-1262

Quarkus deployments expecting RHOSAK service binding fail before binding is created

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 2.2.1.ER1
    • OpenShift, team/eng
    • None
    • Hide

      1. Prepare RHOSAK cluster:

      rhoas login --token=${OFFLINE_TOKEN}
      rhoas kafka create
      rhoas kafka topic create quotes
      rhoas kafka topic create quote-requests
      

      2. checkout Quarkus quickstarts

      git clone git@github.com:quarkusio/quarkus-quickstarts.git
      cd quarkus-quickstarts
      git checkout 2.2
      

      3. Add openshift, kubernetes-service-binding extensions to both kafka-quickstart/producer and kafka-quickstart/consumer and deploy them to OpenShift

      mvn quarkus:add-extension -Dextensions="openshift, kubernetes-service-binding"
      mvn clean package -Dquarkus.container-image.build=true -DskipTests -Dquarkus.container-image.push=true
      

      By this time, the application is unrecoverable/unhealthy.

      Show
      1. Prepare RHOSAK cluster: rhoas login --token=${OFFLINE_TOKEN} rhoas kafka create rhoas kafka topic create quotes rhoas kafka topic create quote-requests 2. checkout Quarkus quickstarts git clone git@github.com:quarkusio/quarkus-quickstarts.git cd quarkus-quickstarts git checkout 2.2 3. Add openshift , kubernetes-service-binding extensions to both kafka-quickstart/producer and kafka-quickstart/consumer and deploy them to OpenShift mvn quarkus:add-extension -Dextensions= "openshift, kubernetes-service-binding" mvn clean package -Dquarkus.container-image.build=true -DskipTests -Dquarkus.container-image.push=true By this time, the application is unrecoverable/unhealthy.
    • Documentation (Ref Guide, User Guide, etc.), User Experience
    • Hide

      After the deployment failed, for both the processor and producer deployment/namespace execute:

      rhoas cluster bind --ns=${NAMESPACE} --app-name=${DEPLOYMENT}
      oc rollout ${DEPLOYMENT} --namespace=${NAMESPACE}
      
      Show
      After the deployment failed, for both the processor and producer deployment/namespace execute: rhoas cluster bind --ns=${NAMESPACE} --app-name=${DEPLOYMENT} oc rollout ${DEPLOYMENT} --namespace=${NAMESPACE}

    Description

      Quarkus applications expecting RHOSAK service binding are unhealthy/unrecoverable/terminated before service binding becomes available if they are deployed to OpenShift.

      This is because the applications can be 'connected' by rhoas cluster bind only once the applications exist in OpenShift. But the applications will inevitably become unhealthy/unrecoverable without Kafka configuration.

      Attachments

        Issue Links

          Activity

            People

              gandrian Georgios Andrianakis
              mjurc@redhat.com Michal Jurc
              Michal Jurc Michal Jurc
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: