This document describes the steps to configure License Service v4.2 on OCPv4.11.
-
refer to step 3 and 4 described in https://github.com/e30532/RHDG/blob/main/README.md and setup NFS storage class.
-
create a catalog source definition for license service and license service reporter.
https://www.ibm.com/docs/en/cloud-paks/foundational-services/4.2?topic=online-installing-foundational-services-by-using-console.
https://www.ibm.com/docs/en/cloud-paks/foundational-services/4.2?topic=repository-installing-license-service-reporter-openshift-console.
% oc get pods --all-namespaces | grep ibm-licensing | grep -v operator
ibm-licensing ibm-licensing-service-instance-5c447cb779-54px6 1/1 Running 0 2m33s
openshift-marketplace ibm-licensing-catalog-7w5b6 1/1 Running 0 11m
yamayoshi@yamadayoshikis-MacBook-Pro ~ % oc get route -n ibm-licensing
NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
ibm-licensing-service-instance ibm-licensing-service-instance-ibm-licensing.apps.*.*.*.*.com ibm-licensing-service-instance api-port reencrypt/None None
%
https://ibm-licensing-service-instance-ibm-licensing.apps.*.*.*.*.com.
.
.
Note: Access token can be retrieved with the command below.
oc get secret ibm-licensing-token -o jsonpath={.data.token} -n ibm-licensing | base64 -d
- install WebSphere Liberty on OCP to see if the licensing service retrieves the usage data.
6.1. add IBM operator catalog.
https://www.ibm.com/docs/en/cloud-paks/1.0?topic=clusters-adding-operator-catalog.
.
6.2. install WebSphere Liberty operator.
.
.
.
6.3. create WebSphere liberty instance with a sample image.
.
.
.
6.4. check licensing service instance page.

-
install IBM License Service Reporter operator.
.
Note: both are identical.
.
.
-
create IBM License Service Reporter instance.
.
accept license.
.
-
check reporter page.
% oc get pod
NAME READY STATUS RESTARTS AGE
ibm-license-service-reporter-instance-7dcc8b7675-xtkkh 4/4 Running 0 2m34s
ibm-license-service-reporter-operator-58d594bc45-5xhdn 1/1 Running 0 5m24s
ibm-licensing-operator-7bd8b77c54-q2v4b 1/1 Running 0 31m
ibm-licensing-service-instance-5c447cb779-54px6 1/1 Running 0 27m
% oc get pv
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
pvc-3308c358-9dd2-435f-95f7-e3f7d30df279 1Gi RWX Retain Bound default/sample-pvc nfs 40m
pvc-7f53b2ea-a182-4f3a-959e-ee35a5f662fe 1Gi RWO Retain Bound ibm-licensing/license-service-reporter-pvc nfs 3m6s
registry-storage 200Gi RWX Recycle Bound openshift-image-registry/image-registry-storage 66m
% oc get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
license-service-reporter-pvc Bound pvc-7f53b2ea-a182-4f3a-959e-ee35a5f662fe 1Gi RWO nfs 3m11s
% oc get route
NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
ibm-license-service-reporter ibm-license-service-reporter-ibm-licensing.apps.*.*.*.*.com ibm-license-service-reporter 8080 reencrypt/None None
ibm-licensing-service-instance ibm-licensing-service-instance-ibm-licensing.apps.*.*.*.*.com ibm-licensing-service-instance api-port reencrypt/None None
ibm-lsr-console ibm-lsr-console-ibm-licensing.apps.*.*.*.*.com /license-service-reporter ibm-license-service-reporter proxy reencrypt/Redirect None
%
https://ibm-lsr-console-ibm-licensing.apps.*.*.*.*.com/license-service-reporter.

The credential can be retrieved with the commands below.
https://www.ibm.com/docs/en/cloud-paks/foundational-services/4.2?topic=credentials-retrieving-basic-authentication.
% oc get secret ibm-license-service-reporter-credentials -o jsonpath={.data.username} -n ibm-licensing | base64 -d
% oc get secret ibm-license-service-reporter-credentials -o jsonpath={.data.password} -n ibm-licensing | base64 -d
As a last step, I needed to manually configure "sender" in IBM License Service instance.
After you see the message below in the license service instance pod log, you will see the data at the reporter side in a few hours.
2023-10-11 16:02:34.841 [scheduling-1] INFO Starting sender task
2023-10-11 16:02:34.842 [scheduling-1] INFO License Service Reporter URL = https://ibm-license-service-reporter-ibm-licensing.apps.*.*.*.*.com/, cluster name = myOCP, cluster ID = aab******-*******-b83c-***********0
2023-10-11 16:02:35.138 [scheduling-1] INFO Connected to License Service Reporter 4.2.0
2023-10-11 16:02:35.139 [scheduling-1] INFO Sending data from 2023-09-11 to 2023-10-11
2023-10-11 16:02:36.040 [scheduling-1] INFO Sending data to https://ibm-license-service-reporter-ibm-licensing.apps.*.*.*.*.com/snapshot?token=*****
2023-10-11 16:02:37.561 [scheduling-1] INFO Saving last hub synchronization date = 2023-10-11
2023-10-11 16:02:37.583 [scheduling-1] INFO Sender task finished