nrpe relation does not support systemd

Bug #1616525 reported by Alvaro Uria
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Ceph OSD Charm
Fix Released
Medium
Unassigned
ceph-osd (Juju Charms Collection)
Invalid
Medium
Unassigned

Bug Description

Partially related to lp#1578922

ceph-osd charm does not support nrpe checks on systemd env (ie. Xenial).

See workarounds, http://pastebin.ubuntu.com/23085378/

James Page (james-page)
Changed in ceph-osd (Juju Charms Collection):
status: New → Confirmed
importance: Undecided → Medium
status: Confirmed → Triaged
James Page (james-page)
Changed in charm-ceph-osd:
importance: Undecided → Medium
status: New → Triaged
Changed in ceph-osd (Juju Charms Collection):
status: Triaged → Invalid
Revision history for this message
Doug Parrish (dparrish) wrote :

In testing part of the workaround, listed in bug description above, with ceph-osd-241, i.e. making edits to ceph_hooks.py but not nrpe.py as it appears the latter has some systemd updates, it appears a check_nrpe limit was reached when checking a system with many OSDs. The output of the check_ceph-osd exceeded 1024 bytes.

$ /usr/lib/nagios/plugins/check_nrpe -H 127.0.0.1 -c check_ceph-osd
OK: ceph-osd@248.service is running
OK: ceph-osd@250.service is running
OK: ceph-osd@252.service is running
OK: ceph-osd@254.service is running
OK: ceph-osd@257.service is running
OK: ceph-osd@259.service is running
OK: ceph-osd@261.service is running
OK: ceph-osd@263.service is running
OK: ceph-osd@266.service is running
OK: ceph-osd@268.service is running
OK: ceph-osd@270.service is running
OK: ceph-osd@272.service is running
OK: ceph-osd@274.service is running
OK: ceph-osd@276.service is running
OK: ceph-osd@278.service is running
OK: ceph-osd@280.service is running
OK: ceph-osd@281.service is running
OK: ceph-osd@284.service is running
OK: ceph-osd@286.service is running
OK: ceph-osd@288.service is running
OK: ceph-osd@289.service is running
OK: ceph-osd@292.service is running
OK: ceph-osd@294.service is running
OK: ceph-osd@295.service is running
OK: ceph-osd@297.service is running
OK: ceph-osd@299.service is running
OK: ceph-osd@302.service is running
OK: ceph-osd@303.service is running
OK: ceph-osd@30

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ceph-osd (stable/18.05)

Fix proposed to branch: stable/18.05
Review: https://review.openstack.org/590251

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ceph-osd (stable/18.05)

Reviewed: https://review.openstack.org/590251
Committed: https://git.openstack.org/cgit/openstack/charm-ceph-osd/commit/?id=0356c22f282ad3ebadc97cd1b64bb198b0ad93a4
Submitter: Zuul
Branch: stable/18.05

commit 0356c22f282ad3ebadc97cd1b64bb198b0ad93a4
Author: Alvaro Uria <email address hidden>
Date: Thu Aug 9 13:22:49 2018 +0200

    Support systemd nrpe check for ceph-osd@N units

    ceph-osd<->nrpe relation adds a single check that parses the service
    status of all the ceph-osd processes. The check supported sysv and
    upstart environments, but not systemd, which has been added.

    add_init_service_checks does support systemd but it would create a
    nrpe check per OSD (vs a single check for all OSDs)

    Change-Id: I19689740b4d95107c46435f56d808139c071b826
    Closes-Bug: 1616525
    Signed-off-by: Alvaro Uria <email address hidden>

Alvaro Uria (aluria)
Changed in charm-ceph-osd:
status: Triaged → Fix Committed
status: Fix Committed → Fix Released
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.