Python rewrite of nrpe for trusty

Bug #1430732 reported by Liam Young
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juju Charms Collection
Fix Released
Undecided
Liam Young

Bug Description

There is currently no nrpe-external-master charm in trusty but there is one in precise. I have rewritten the nrpe charm in python with the services framework so that it includes the nrpe-external-master functionality and this bug is to track its submission.

This version of the charm should work as a direct replacement for both lp:charms/precise/nrpe-external-master and the existing lp:charms/trusty/nrpe

Related branches

Revision history for this message
Liam Young (gnuoy) wrote :

I have made a small(ish) addition to enable the monitor relation. The monitor relation is defined in the metadata.yaml of the precise bash version of the charm but not implemented.

Revision history for this message
Liam Young (gnuoy) wrote :

I'm assigning this back to myself because I want to put it on hold as we need to decide whether now is the time to merge the nrpe and nrpe-external-master charms.

Changed in charms:
assignee: nobody → Liam Young (gnuoy)
Liam Young (gnuoy)
summary: - Python rewrite of nrpe-external-master for trusty
+ Python rewrite of nrpe for trusty
Revision history for this message
Liam Young (gnuoy) wrote :

I have merged the nrpe and nrpe-external-master charm functionality in a service framework rewrite of the nrpe charm.

I've tested upgrading from the old nrpe charm and switching from the old nrpe-external-master charm to this charm.

description: updated
Changed in charms:
assignee: Liam Young (gnuoy) → nobody
Revision history for this message
Ryan Beisner (1chb1n) wrote :

Manually kicked off lint, unit and amulet runs.

Amulet OK
  juju-test INFO : Results: 2 passed, 0 failed, 0 errored

Lint OK

Unit needs love.

Revision history for this message
Adam Israel (aisrael) wrote :

Hi Liam,

Thanks for your work rewriting this charm! There are a handful of other merge proposals blocked on having npre-external-master in trusty, so this will be a very welcome addition to the charm store.

`make lint` runs flake8 against unit_tests, which doesn't exist.

`make test`'s amulet tests fails if an environment is stood up. The automated testing will bootstrap a fresh environment between runs, and this will currently fail. To work around this, you can add a tests.yaml to the tests directory with the following:

makefile:
    - lint

This will tell bundletester to explicitly run make lint, and then it will auto-detect the tests in tests/ and run those.

Once these issues are resolved, I'll be happy to re-test it. Thanks again!

Revision history for this message
Marco Ceppi (marcoceppi) wrote :

Hi Liam,

I'm closing this bug as the review-queue has picked up the merge you proposed. All further conversation should take place on that merge.

Thanks for you work thus far!

Marco

Changed in charms:
status: New → In Progress
Revision history for this message
Felipe Reyes (freyes) wrote :

As the patch is already merged into lp:charms/trusty/nrpe , changing the status to 'Fix Released'

Changed in charms:
status: In Progress → Fix Released
assignee: nobody → Liam Young (gnuoy)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.