Merge lp:~jillrouleau/charms/trusty/percona-cluster/add-n-e-m-interface into lp:~openstack-charmers-archive/charms/trusty/percona-cluster/next

Proposed by Jill Rouleau
Status: Merged
Approved by: Billy Olsen
Approved revision: 74
Merged at revision: 73
Proposed branch: lp:~jillrouleau/charms/trusty/percona-cluster/add-n-e-m-interface
Merge into: lp:~openstack-charmers-archive/charms/trusty/percona-cluster/next
Diff against target: 41 lines (+8/-1)
3 files modified
hooks/percona_hooks.py (+3/-0)
metadata.yaml (+3/-0)
unit_tests/test_percona_hooks.py (+2/-1)
To merge this branch: bzr merge lp:~jillrouleau/charms/trusty/percona-cluster/add-n-e-m-interface
Reviewer Review Type Date Requested Status
Billy Olsen Approve
Review via email: mp+270874@code.launchpad.net

Description of the change

Add missing n-e-m interface, config-changed so hooks will run.

To post a comment you must log in.
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #9775 percona-cluster-next for jillrouleau mp270874
    LINT FAIL: lint-test failed

LINT Results (max last 2 lines):
make: *** [lint] Error 1
ERROR:root:Make target returned non-zero.

Full lint test output: http://paste.ubuntu.com/12351174/
Build: http://10.245.162.77:8080/job/charm_lint_check/9775/

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

charm_unit_test #9003 percona-cluster-next for jillrouleau mp270874
    UNIT OK: passed

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

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

charm_amulet_test #6357 percona-cluster-next for jillrouleau mp270874
    AMULET OK: passed

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

Revision history for this message
Billy Olsen (billy-olsen) wrote :

Minor nit - can you fix the lint error? Looks like too much whitespace (extra blank line) after the TO_PATCH array in unit_test/test_percona_hooks.py

review: Needs Fixing
74. By Jill Rouleau

[jillr] remove extraneous newline

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

charm_unit_test #9233 percona-cluster-next for jillrouleau mp270874
    UNIT OK: passed

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

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

charm_lint_check #10067 percona-cluster-next for jillrouleau mp270874
    LINT OK: passed

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

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

charm_amulet_test #6453 percona-cluster-next for jillrouleau mp270874
    AMULET OK: passed

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

Revision history for this message
Billy Olsen (billy-olsen) wrote :

Thanks Jill, this looks good to me! Approved

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'hooks/percona_hooks.py'
--- hooks/percona_hooks.py 2015-07-30 10:39:19 +0000
+++ hooks/percona_hooks.py 2015-09-15 23:55:51 +0000
@@ -278,6 +278,9 @@
278 # make sure all the HA resources are (re)created278 # make sure all the HA resources are (re)created
279 ha_relation_joined()279 ha_relation_joined()
280280
281 if is_relation_made('nrpe-external-master'):
282 update_nrpe_config()
283
281284
282@hooks.hook('cluster-relation-joined')285@hooks.hook('cluster-relation-joined')
283def cluster_joined():286def cluster_joined():
284287
=== modified file 'metadata.yaml'
--- metadata.yaml 2015-08-26 13:10:35 +0000
+++ metadata.yaml 2015-09-15 23:55:51 +0000
@@ -14,6 +14,9 @@
14 interface: mysql-root14 interface: mysql-root
15 shared-db:15 shared-db:
16 interface: mysql-shared16 interface: mysql-shared
17 nrpe-external-master:
18 interface: nrpe-external-master
19 scope: container
17peers:20peers:
18 cluster:21 cluster:
19 interface: percona-cluster22 interface: percona-cluster
2023
=== modified file 'unit_tests/test_percona_hooks.py'
--- unit_tests/test_percona_hooks.py 2015-08-26 13:22:41 +0000
+++ unit_tests/test_percona_hooks.py 2015-09-15 23:55:51 +0000
@@ -8,7 +8,8 @@
8TO_PATCH = ['log', 'config',8TO_PATCH = ['log', 'config',
9 'get_db_helper',9 'get_db_helper',
10 'relation_ids',10 'relation_ids',
11 'relation_set']11 'relation_set',
12 'update_nrpe_config']
1213
1314
14class TestHaRelation(CharmTestCase):15class TestHaRelation(CharmTestCase):

Subscribers

People subscribed via source and target branches