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
1=== modified file 'hooks/percona_hooks.py'
2--- hooks/percona_hooks.py 2015-07-30 10:39:19 +0000
3+++ hooks/percona_hooks.py 2015-09-15 23:55:51 +0000
4@@ -278,6 +278,9 @@
5 # make sure all the HA resources are (re)created
6 ha_relation_joined()
7
8+ if is_relation_made('nrpe-external-master'):
9+ update_nrpe_config()
10+
11
12 @hooks.hook('cluster-relation-joined')
13 def cluster_joined():
14
15=== modified file 'metadata.yaml'
16--- metadata.yaml 2015-08-26 13:10:35 +0000
17+++ metadata.yaml 2015-09-15 23:55:51 +0000
18@@ -14,6 +14,9 @@
19 interface: mysql-root
20 shared-db:
21 interface: mysql-shared
22+ nrpe-external-master:
23+ interface: nrpe-external-master
24+ scope: container
25 peers:
26 cluster:
27 interface: percona-cluster
28
29=== modified file 'unit_tests/test_percona_hooks.py'
30--- unit_tests/test_percona_hooks.py 2015-08-26 13:22:41 +0000
31+++ unit_tests/test_percona_hooks.py 2015-09-15 23:55:51 +0000
32@@ -8,7 +8,8 @@
33 TO_PATCH = ['log', 'config',
34 'get_db_helper',
35 'relation_ids',
36- 'relation_set']
37+ 'relation_set',
38+ 'update_nrpe_config']
39
40
41 class TestHaRelation(CharmTestCase):

Subscribers

People subscribed via source and target branches