Merge lp:~niedbalski/charms/trusty/percona-cluster/fix-default-password-grant into lp:~openstack-charmers-archive/charms/trusty/percona-cluster/trunk
Status: | Superseded |
---|---|
Proposed branch: | lp:~niedbalski/charms/trusty/percona-cluster/fix-default-password-grant |
Merge into: | lp:~openstack-charmers-archive/charms/trusty/percona-cluster/trunk |
Diff against target: |
39 lines (+13/-7) 1 file modified
hooks/percona_hooks.py (+13/-7) |
To merge this branch: | bzr merge lp:~niedbalski/charms/trusty/percona-cluster/fix-default-password-grant |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Edward Hope-Morley | Approve | ||
OpenStack Charmers | Pending | ||
Review via email: mp+236400@code.launchpad.net |
This proposal has been superseded by a proposal from 2014-09-29.
Description of the change
If no sst-password is specified then , a randomly generated one is created using pwgen. This
password is correctly set on the configuration file ( my.cnf ) but the replication permissions are set incorrectly.
The charm is performing:
GRANT RELOAD, LOCK TABLES, REPLICATION CLIENT ON *.* TO 'sstuser'
Replication:
$ juju deploy percona-cluster
$ juju add-unit percona-cluster
$ juju ssh 1 -e service mysql restart
This will fail due to no permissions for perform the reload on the cluster.
The linked branch , fixes this issue.
Unmerged revisions
- 39. By Jorge Niedbalski
-
- Lint issue line 91
- 38. By Jorge Niedbalski
-
- Fix, if no default password is used, then the auto-generated one is granted on the database instead of None.
- 37. By Jorge Niedbalski
-
- Fix, if no default password is used, then the auto-generated one is granted on the database instead of None.
$ make lint hooks.py: 91:41: E128 continuation line under-indented for visual indent
hooks/percona_
make: *** [lint] Error 1