Merge lp://qastaging/~mariosplivalo/charms/trusty/percona-cluster/enable-binlogs into lp://qastaging/~openstack-charmers-archive/charms/trusty/percona-cluster/next

Proposed by Mario Splivalo
Status: Superseded
Proposed branch: lp://qastaging/~mariosplivalo/charms/trusty/percona-cluster/enable-binlogs
Merge into: lp://qastaging/~openstack-charmers-archive/charms/trusty/percona-cluster/next
Prerequisite: lp://qastaging/~niedbalski/charms/trusty/percona-cluster/fix-1425528
Diff against target: 88 lines (+38/-1)
3 files modified
config.yaml (+11/-0)
hooks/percona_hooks.py (+23/-1)
templates/my.cnf (+4/-0)
To merge this branch: bzr merge lp://qastaging/~mariosplivalo/charms/trusty/percona-cluster/enable-binlogs
Reviewer Review Type Date Requested Status
James Page Needs Fixing
Felipe Reyes Needs Fixing
Edward Hope-Morley Pending
Billy Olsen Pending
Jorge Niedbalski Pending
Review via email: mp+252248@code.qastaging.launchpad.net

This proposal has been superseded by a proposal from 2015-10-14.

Description of the change

This adds two charm configuration options - enable_binlogs and binlogs_path. Binlog_path defaults to /var/log/mysql/mysql.bin (it's because my.cnf which is packaged with mysql-common package suggests that location, and also because mysql charm defaults with binlogs at that location), while enable_binlogs defaults to 'False'.

To post a comment you must log in.
Revision history for this message
Felipe Reyes (freyes) wrote :

Hi Mario,

This feature makes a lot of sense, and it worked for me, but please add unit tests for your patch, I also have minor comments in the diff.

Thanks,

review: Needs Fixing
Revision history for this message
James Page (james-page) wrote :

bzr merge lp:~mariosplivalo/charms/trusty/percona-cluster/enable-binlogs
...
Text conflict in hooks/charmhelpers/contrib/database/mysql.py
1 conflicts encountered.

review: Needs Fixing
Revision history for this message
James Page (james-page) :
review: Needs Fixing
Revision history for this message
Mario Splivalo (mariosplivalo) wrote :

> bzr merge lp:~mariosplivalo/charms/trusty/percona-cluster/enable-binlogs
> ...
> Text conflict in hooks/charmhelpers/contrib/database/mysql.py
> 1 conflicts encountered.

I belive this is because of the prerequisite branch that needs merging first.

Revision history for this message
Mario Splivalo (mariosplivalo) wrote :

Based on discussion with Ed, this will be changed in a manner so that a new function is introduced, 'configure_binlogs'. That one will be called from install hook, after mysql has been installed, and will restart mysql for the change to take place.
It will also be called from config_changed hook, but it won't restart mysql - it will log a WARNING inside logs to tell administrator/operator to manually restart mysql when appropriate.

59. By Mario Splivalo

Isolate creation of binlog directory into a separate function

60. By Mario Splivalo

Merged /next

61. By Mario Splivalo

Conflicts resolved (work from another workstation)

Unmerged revisions

61. By Mario Splivalo

Conflicts resolved (work from another workstation)

60. By Mario Splivalo

Merged /next

59. By Mario Splivalo

Isolate creation of binlog directory into a separate function

58. By Mario Splivalo

Merged from /next

57. By Mario Splivalo

Fixed typos, as suggested by freyes

56. By Mario Splivalo

Fix lint errors

55. By Mario Splivalo

Remove call to lchownr as it won't change owner of the base directory.
Instead, use os.chown.

54. By Mario Splivalo

Fix directory creation

53. By Mario Splivalo

Make sure mysql can start even when binlog_path is pointing to
nonexistant path

52. By Mario Splivalo

Create binlog_directory, if missing

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches