kube-control.connected state is removed on scale back #1

Open
jacekn opened this Issue Apr 21, 2017 · 4 comments

Comments

Projects
None yet
4 participants

jacekn commented Apr 21, 2017

As per subject kube-control.connected state is removed incorrectly during scale back.

To replicate start with fully deployed k8s bundle and:

juju add-unit kubernetes-master
# wait for the unit to deploy and then remove it
juju remove-unit kubernetes-master/1

Result:
kubernetes-worker units eventually end up in blocked state because of missing kube-control.connected state

Expected result:
kube-control.connected state is NOT removed since the relation is still in place

@jacekn jacekn referenced this issue in juju-solutions/interface-kube-dns Apr 21, 2017

Open

kube-dns.connected state is removed on scale back #3

Member

tvansteenburgh commented Apr 21, 2017

Thanks, I'll fix this.

@tvansteenburgh tvansteenburgh self-assigned this Apr 21, 2017

@chuckbutler chuckbutler added the bug label Apr 21, 2017

Owner

johnsca commented Apr 24, 2017

Hrm. This relation isn't a peer relation, so it should not be in any way affected by scaling the master.

Owner

johnsca commented Apr 24, 2017

The issue seems to be that KubeControlRequireer.scope is set to GLOBAL meaning that it expects to only ever have one kubes-master remote unit and if there are multiple, they all share the same conversation. I think this is partially an aspect of the conversation metaphor being inadequate and confusing (and there are plans to replace it with something simpler), but if the charms should be able to support scaling the master, then the scope needs to change and both the interface layer and charms updated to know how to deal with multiple masters being present.

Member

tvansteenburgh commented Apr 24, 2017

@johnsca Thanks for the research. Multi-master is definitely a thing, so we'll need to change the scope. Pretty sure this was a bug in the old kube-dns interface too, we just never noticed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment