Closed lazypower closed 8 years ago
I'm a fan of the layer (and would probably like to fold it into the base layer), but it's not strictly necessary.
@when('cluster.ready', 'client.joined')
def send_connection(cluster, client):
if hookenv.is_leader():
client.provide_connection_info(cluster.hosts(), config['port'])
After much churn I can give this a +1 lgtm
:tada:
While testing this fix I see that the kubernetes unit does not have the etcd python library and fails with: unit-kubernetes-2: 2016-02-23 22:13:28 INFO unit.kubernetes/2.install logger.go:40 File "/var/lib/juju/agents/unit-kubernetes-2/charm/hooks/relations/etcd/peers.py", line 5, in
unit-kubernetes-2: 2016-02-23 22:13:28 INFO unit.kubernetes/2.install logger.go:40 from etcd import remove_unit_from_cache
unit-kubernetes-2: 2016-02-23 22:13:28 INFO unit.kubernetes/2.install logger.go:40 ImportError: No module named 'etcd'