[infinispan-dev] Unable to cluster Infinispan ephemeral template instances

Galder Zamarreño galder at redhat.com
Mon Sep 25 06:54:04 EDT 2017


Hey Sebastian,

I've started 2 instances of Infinispan ephemeral [1] and they don't seem to cluster together with the pods showing this message:

10:51:12,014 WARN  [org.jgroups.protocols.kubernetes.KUBE_PING] (jgroups-4,datagrid-1-187kx) failed getting JSON response from Kubernetes Client[masterUrl=https://172.30.0.1:443/api/v1, headers={Authorization=#MASKED:862#}, connectTimeout=5000, readTimeout=30000, operationAttempts=3, operationSleep=1000, streamProvider=org.jgroups.protocols.kubernetes.stream.InsecureStreamProvider at 51522f72] for cluster [cluster], namespace [openshift], labels [application=datagrid]; encountered [java.lang.Exception: 3 attempt(s) with a 1000ms sleep to execute [OpenStream] failed. Last failure was [java.io.IOException: Server returned HTTP response code: 403 for URL: https://172.30.0.1:443/api/v1/namespaces/openshift/pods?labelSelector=application%3Ddatagrid]]

These are the options I'm giving to the template:

oc process infinispan-ephemeral -p \
  NUMBER_OF_INSTANCES=2 \
  APPLICATION_NAME=datagrid \
  APPLICATION_USER=developer \
  APPLICATION_PASSWORD=developer

I'd expect this to work out of the box, or do you need to pass in a management usr/pwd for it to work?

Cheers,

[1] https://github.com/infinispan/infinispan-openshift-templates
--
Galder Zamarreño
Infinispan, Red Hat




More information about the infinispan-dev mailing list