Merge lp:~gnuoy/charms/trusty/nrpe/sibling-subordinate into lp:charms/trusty/nrpe
| Status: | Merged |
|---|---|
| Merge reported by: | David Ames |
| Merged at revision: | not available |
| Proposed branch: | lp:~gnuoy/charms/trusty/nrpe/sibling-subordinate |
| Merge into: | lp:charms/trusty/nrpe |
| Diff against target: |
476 lines (+144/-199) 6 files modified
Makefile (+1/-1) README.md (+20/-0) hooks/nrpe_helpers.py (+69/-54) tests/10-tests (+54/-12) tests/11-monitors-configurations (+0/-60) tests/13-monitors-config (+0/-72) |
| To merge this branch: | bzr merge lp:~gnuoy/charms/trusty/nrpe/sibling-subordinate |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| David Ames | Approve on 2016-03-22 | ||
| Review Queue (community) | automated testing | Approve on 2016-03-22 | |
| charmers | 2016-03-14 | Pending | |
|
Review via email:
|
|||
Description of the Change
Add support for multiple charms to be related to nrpe via the nrpe, juju-info or local-monitors relation. This is useful when joining an additional local subordinate to this charm. See README changes.
| David Ames (thedac) wrote : | # |
Liam running a manual amulet test fails:
2016-03-18 15:08:25 Deploying services...
2016-03-18 15:09:37 Config specifies num units for subordinate: nrpe
2016-03-18 15:09:39 Adding relations...
2016-03-18 15:09:40 Adding relation nrpe:local-monitors <-> mysql:local-
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
run()
File "/usr/lib/
importer.
File "/usr/lib/
rels_created = self.add_
File "/usr/lib/
self.
File "/usr/lib/
return self.client.
File "/usr/lib/
'Endpoints': [endpoint_a, endpoint_b]
File "/usr/lib/
raise EnvError(result)
jujuclient.
{ u'Error': u'cannot add relation "nrpe:local-
must match',
u'RequestId': 1,
u'Response': { }}
>
E
=======
ERROR: setUpClass (__main_
-------
Traceback (most recent call last):
File "tests/10-tests", line 28, in setUpClass
cls.
File "/usr/lib/
subprocess.
File "/usr/lib/
raise CalledProcessEr
CalledProcessError: Command '['juju-deployer', '-W', '-c', '/tmp/amulet-
edac-laptop', '-t', '1000', 'thedac-laptop']' returned non-zero exit status 1
-------
Ran 0 tests in 77.503s
FAILED (errors=1)
| Review Queue (review-queue) wrote : | # |
This item has failed automated testing! Results available here http://
- 44. By Liam Young on 2016-03-20
-
Fix bug which was stopping local checks being rendered
- 45. By Liam Young on 2016-03-20
-
Merge tests/11-
monitors- configurations tests/13- monitors- config into tests/10-tests. Promote 14-basic- nrpe-external- master to me run from Makefile along with 10-tests. Fix bug causing checks with a _default prefix being defined on the monitors relation - 46. By Liam Young on 2016-03-20
-
Remove debug print
| David Ames (thedac) wrote : | # |
I have manually run the amulet tests successfully.
+1 from me.
We may still need to figure out why the automated testing is having problems.
| Review Queue (review-queue) wrote : | # |
The results (PASS) are in and available here: http://

This item has failed automated testing! Results available here http:// juju-ci. vapour. ws:8080/ job/charm- bundle- test-aws/ 3192/