Hi,
Don't know all the bits and pieces as we have never used Openshift to run Native HA, but I have assumed that license annotations are there only for the license metric server/container/something to track that your licensing info is up-to-date. Doesn't affect to the container.
Using Native HA with prebuilt images should be possible, have you used the operator to configure the Native HA?
At the end, you should have the following environment variables populated in the running container in order the Native HA setup to work:
- name: MQ_NATIVE_HA
value: "true"
- name: MQ_NATIVE_HA_INSTANCE_0_NAME
value: <instance 1 name>
- name: MQ_NATIVE_HA_INSTANCE_0_REPLICATION_ADDRESS
value: <instance 1 address and port>
- name: MQ_NATIVE_HA_INSTANCE_1_NAME
value: <instance 2 name>
- name: MQ_NATIVE_HA_INSTANCE_1_REPLICATION_ADDRESS
value: <instance 2 address and port>
- name: MQ_NATIVE_HA_INSTANCE_2_NAME
value: <instance 3 name>
- name: MQ_NATIVE_HA_INSTANCE_2_REPLICATION_ADDRESS
value: <instance 3 address and port>
Hope this helps.
------------------------------
Hermanni Pernaa
------------------------------
Original Message:
Sent: Mon June 24, 2024 02:41 AM
From: Alexander Lavrov
Subject: Native HA functionality on Openshift
Hello,
I downloaded MQ Advanced container from "cp.icr.io" registry and trying to deploy Native HA cluster on Openshift (without CP4I). I'm getting an error:
Error 93 creating queue manager: AMQ5708E: Native HA is unavailable.
I looked at a similar thread, but I didn't understand several things:
- How License annotations can affect the way the container runs on Openshift? I don't think it has any permissions to read it's own metadata from API.
- Do I have to deploy licensing operator ? I followed the instruction and it runs on Openshift, but it doesn't look like it's doing something.
- Do I have to build my own image to use Natie HA and prebuilt images do not have this functionality?
Thank you in advance.
------------------------------
Alexander Lavrov
------------------------------