Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-7399

[Docs] Update 7.10.x upgrade docs to resolve Error setting the application label

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • AMQ 7.10.1.OPR.1.GA
    • documentation

      Setting the application label causes the following error:

      apiVersion: broker.amq.io/v1beta1
      kind: ActiveMQArtemis
      metadata: 
        name: ex-aao
      spec: 
        deploymentPlan: 
          size: 1
          image: placeholder
          labels: 
            application: test
      
      ERROR    package k8s_actions    Failed to create new *v1.StatefulSet    {"ActiveMQArtemis Name": "ex-aao-ss", "Namespace": "test-namespace", "error": "StatefulSet.apps \"ex-aao-ss\" is invalid: spec.template.metadata.labels: Invalid value: map[string]string{\"ActiveMQArtemis\":\"ex-aao\", \"application\":\"test\"}: `selector` does not match template `labels`"}
      

      An error is expected in this case because users must not change `application` and `ActiveMQArtemis` labels but this error also causes an upgrade issue for users that upgrade to a version greater than 7.10.0: after the upgrade, the StatefulSet is deleted.

            jcliffor@redhat.com John Clifford
            dbruscin Domenico Francesco Bruscino
            Mikhail Krutov Mikhail Krutov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: