You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2015/03/20 09:28:38 UTC

[jira] [Work started] (KARAF-3609) Kubernetes/Cloud Service Discovery isn't working in Immutable applications

     [ https://issues.apache.org/jira/browse/KARAF-3609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on KARAF-3609 started by Jean-Baptiste Onofré.
---------------------------------------------------
> 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
>          Components: cellar-cloud
>         Environment: Karaf Cellar
>            Reporter: Flávio Ferreira
>            Assignee: Jean-Baptiste Onofré
>
> 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)