root@ISTXN-474H1J3:/home/rverma/mqstuff# ls mq-quickstart.yaml ConfigMap-mqsc-example.yaml
ConfigMap-mqsc-example.yaml mq-quickstart.yaml
root@ISTXN-474H1J3:/home/rverma/mqstuff# cat mq-quickstart.yaml ConfigMap-mqsc-example.yaml
apiVersion: mq.ibm.com/v1beta1
kind: QueueManager
metadata:
namespace: ops-playground
name: quickstart-cp4i
spec:
license:
accept: true
license: L-RJON-C7QG3S
use: Production
web:
enabled: true
version: 9.2.5.0-r3
template:
pod:
containers:
- env:
- name: MQSNOAUT
value: 'yes'
name: qmgr
queueManager:
name: QUICKSTART
storage:
queueManager:
type: ephemeral
apiVersion: v1
kind: ConfigMap
metadata:
name: mqsc-example
namespace: ops-playground
data:
example1.mqsc: |
DEFINE QLOCAL('BACKEND') REPLACE
DEFINE CHANNEL('ACECLIENT') CHLTYPE (SVRCONN) SSLCAUTH(OPTIONAL)
ALTER QMGR CHLAUTH(DISABLE)
REFRESH SECURITY
root@ISTXN-474H1J3:/home/rverma/mqstuff#
Now I get the following error when I tried to deploy the queue manager;
root@ISTXN-474H1J3:/home/rverma/mqstuff# oc apply -f mq-quickstart.yaml
Error from server (QueueManager.mq.ibm.com "quickstart-cp4i" is invalid: spec.license.license: Invalid value: "L-RJON-BUVMQX": Unsupported for version: 9.2.5.0-r3. Valid licenses: [L-RJON-C7QG3S L-RJON-C7QFZX L-APIG-BZDDDY L-APIG-BYHCL7]): error when creating "mq-quickstart.yaml": admission webhook "ops-playground.v1beta1.validator.queuemanagers.mq.ibm.com" denied the request: QueueManager.mq.ibm.com "quickstart-cp4i" is invalid: spec.license.license: Invalid value: "L-RJON-BUVMQX": Unsupported for version: 9.2.5.0-r3. Valid licenses: [L-RJON-C7QG3S L-RJON-C7QFZX L-APIG-BZDDDY L-APIG-BYHCL7]
Then I corrected the license part;
root@ISTXN-474H1J3:/home/rverma/mqstuff# vi mq-quickstart.yaml
root@ISTXN-474H1J3:/home/rverma/mqstuff# oc apply -f mq-quickstart.yaml
queuemanager.mq.ibm.com/quickstart-cp4i created
root@ISTXN-474H1J3:/home/rverma/mqstuff# oc get pods
NAME READY STATUS RESTARTS AGE
ibm-mq-5cd96cbb58-wq8xd 1/1 Running 0 6d17h
ops-test-postgres-deployment-9c456c745-dljcg 1/1 Running 0 10d
root@ISTXN-474H1J3:/home/rverma/mqstuff# oc get QueueManager
NAME PHASE
quickstart-cp4i Pending
root@ISTXN-474H1J3:/home/rverma/mqstuff# oc get events
LAST SEEN TYPE REASON OBJECT MESSAGE
20s Normal Scheduled pod/quickstart-cp4i-ibm-mq-0 Successfully assigned ops-playground/quickstart-cp4i-ibm-mq-0 to txulnocp-compute-tmp.nocp.mouser.lan
18s Normal AddedInterface pod/quickstart-cp4i-ibm-mq-0 Add eth0 [10.105.20.53/22] from openshift-sdn
2s Normal Pulling pod/quickstart-cp4i-ibm-mq-0 Pulling image "cp.icr.io/cp/ibm-mqadvanced-server-integration@sha256:69c2e6440964e847cce19dbd68aabb5fa51b338a49836b1e202aa57c184c2614"
16s Warning Failed pod/quickstart-cp4i-ibm-mq-0 Failed to pull image "cp.icr.io/cp/ibm-mqadvanced-server-integration@sha256:69c2e6440964e847cce19dbd68aabb5fa51b338a49836b1e202aa57c184c2614": rpc error: code = Unknown desc = reading manifest sha256:69c2e6440964e847cce19dbd68aabb5fa51b338a49836b1e202aa57c184c2614 in cp.icr.io/cp/ibm-mqadvanced-server-integration: denied: insufficient scope
16s Warning Failed pod/quickstart-cp4i-ibm-mq-0 Error: ErrImagePull
16s Normal BackOff pod/quickstart-cp4i-ibm-mq-0 Back-off pulling image "cp.icr.io/cp/ibm-mqadvanced-server-integration@sha256:69c2e6440964e847cce19dbd68aabb5fa51b338a49836b1e202aa57c184c2614"
16s Warning Failed pod/quickstart-cp4i-ibm-mq-0 Error: ImagePullBackOff
21s Normal SuccessfulCreate statefulset/quickstart-cp4i-ibm-mq create Pod quickstart-cp4i-ibm-mq-0 in StatefulSet quickstart-cp4i-ibm-mq successful
root@ISTXN-474H1J3:/home/rverma/mqstuff#
Please advise whats happening out there, I am struggling for past couple months, then I found your blog, I felt that your blog should do it, but failing as well.
If you or someone can tell/point me into a direction to get the resolution of this, much appreciated.
Thank you,
Regards,
Rajesh
------------------------------
RAJESH VERMA
------------------------------