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

[Operator, upgrade] the upgrade to 7.10.1 fails to create new *v1.Secret

XMLWordPrintable

    • False
    • None
    • False
    • Hide
      • Install the AMQ Broker Operator 7.10.0 using CLI (AMQ Broker 7.10.1 Operator Installation and Example Files)
      • create two secrets:
      keytool -genkey -noprompt -trustcacerts -alias broker -keyalg RSA -keystore broker.ks -keypass password -storepass password -dname "cn=Abel, ou=engineering, o=company, c=US"
      keytool -export -noprompt -alias broker -keystore broker.ks -file broker_cert -storepass password
      keytool -genkey -noprompt -trustcacerts -alias client -keyalg RSA -keystore client.ts -keypass password -storepass password -dname "cn=Abel, ou=engineering, o=company, c=US"
      keytool -import -noprompt -trustcacerts -alias broker -keystore client.ts -file broker_cert -storepass password
      
      ## Create a secret
      export SECRET_NAME=mytlssecret
      export keyStorePassword=password
      export trustStorePassword=password
      
      oc create secret generic $SECRET_NAME \
      --from-file=broker.ks=broker.ks \
      --from-file=client.ts=client.ts \
      --from-literal=keyStorePassword=$keyStorePassword \
      --from-literal=trustStorePassword=$trustStorePassword
      
      oc create secret generic $SECRET_NAME-console \
      --from-file=broker.ks=broker.ks \
      --from-file=client.ts=client.ts \
      --from-literal=keyStorePassword=$keyStorePassword \
      --from-literal=trustStorePassword=$trustStorePassword
      
      • Create activemqArtemis CR using the the file (activemqArtemis.yml)
      • Install the operator 7.10.1 using CLI
      • Delete the deployment of the old operator 7.10.0 (oc delete deployment amq-broker-controller-manager)
      Show
      Install the AMQ Broker Operator 7.10.0 using CLI (AMQ Broker 7.10.1 Operator Installation and Example Files) create two secrets: keytool -genkey -noprompt -trustcacerts -alias broker -keyalg RSA -keystore broker.ks -keypass password -storepass password -dname "cn=Abel, ou=engineering, o=company, c=US" keytool -export -noprompt -alias broker -keystore broker.ks -file broker_cert -storepass password keytool -genkey -noprompt -trustcacerts -alias client -keyalg RSA -keystore client.ts -keypass password -storepass password -dname "cn=Abel, ou=engineering, o=company, c=US" keytool -import -noprompt -trustcacerts -alias broker -keystore client.ts -file broker_cert -storepass password ## Create a secret export SECRET_NAME=mytlssecret export keyStorePassword=password export trustStorePassword=password oc create secret generic $SECRET_NAME \ --from-file=broker.ks=broker.ks \ --from-file=client.ts=client.ts \ --from-literal=keyStorePassword=$keyStorePassword \ --from-literal=trustStorePassword=$trustStorePassword oc create secret generic $SECRET_NAME-console \ --from-file=broker.ks=broker.ks \ --from-file=client.ts=client.ts \ --from-literal=keyStorePassword=$keyStorePassword \ --from-literal=trustStorePassword=$trustStorePassword Create activemqArtemis CR using the the file (activemqArtemis.yml) Install the operator 7.10.1 using CLI Delete the deployment of the old operator 7.10.0 (oc delete deployment amq-broker-controller-manager)

      The upgrade from 7.10.0 to 7.10. using OperatorHub or CLI fails with the following error:

      amq-broker-operator-7d746bb46c-nbkm8 manager 1.666963372210045e+09    INFO    controller_v1beta1activemqartemis    Createing     {"ActiveMQArtemis Name": "intp-amq", "kind ": "v1.Secret", "named ": "mytlssecret-console-internal"}
      amq-broker-operator-7d746bb46c-nbkm8 manager 1.6669633722100518e+09    INFO    package k8s_actions    Creating new *v1.Secret    {"ActiveMQArtemis Name": "mytlssecret-console-internal", "Namespace": "amq"}
      amq-broker-operator-7d746bb46c-nbkm8 manager 1.666963372218341e+09    ERROR    package k8s_actions    Failed to create new *v1.Secret    {"ActiveMQArtemis Name": "mytlssecret-console-internal", "Namespace": "amq", "error": "secrets \"mytlssecret-console-internal\" already exists"}
      

            gtully@redhat.com Gary Tully
            rhn-support-aboucham Abel Bouchama
            Mikhail Krutov Mikhail Krutov
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: