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

Error setting the application label

XMLWordPrintable

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

      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.

              dbruscin Domenico Francesco Bruscino
              dbruscin Domenico Francesco Bruscino
              Mikhail Krutov Mikhail Krutov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: