blank access-network due to call to relation-set with blank value,
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Percona Cluster Charm |
Triaged
|
Low
|
Unassigned |
Bug Description
Hi
we need to file a bug on this: https:/
We have ran into a severe outage when shared-
the fix which was -- touch /tmp/seeded && chown mysql.mysql /tmp/seeded && mv /tmp/seeded /var/lib/
notes state that when config-change ran, line 202, it kicked to mark seeded in the charm state - the only other time seeded gets hooked up is if you upgrade-charm; which is why it was believed that 'access-network' value was needed due to be set.
E.g:
$ juju run --unit mysql/0 hooks/shared-
ERROR no relation id specified
ERROR no relation id specified
Traceback (most recent call last):
File "hooks/
main()
File "hooks/
hooks.
File "/var/lib/
self.
File "hooks/
relation_
File "/var/lib/
**kwargs)
File "/var/lib/
relation_
File "/var/lib/
relation_
File "/usr/lib/
raise CalledProcessEr
subprocess.
As such it looked like there's definitely a bug there that you can't relation-set a null value; this being run blindly is not gonna work https:/
The offending line is still in the charm; I suspect access-network should be checked for not being set and the relation data not set in that case.