[midPoint] Midpoint 4.8 Kubernetes Cluster

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


THALES GROUP LIMITED DISTRIBUTION to email recipients

Hello Sven,

Thank you so much for responding.

Is it possible for you to share the YAML deployment file with me ?

Also which version you are using? is it midPoint 4.8 ?

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

From: midPoint <midpoint-bounces at lists.evolveum.com> On Behalf Of Sven Feyerabend via midPoint
Sent: Wednesday, January 17, 2024 4:17 PM
To: SHARMA Kapil via midPoint <midpoint at lists.evolveum.com>
Cc: Sven Feyerabend <Sven.Feyerabend at stuvus.uni-stuttgart.de>
Subject: Re: [midPoint] Midpoint 4.8 Kubernetes Cluster


Hi,

I can confirm that clustering works.

We have a running 3 node midPoint cluster on top of a bare-metal Kubernetes cluster.
The clustering part of your config that you shared is the same that we have.

Also, I don't remember running into this issue during setup of my instance.

Kind regards,

Sven
Am 17.01.24 um 10:53 schrieb SHARMA Kapil via midPoint:

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 01DA4965.CD906D90]



_______________________________________________

midPoint mailing list

midPoint at lists.evolveum.com<mailto:midPoint at lists.evolveum.com>

https://lists.evolveum.com/mailman/listinfo/midpoint

--

Sven Feyerabend

Referent für IT-Betreuung

stuvus - Studierendenvertretung Universität Stuttgart

Pfaffenwaldring 5c

70569 Stuttgart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20240117/6a9ff25e/attachment-0001.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/6a9ff25e/attachment-0001.png>


More information about the midPoint mailing list