hook failed in cluster-relation-changed

Bug #1730503 reported by Ashley Lai
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
percona-cluster (Juju Charms Collection)
New
Undecided
Unassigned

Bug Description

On our deployment with xenial-ocata, percona-cluster hook failed in cluster-relation-changed. Please see log attached.

juju status: https://pastebin.canonical.com/202510/
bundle: https://pastebin.canonical.com/202511/

2017-11-04 08:38:15 DEBUG cluster-relation-changed Traceback (most recent call last):
2017-11-04 08:38:15 DEBUG cluster-relation-changed File "/var/lib/juju/agents/unit-mysql-1/charm/hooks/cluster-relation-changed", line 780, in <module>
2017-11-04 08:38:15 DEBUG cluster-relation-changed main()
2017-11-04 08:38:15 DEBUG cluster-relation-changed File "/var/lib/juju/agents/unit-mysql-1/charm/hooks/cluster-relation-changed", line 770, in main
2017-11-04 08:38:15 DEBUG cluster-relation-changed hooks.execute(sys.argv)
2017-11-04 08:38:15 DEBUG cluster-relation-changed File "/var/lib/juju/agents/unit-mysql-1/charm/hooks/charmhelpers/core/hookenv.py", line 768, in execute
2017-11-04 08:38:15 DEBUG cluster-relation-changed self._hooks[hook_name]()
2017-11-04 08:38:15 DEBUG cluster-relation-changed File "/var/lib/juju/agents/unit-mysql-1/charm/hooks/cluster-relation-changed", line 397, in cluster_changed
2017-11-04 08:38:15 DEBUG cluster-relation-changed config_changed()
2017-11-04 08:38:15 DEBUG cluster-relation-changed File "/var/lib/juju/agents/unit-mysql-1/charm/hooks/charmhelpers/contrib/hardening/harden.py", line 79, in _harden_inner2
2017-11-04 08:38:15 DEBUG cluster-relation-changed return f(*args, **kwargs)
2017-11-04 08:38:15 DEBUG cluster-relation-changed File "/var/lib/juju/agents/unit-mysql-1/charm/hooks/cluster-relation-changed", line 327, in config_changed
2017-11-04 08:38:15 DEBUG cluster-relation-changed bootstrap=not bootstrapped)
2017-11-04 08:38:15 DEBUG cluster-relation-changed File "/var/lib/juju/agents/unit-mysql-1/charm/hooks/cluster-relation-changed", line 217, in render_config_restart_on_changed
2017-11-04 08:38:15 DEBUG cluster-relation-changed create_binlogs_directory()
2017-11-04 08:38:15 DEBUG cluster-relation-changed File "/var/lib/juju/agents/unit-mysql-1/charm/hooks/percona_utils.py", line 680, in create_binlogs_directory
2017-11-04 08:38:15 DEBUG cluster-relation-changed mkdir(binlogs_directory, 'mysql', 'mysql', 0o750)
2017-11-04 08:38:15 DEBUG cluster-relation-changed File "/var/lib/juju/agents/unit-mysql-1/charm/hooks/charmhelpers/core/host.py", line 473, in mkdir
2017-11-04 08:38:15 DEBUG cluster-relation-changed uid = pwd.getpwnam(owner).pw_uid
2017-11-04 08:38:15 DEBUG cluster-relation-changed KeyError: 'getpwnam(): name not found: mysql'
2017-11-04 08:38:15 ERROR juju.worker.uniter.operation runhook.go:107 hook "cluster-relation-changed" failed: exit status 1

Revision history for this message
Ashley Lai (alai) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.