ha_relation_joined hook should read from relation_ids('ha') if no IDs are passed through
Bug #1720353 reported by
Joseph Borg
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Percona Cluster Charm |
Fix Released
|
High
|
Unassigned |
Bug Description
ha_relation_joined hook should read from relation_ids('ha') if no IDs
are passed through
Proposed patch: https:/
tags: | added: cpe-onsite |
Changed in charm-percona-cluster: | |
status: | New → Confirmed |
importance: | Undecided → High |
milestone: | none → 17.11 |
Changed in charm-percona-cluster: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
2017-09-29 12:05:51 DEBUG config-changed ERROR no relation id specified juju/agents/ unit-mysql- 0/charm/ hooks/config- changed" , line 777, in <module> juju/agents/ unit-mysql- 0/charm/ hooks/config- changed" , line 767, in main juju/agents/ unit-mysql- 0/charm/ hooks/charmhelp ers/core/ hookenv. py", line 768, in execute hook_name] () juju/agents/ unit-mysql- 0/charm/ hooks/charmhelp ers/contrib/ hardening/ harden. py", line 79, in _harden_inner2 juju/agents/ unit-mysql- 0/charm/ hooks/config- changed" , line 343, in config_changed joined( ) juju/agents/ unit-mysql- 0/charm/ hooks/config- changed" , line 664, in ha_relation_joined resources, juju/agents/ unit-mysql- 0/charm/ hooks/charmhelp ers/contrib/ openstack/ ha/utils. py", line 113, in update_ dns_ha_ resource_ params _hostnames' .format( charm_name( )): ' '.join( hostname_ group)} ) juju/agents/ unit-mysql- 0/charm/ hooks/charmhelp ers/core/ hookenv. py", line 413, in relation_set file.name] ) python2. 7/subprocess. py", line 541, in check_call ror(retcode, cmd) CalledProcessEr ror: Command '['relation-set', '--file', '/tmp/tmpJW0a7D']' returned non-zero exit status 2 uniter. operation runhook.go:107 hook "config-changed" failed: exit status 1
2017-09-29 12:05:51 DEBUG config-changed Traceback (most recent call last):
2017-09-29 12:05:51 DEBUG config-changed File "/var/lib/
2017-09-29 12:05:51 DEBUG config-changed if __name__ == '__main__':
2017-09-29 12:05:51 DEBUG config-changed File "/var/lib/
2017-09-29 12:05:51 DEBUG config-changed try:
2017-09-29 12:05:51 DEBUG config-changed File "/var/lib/
2017-09-29 12:05:51 DEBUG config-changed self._hooks[
2017-09-29 12:05:51 DEBUG config-changed File "/var/lib/
2017-09-29 12:05:51 DEBUG config-changed return f(*args, **kwargs)
2017-09-29 12:05:51 DEBUG config-changed File "/var/lib/
2017-09-29 12:05:51 DEBUG config-changed ha_relation_
2017-09-29 12:05:51 DEBUG config-changed File "/var/lib/
2017-09-29 12:05:51 DEBUG config-changed resources=
2017-09-29 12:05:51 DEBUG config-changed File "/var/lib/
2017-09-29 12:05:51 DEBUG config-changed 'grp_{}
2017-09-29 12:05:51 DEBUG config-changed File "/var/lib/
2017-09-29 12:05:51 DEBUG config-changed relation_cmd_line + ["--file", settings_
2017-09-29 12:05:51 DEBUG config-changed File "/usr/lib/
2017-09-29 12:05:51 DEBUG config-changed raise CalledProcessEr
2017-09-29 12:05:51 DEBUG config-changed subprocess.
2017-09-29 12:05:51 ERROR juju.worker.