Merge lp:~jjo/charms/trusty/percona-cluster/expose_sst-method_for_xtrabackup-v2 into lp:~openstack-charmers-archive/charms/trusty/percona-cluster/next

Proposed by JuanJo Ciarlante
Status: Merged
Merged at revision: 80
Proposed branch: lp:~jjo/charms/trusty/percona-cluster/expose_sst-method_for_xtrabackup-v2
Merge into: lp:~openstack-charmers-archive/charms/trusty/percona-cluster/next
Diff against target: 30 lines (+8/-1)
2 files modified
config.yaml (+7/-0)
hooks/percona_hooks.py (+1/-1)
To merge this branch: bzr merge lp:~jjo/charms/trusty/percona-cluster/expose_sst-method_for_xtrabackup-v2
Reviewer Review Type Date Requested Status
David Ames (community) Approve
Review via email: mp+276117@code.launchpad.net

Commit message

[jjo, r=] expose wsrep_sst_method, and default it to recommended value:
'xtrabackup-v2', as per URL at description.

To post a comment you must log in.
Revision history for this message
JuanJo Ciarlante (jjo) wrote :

I had at least one case where current wsrep_sst_method = xtrabackup failed, while xtrabackup-v2 did ok.
Note that xtrabackup-v2 is the recommended value as per:
https://www.percona.com/doc/percona-xtradb-cluster/5.5/wsrep-system-index.html#wsrep_sst_method

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #12856 percona-cluster-next for jjo mp276117
    LINT OK: passed

Build: http://10.245.162.77:8080/job/charm_lint_check/12856/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #11935 percona-cluster-next for jjo mp276117
    UNIT OK: passed

Build: http://10.245.162.77:8080/job/charm_unit_test/11935/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #7647 percona-cluster-next for jjo mp276117
    AMULET OK: passed

Build: http://10.245.162.77:8080/job/charm_amulet_test/7647/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #12859 percona-cluster-next for jjo mp276117
    LINT OK: passed

Build: http://10.245.162.77:8080/job/charm_lint_check/12859/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #11938 percona-cluster-next for jjo mp276117
    UNIT OK: passed

Build: http://10.245.162.77:8080/job/charm_unit_test/11938/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #7651 percona-cluster-next for jjo mp276117
    AMULET OK: passed

Build: http://10.245.162.77:8080/job/charm_amulet_test/7651/

Revision history for this message
David Ames (thedac) wrote :

JuanJo,

Thanks for this. I have run into this myself.
LGTM, merging.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'config.yaml'
2--- config.yaml 2015-07-27 09:44:19 +0000
3+++ config.yaml 2015-10-29 12:31:57 +0000
4@@ -65,6 +65,13 @@
5 description: |
6 Re-sync account password for new cluster nodes; must be configured
7 pre-deployment for Active-Active clusters.
8+ sst-method:
9+ type: string
10+ default: xtrabackup-v2
11+ description: |
12+ Percona method for taking the State Snapshot Transfer (SST), can be:
13+ 'rsync', 'xtrabackup', 'xtrabackup-v2', 'mysqldump', 'skip' - see
14+ https://www.percona.com/doc/percona-xtradb-cluster/5.5/wsrep-system-index.html#wsrep_sst_method
15 min-cluster-size:
16 type: int
17 default:
18
19=== modified file 'hooks/percona_hooks.py'
20--- hooks/percona_hooks.py 2015-10-10 16:07:05 +0000
21+++ hooks/percona_hooks.py 2015-10-29 12:31:57 +0000
22@@ -121,7 +121,7 @@
23 'private_address': get_host_ip(),
24 'clustered': clustered,
25 'cluster_hosts': ",".join(hosts),
26- 'sst_method': 'xtrabackup',
27+ 'sst_method': config('sst-method'),
28 'sst_password': config('sst-password'),
29 'innodb_file_per_table': config('innodb-file-per-table'),
30 'table_open_cache': config('table-open-cache'),

Subscribers

People subscribed via source and target branches