Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-24943

Cannot upgrade to EAP 74 Helm Chart v 1.1.1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • None
    • HC-EAP74-1.1.1
    • HelmChart
    • None
    • False
    • None
    • False
    • Workaround Exists
    • Hide

      Before upgrading the helm release, delete the services that are managed by Helm so that they are recreated with the correct configuration:

      $ kubectl delete service <helm-release-name>
      $ kubectl delete service <helm-release-name>-ping
      $ helm upgrade <helm-release-name> jboss-eap/eap74

      Show
      Before upgrading the helm release, delete the services that are managed by Helm so that they are recreated with the correct configuration: $ kubectl delete service <helm-release-name> $ kubectl delete service <helm-release-name>-ping $ helm upgrade <helm-release-name> jboss-eap/eap74
    • Hide

      1) Add jboss-eap Helm Chart Repository

      helm repo add jboss-eap https://jbossas.github.io/eap-charts/
      

      2) Create helloworld-rs-app helm release via:

      helm install helloworld-rs-app -f https://raw.githubusercontent.com/jbossas/eap-charts/eap74-dev/examples/eap74/helloworld-rs/helloworld-rs-app.yaml jboss-eap/eap74 --version 1.0.0 --set-string build.s2i.jdk=11 --set build.s2i.galleonLayers=jaxrs-server
      

      4) Wait for the application to be successfully deployed
      5) Try to perform helm upgrade via

      helm upgrade helloworld-rs-app jboss-eap/eap74
      

      6) Observe the error output

      Show
      1) Add jboss-eap Helm Chart Repository helm repo add jboss-eap https: //jbossas.github.io/eap-charts/ 2) Create helloworld-rs-app helm release via: helm install helloworld-rs-app -f https: //raw.githubusercontent.com/jbossas/eap-charts/eap74-dev/examples/eap74/helloworld-rs/helloworld-rs-app.yaml jboss-eap/eap74 --version 1.0.0 --set-string build.s2i.jdk=11 --set build.s2i.galleonLayers=jaxrs-server 4) Wait for the application to be successfully deployed 5) Try to perform helm upgrade via helm upgrade helloworld-rs-app jboss-eap/eap74 6) Observe the error output

      When trying to upgrade from version 1.0.0 to version 1.1.1 (latest) version of EAP 74 Helm Chart (via helm upgrade). The user is greeted with following error

      UPGRADE FAILED: cannot patch "<helm-release-name>-ping" with kind Service: Service "<helm-release-name>-ping" is invalid: spec.clusterIPs[0]: Invalid value: []string{"None"}: may not change once set && cannot patch "<helm-release-name>" with kind Deployment: Deployment.apps "<helm-release-name>" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"<helm-release-name>", "app.kubernetes.io/name":"<helm-release-name>"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
      

      This is a regression against upgrading from version 1.0.0 to 1.1.0.
      Same error message can be observed also when trying to upgrade EAP 8 Helm Charts

              Unassigned Unassigned
              rhn-engineering-spriadka Simon Priadka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: