[
https://issues.apache.org/jira/browse/KARAF-3609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Flávio Ferreira updated KARAF-3609:
-----------------------------------
Description:
I’m using Karaf Cellar 3.0.1 using Hazelcast with network TCP-IP enabled
instead of Multicast. I’m trying to run immutable applications (running inside
Docker containers).
To discover Hazelcast Instances in the cluster I’m using cellar-kubernetes
feature. However, I tried to use cellar-cloud and the problem is the same.
I belive that, as my applications are immutable and the karaf configuration is
never updated, the update in Managed Service Factories was never called. Thus,
the DiscoveryTask can’t find the Karaf Cellar instances in the cluster since
there are no Service Discovery Implementations registered.
In short, the update in this
[class|https://github.com/apache/karaf-cellar/blob/master/cloud/src/main/java/org/apache/karaf/cellar/cloud/BlobStoreDiscoveryServiceFactory.java]
is never called. Therefore, this never happens:
bq. newRegistration =
bundleContext.registerService(DiscoveryService.class.getName(), service,
(Dictionary) serviceProperties);
I have an exemple to test it, in my github, under this repository:
[karaf-cellar-kubernetes-example|https://github.com/FlavioF/karaf-cellar-kubernetes-example]
I can’t understand if there is anything that I am missing or if this is an
issue in Service Discovery registry process.
Is there anyone I can chat about this in IRC or any other real time chat?
[~ppires]
[~albertocsm]
was:
I’m using Karaf Cellar using Hazelcast with network TCP-IP enabled instead of
Multicast. I’m trying to run immutable applications (running inside Docker
containers).
To discover Hazelcast Instances in the cluster I’m using cellar-kubernetes
feature. However, I tried to use cellar-cloud and the problem is the same.
I belive that, as my applications are immutable and the karaf configuration is
never updated, the update in Managed Service Factories was never called. Thus,
the DiscoveryTask can’t find the Karaf Cellar instances in the cluster since
there are no Service Discovery Implementations registered.
In short, the update in this
[class|https://github.com/apache/karaf-cellar/blob/master/cloud/src/main/java/org/apache/karaf/cellar/cloud/BlobStoreDiscoveryServiceFactory.java]
is never called. Therefore, this never happens:
bq. newRegistration =
bundleContext.registerService(DiscoveryService.class.getName(), service,
(Dictionary) serviceProperties);
I have an exemple to test it, in my github, under this repository:
[karaf-cellar-kubernetes-example|https://github.com/FlavioF/karaf-cellar-kubernetes-example]
I can’t understand if there is anything that I am missing or if this is an
issue in Service Discovery registry process.
Is there anyone I can chat about this in IRC or any other real time chat?
[~ppires]
[~albertocsm]
> Kubernetes/Cloud Service Discovery isn't working in Immutable applications
> --------------------------------------------------------------------------
>
> Key: KARAF-3609
> URL: https://issues.apache.org/jira/browse/KARAF-3609
> Project: Karaf
> Issue Type: Bug
> Environment: Karaf Cellar
> Reporter: Flávio Ferreira
>
> I’m using Karaf Cellar 3.0.1 using Hazelcast with network TCP-IP enabled
> instead of Multicast. I’m trying to run immutable applications (running
> inside Docker containers).
> To discover Hazelcast Instances in the cluster I’m using cellar-kubernetes
> feature. However, I tried to use cellar-cloud and the problem is the same.
> I belive that, as my applications are immutable and the karaf configuration
> is never updated, the update in Managed Service Factories was never called.
> Thus, the DiscoveryTask can’t find the Karaf Cellar instances in the cluster
> since there are no Service Discovery Implementations registered.
> In short, the update in this
> [class|https://github.com/apache/karaf-cellar/blob/master/cloud/src/main/java/org/apache/karaf/cellar/cloud/BlobStoreDiscoveryServiceFactory.java]
> is never called. Therefore, this never happens:
> bq. newRegistration =
> bundleContext.registerService(DiscoveryService.class.getName(), service,
> (Dictionary) serviceProperties);
> I have an exemple to test it, in my github, under this repository:
> [karaf-cellar-kubernetes-example|https://github.com/FlavioF/karaf-cellar-kubernetes-example]
> I can’t understand if there is anything that I am missing or if this is an
> issue in Service Discovery registry process.
> Is there anyone I can chat about this in IRC or any other real time chat?
> [~ppires]
> [~albertocsm]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)