karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flávio Ferreira (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-3609) Kubernetes/Cloud Service Discovery isn't working in Immutable applications
Date Mon, 16 Mar 2015 11:56:38 GMT

    [ https://issues.apache.org/jira/browse/KARAF-3609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14363110#comment-14363110

Flávio Ferreira commented on KARAF-3609:

Yes. But before starting the Karaf service. I added it to etc folder when building my docker

> 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
>            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

View raw message