[midPoint] Midpoint 4.8 Kubernetes Cluster

SHARMA Kapil kapil-a.sharma at thalesgroup.com
Wed Jan 17 10:53:12 CET 2024


THALES GROUP LIMITED DISTRIBUTION to email recipients

Hello Everyone,

I hope you all are doing well.

Can anyone confirm if midPoint 4.8 Cluster configuration works ?

Because I am facing similar issue with Kubernetes , Docker and even the solution given in kustomization.yaml in https://github.com/Evolveum/midpoint-kubernetes/tree/main/midpoint-live-demo , same issue has been seen in RDS based deployment for aws ec2 cluster.


I am trying to deploy a Cluster of midpoint 4.8 nodes in GCP Kubernetes and as soon as I scale up (kubectl scale -n mp-demo --replicas=2 statefulset/mp-pg-demo), I am unable to login on midpoint and see below error message in the midpoint logs.

Logs :

Caused by: java.net.UnknownHostException: UnknownHostException invoking http://mp-0.mp-service.idm-poc.svc.cluster.local:8080/midpoint/ws/cluster/event/invalidation/connectors/d0da10c8-5e8d-4533-a1d8-ecc802ab5c36: null
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1428)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1409)
        at org.apache.cxf.io.AbstractWrappedOutputStream.close(AbstractWrappedOutputStream.java:77)
        at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
        at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:696)
        at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:63)
        ... 54 common frames omitted
Caused by: java.net.UnknownHostException: null
        at org.apache.cxf.transport.http.HttpClientHTTPConduit$HttpClientWrappedOutputStream.getResponse(HttpClientHTTPConduit.java:441)
        at org.apache.cxf.transport.http.HttpClientHTTPConduit$HttpClientWrappedOutputStream.getResponseCode(HttpClientHTTPConduit.java:462)        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doProcessResponseCode(HTTPConduit.java:1629)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1660)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1602)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1396)
        ... 58 common frames omitted
Caused by: java.nio.channels.UnresolvedAddressException: null
        at java.base/sun.nio.ch.Net.checkAddress(Net.java:149)
        at java.base/sun.nio.ch.Net.checkAddress(Net.java:157)

I have already added below env variable in the stateful yaml file as mentioned in https://docs.evolveum.com/midpoint/install/kubernetes/cluster/

            - name: MP_SET_midpoint_taskManager_clustered
              value: "true"
            - name: MP_SET_midpoint_nodeIdSource
              value: hostname
            - name: MP_SET_midpoint_keystore_keyStorePath
              value: /opt/midpoint/mount-keystore/keystore.jceks
            - name: MP_SET_midpoint_keystore_keyStorePassword_FILE
              value: /opt/midpoint/mount-keystore/keystore
          volumeMounts:
            - name: mp-home
              mountPath: /opt/midpoint/var
            - name: db-pass
              mountPath: /opt/midpoint/config-secrets
            - name: keystore
              mountPath: /opt/midpoint/mount-keystore

Thank you !

Regards
Kapil Sharma
Technical Lead
DIS-CPL
[cid:image001.png at 01DA4953.D3F716F0]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20240117/87c18362/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 2428 bytes
Desc: image001.png
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20240117/87c18362/attachment.png>


More information about the midPoint mailing list