Clustering error when deploy EAP 7/ RHDG 7 / RHSSO 7 via template on OpenShift 4

Solution Verified - Updated

Environment

  • Red Hat Data Grid (RHDG)
    • 7.x
  • Red Hat Single Sing-On (RHSSO)
    • 7.x
  • Red Hat OpenShift Container Platform (OCP)
    • 4.8 uppper

Issue

When deploying RHDG 7.3 via template and trying to scale up or down the cluster's pods get MERGED cluster view ERRORs:

20:44:05,825 INFO  [org.infinispan.CLUSTER] (thread-5,null,sso-1-b92n6) ISPN000093: Received new, MERGED cluster view for channel ejb: MergeView::[sso-1-bgbgb|1] (2) [sso-1-bgbgb, sso-1-b92n6], 2 subgroups: [sso-1-bgbgb|0] (1) [sso-1-bgbgb], [sso-1-b92n6|0] (1) [sso-1-b92n6]

Resolution

Edit the template in the PING service definition, removing the annotation tolerate-unready-endpoints and adding service.spec.publishNotReadyAddresses as below:

Remove:

kind: Service
apiVersion: v1
metadata:
  name: ${APPLICATION_NAME}-ping
...
  annotations:
    service.alpha.kubernetes.io/tolerate-unready-endpoints: 'true'

Using:

oc annotate svc  ${APPLICATION_NAME}-ping service.alpha.kubernetes.io/tolerate-unready-endpoints-

Add:

kind: Service
apiVersion: v1
metadata:
  name: ${APPLICATION_NAME}-ping
...
spec:
  clusterIP: None
  clusterIPs:
  - None
...
  publishNotReadyAddresses: true
...

Using:

oc patch svc ${APPLICATION_NAME}-ping -p '{"spec":{"publishNotReadyAddresses":true}}'

Root Cause

The tolerate-unready-endpoints was an annotation that was replaced by service.spec.publishNotReadyAddresses - a spec.field - that's a core difference.
Therefore, tolerate-unready-endpoints Content from github.com is not included.is no longer valid on OpenShift 4.8 and above. Instead, service.spec.publishNotReadyAddresses must be used.

PRPurpose
Content from github.com is not included.k8s PR - 63742Deprecated annotation tolerate-unready-endpoints
Content from github.com is not included.k8s PR - 108020Removal of annotation tolerate-unready-endpoints
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.