charm-percona-cluster/actions
Alex Kavanagh 432c3f0be4 Ensure that nagios user gets created with a password
The associated bug is due to a change introduced in commit d55dcde
which was to ensure that the correct password update is used for
different versions of mysql (pre and post 5.7.5).  However, this change
has broken the nagios user creation due to not setting the password.

This patch creates the nagios user and passord at the same time.  The
updating of the password is only done if the account already exists.

The change also corrects the nagios password store in leader-settings to
the 'mysql-nagios.passwd' key instead of 'nagios-password'.  This was an
unfortuante error when the nagios change password was introduced.  The
charm detects if the 'nagios-password' key is used on charm-upgrade and
moves it to 'mysql-nagios.passwd'.  This enables the key to work with
the standard MySQLHelper functions.

Finally, the ALTER command (on percona) doesn't update non-InnoDB tables
and thus needs to be run for each unit when the nagios password is
changed via the action.  The changes in percona_utils.py enable this to
happen.

Whilst the change looks large it ONLY affects the nagios password parts
of the charm.

The related bug is a tracking bug to serve as a reminder to fix this in
charm-helpers and this charm (i.e. make the charm-helpers code work to
change a password for any user other than root, and then enable this
charm to use that code).

Change-Id: Ibc751bef7b4654ebffdf843c556b193373e6e80c
Related-Bug: #1925377
Closes-Bug: #1925042
2021-04-21 18:17:45 +01:00
..
__init__.py Convert to python3 2019-07-08 07:41:48 -07:00
actions.py Ensure that nagios user gets created with a password 2021-04-21 18:17:45 +01:00
backup Add Juju Network Space support 2016-03-31 16:59:01 +01:00
bootstrap-pxc Bootstrap action after a cold boot 2019-07-10 14:51:25 -07:00
complete-cluster-series-upgrade Series Upgrade 2018-09-17 15:38:00 +02:00
generate-nagios-password NRPE: Monitor threads connected to MySQL. 2020-11-27 14:50:02 +00:00
mysqldump Mysqldump Action 2020-02-28 22:57:19 +00:00
notify-bootstrapped Notify bootstrapped action 2019-07-17 07:58:15 -07:00
pause Switch to symlinked actions instead of one file per action. 2015-08-19 11:26:45 +02:00
resume Switch to symlinked actions instead of one file per action. 2015-08-19 11:26:45 +02:00
set-pxc-strict-mode Mysqldump Action 2020-02-28 22:57:19 +00:00