Merge lp:~paulgear/charms/trusty/memcached/correct-nagios-service into lp:charms/trusty/memcached

Proposed by Paul Gear on 2015-02-24
Status: Merged
Merged at revision: 69
Proposed branch: lp:~paulgear/charms/trusty/memcached/correct-nagios-service
Merge into: lp:charms/trusty/memcached
Diff against target: 16 lines (+3/-3)
1 file modified
hooks/memcached_hooks.py (+3/-3)
To merge this branch: bzr merge lp:~paulgear/charms/trusty/memcached/correct-nagios-service
Reviewer Review Type Date Requested Status
Adam Israel Approve on 2015-03-26
Review Queue (community) automated testing Needs Fixing on 2015-03-03
charmers 2015-02-24 Pending
Review via email: mp+250716@code.launchpad.net
To post a comment you must log in.
Review Queue (review-queue) wrote :

This items has failed automated testing! Results available here http://reports.vapour.ws/charm-tests/charm-bundle-test-11063-results

review: Needs Fixing (automated testing)
Adam Israel (aisrael) wrote :

Hi Paul,

Thanks for your work towards improving the memcached charm! I had the opportunity to review this merge proposal today. While the proposed change is minor, I've been unable to test it properly. I added the relation between nagios, nrpe, and memcached but the check_memcached.cfg isn't being rendered.

Ideally, this functionality should be documented in the README and have an amulet test added to demonstrate the nagios relation.

When you're ready, set the status of this MP back to 'Needs Review' and we'll be happy to retest!

review: Needs Fixing
Paul Gear (paulgear) wrote :

Hi Adam, Brad has provided documentation about this in one of the other MPs for memcached. If you add a relation to nrpe-external-master, it should work.

I'm no longer working on this project, so I don't have the ability to dedicate time to writing tests, but if you review the two nrpe* templates in http://bazaar.launchpad.net/~charmers/charms/trusty/memcached/trunk/files/head:/templates/, you'll see that this MP is critical for the nrpe-external-master relation to function at all (the variables simply don't match what the template is expecting). IMO, it is better for it to be working without a unit test than not working without a unit test.

Adam Israel (aisrael) wrote :

Hi Paul,

Documentation received and commented on. nrpe-external-master isn't currently packaged in trusty, but there is a rewrite of the nrpe charm that includes the nrpe-external-master relation pending some test fixes. Once that has been released, we can finish testing this merge proposal.

Thanks again for your work, and your patience!

Adam Israel (aisrael) wrote :

Hey Paul,

Thanks again for all of your work here. The documentation with regard to nrpe-external-master has been added via lp:250717. You have my +1.

review: Approve
Paul Gear (paulgear) wrote :

Thanks Adam. Do you need us to merge, or do you guys handle that?

Adam Israel (aisrael) wrote :

No worries! One of the ~charmers will be along in the morning, US time, to do the merge.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/memcached_hooks.py'
2--- hooks/memcached_hooks.py 2015-02-20 16:15:18 +0000
3+++ hooks/memcached_hooks.py 2015-02-24 07:03:47 +0000
4@@ -290,9 +290,9 @@
5
6 nagios_hostname = "{}-{}".format(config('nagios_context'),
7 local_unit().replace('/', '-'))
8- configs = {'tcp_port': config('tcp_port'),
9- 'servicegroup': config('nagios-context'),
10- 'hostname': nagios_hostname}
11+ configs = {'tcp_port': config('tcp-port'),
12+ 'NAGIOS_SERVICEGROUP': config('nagios_context'),
13+ 'NAGIOS_HOSTNAME': nagios_hostname}
14
15 templating.render('nrpe_check_memcached.cfg.tmpl',
16 '/etc/nagios/nrpe.d/check_memcached.cfg',

Subscribers

People subscribed via source and target branches

to all changes: