We've seen this across several other charms. We think something in Juju changed that needs to be updated in the charm. Here's some of the related bugs:
https://bugs.launchpad.net/charm-ceph-mon/+bug/1760138
https://bugs.launchpad.net/charms/+source/rabbitmq-server/+bug/1654116
https://bugs.launchpad.net/juju/+bug/1833089
2019-09-25 08:16:50 DEBUG etcd-relation-changed ERROR cannot write leadership settings: cannot write settings: not the leader
2019-09-25 08:16:50 DEBUG etcd-relation-changed Traceback (most recent call last):
2019-09-25 08:16:50 DEBUG etcd-relation-changed File "/var/lib/juju/agents/unit-kubernetes-master-1/charm/hooks/etcd-relation-changed", line 22, in <module>
2019-09-25 08:16:50 DEBUG etcd-relation-changed main()
2019-09-25 08:16:50 DEBUG etcd-relation-changed File "/var/lib/juju/agents/unit-kubernetes-master-1/.venv/lib/python3.6/site-packages/charms/reactive/__init__.py", line 83, in main
2019-09-25 08:16:50 DEBUG etcd-relation-changed hookenv._run_atexit()
2019-09-25 08:16:50 DEBUG etcd-relation-changed File "/var/lib/juju/agents/unit-kubernetes-master-1/.venv/lib/python3.6/site-packages/charmhelpers/core/hookenv.py", line 1220, in _run_atexit
2019-09-25 08:16:50 DEBUG etcd-relation-changed callback(*args, **kwargs)
2019-09-25 08:16:50 DEBUG etcd-relation-changed File "/var/lib/juju/agents/unit-kubernetes-master-1/charm/reactive/kubernetes_master.py", line 516, in set_final_status
2019-09-25 08:16:50 DEBUG etcd-relation-changed get_dns_provider()
2019-09-25 08:16:50 DEBUG etcd-relation-changed File "/var/lib/juju/agents/unit-kubernetes-master-1/charm/reactive/kubernetes_master.py", line 2427, in get_dns_provider
2019-09-25 08:16:50 DEBUG etcd-relation-changed leader_set(auto_dns_provider=dns_provider)
2019-09-25 08:16:50 DEBUG etcd-relation-changed File "/var/lib/juju/agents/unit-kubernetes-master-1/.venv/lib/python3.6/site-packages/charms/reactive/decorators.py", line 219, in _wrapped
2019-09-25 08:16:50 DEBUG etcd-relation-changed return func(*args, **kwargs)
2019-09-25 08:16:50 DEBUG etcd-relation-changed File "lib/charms/leadership.py", line 62, in leader_set
2019-09-25 08:16:50 DEBUG etcd-relation-changed hookenv.leader_set(settings)
2019-09-25 08:16:50 DEBUG etcd-relation-changed File "/var/lib/juju/agents/unit-kubernetes-master-1/.venv/lib/python3.6/site-packages/charmhelpers/core/hookenv.py", line 1043, in inner_translate_exc2
2019-09-25 08:16:50 DEBUG etcd-relation-changed return f(*args, **kwargs)
2019-09-25 08:16:50 DEBUG etcd-relation-changed File "/var/lib/juju/agents/unit-kubernetes-master-1/.venv/lib/python3.6/site-packages/charmhelpers/core/hookenv.py", line 1104, in leader_set
2019-09-25 08:16:50 DEBUG etcd-relation-changed subprocess.check_call(cmd)
2019-09-25 08:16:50 DEBUG etcd-relation-changed File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
2019-09-25 08:16:50 DEBUG etcd-relation-changed raise CalledProcessError(retcode, cmd)
2019-09-25 08:16:50 DEBUG etcd-relation-changed subprocess.CalledProcessError: Command '['leader-set', 'auto_dns_provider=core-dns']' returned non-zero exit status 1.
2019-09-25 08:16:50 ERROR juju.worker.uniter.operation runhook.go:132 hook "etcd-relation-changed" failed: exit status 1
Probably not needed, but here's the juju-crashdump- controller as well.