Comment 3 for bug 1728111

Revision history for this message
James Page (james-page) wrote : Re: cluster-relation-changed KeyError: 'getpwnam(): name not found: mysql'

Something wonky went on during early unit lifecycle:

2017-10-27 16:23:08 DEBUG juju.worker.dependency engine.go:504 "leadership-tracker" manifold worker stopped: "migration-inactive-flag" not running: dependency not available
2017-10-27 16:23:08 DEBUG juju.worker.dependency engine.go:504 "leadership-tracker" manifold worker stopped: <nil>
2017-10-27 16:23:08 DEBUG juju.worker.dependency engine.go:504 "leadership-tracker" manifold worker stopped: "migration-inactive-flag" not running: dependency not available
2017-10-27 16:23:14 DEBUG juju.worker.dependency engine.go:504 "leadership-tracker" manifold worker stopped: "migration-inactive-flag" not running: dependency not available
2017-10-27 16:23:14 DEBUG juju.worker.dependency engine.go:486 "leadership-tracker" manifold worker started
2017-10-27 16:23:14 DEBUG juju.worker.leadership tracker.go:126 mysql/2 making initial claim for mysql leadership
2017-10-27 16:24:52 INFO juju.worker.leadership tracker.go:185 mysql/2 promoted to leadership of mysql
2017-10-27 16:26:09 DEBUG juju.worker.uniter.remotestate watcher.go:354 got leader settings change: ok=true
2017-10-27 16:28:13 DEBUG worker.uniter.jujuc server.go:178 running hook tool "leader-get"
2017-10-27 16:28:13 DEBUG worker.uniter.jujuc server.go:178 running hook tool "is-leader"
2017-10-27 16:30:48 DEBUG worker.uniter.jujuc server.go:178 running hook tool "leader-set"
2017-10-27 16:36:10 INFO juju.worker.leadership tracker.go:208 mysql leadership for mysql/2 denied
2017-10-27 16:36:10 DEBUG juju.worker.leadership tracker.go:230 notifying mysql/2 ticket of impending loss of mysql leadership
2017-10-27 16:36:10 DEBUG juju.worker.leadership tracker.go:269 mysql/2 is not mysql leader
2017-10-27 16:36:10 DEBUG juju.worker.leadership tracker.go:215 mysql/2 waiting for mysql leadership release
2017-10-27 16:36:10 DEBUG juju.worker.uniter.remotestate watcher.go:394 got leadership change: minion
2017-10-27 16:36:10 DEBUG install ERROR cannot write leadership settings: cannot write settings: not the leader
2017-10-27 16:36:10 DEBUG install leader_set({key: _password})
2017-10-27 16:36:10 DEBUG install File "/var/lib/juju/agents/unit-mysql-2/charm/hooks/charmhelpers/core/hookenv.py", line 946, in leader_set
2017-10-27 16:36:10 DEBUG install subprocess.CalledProcessError: Command '['leader-set', 'root-password=6fwpXrzGGkb5gYqjmPk2qjxTSgLmbcR722Nwf4s2']' returned non-zero exit status 1