ceph status check with nrpe will fail due to necessary package not being installed

Bug #1998163 reported by Yoshi Kadokawa
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ceph Monitor Charm
Fix Committed
High
Unassigned

Bug Description

This is happening on deployment with Ceph on Jammy and adding nrpe-external-master relation.
When that relation is added, this code[0] is triggered, but faililng with installing python-dbus package,
as you can see from the following log. I believe it is now python3-dbus from Jammy.

2022-11-29 01:19:01 INFO juju.worker.uniter.operation runhook.go:149 skipped "nrpe-external-master-relation-created" hook (missing)
2022-11-29 01:19:06 INFO unit.ceph-mon/0.juju-log server.go:316 nrpe-external-master:503: Installing ['python-dbus', 'lockfile-progs'] with options: ['--option=Dpkg::Options::=--force-confold']
2022-11-29 01:19:06 WARNING unit.ceph-mon/0.nrpe-external-master-relation-joined logger.go:60 E: Package 'python-dbus' has no installation candidate

Because of the above error, it will skip installing lockfile-progs package. And because of this the following critical alert is triggered from nrpe.

/var/lib/nagios/cat-ceph-status.txt: does not exist.

[0] https://opendev.org/openstack/charm-ceph-mon/src/branch/master/src/ceph_hooks.py#L1106

Changed in charm-ceph-mon:
status: New → Triaged
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ceph-mon (master)
Changed in charm-ceph-mon:
status: Triaged → In Progress
Revision history for this message
Nobuto Murata (nobuto) wrote :

Subscribing ~field-high.

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

Fix proposed to branch: stable/quincy
Review: https://review.opendev.org/c/openstack/charm-ceph-mon/+/870720

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ceph-mon (master)

Reviewed: https://review.opendev.org/c/openstack/charm-ceph-mon/+/870718
Committed: https://opendev.org/openstack/charm-ceph-mon/commit/df676a097f780679f73c441d7fb67cdacde634c6
Submitter: "Zuul (22348)"
Branch: master

commit df676a097f780679f73c441d7fb67cdacde634c6
Author: Nobuto Murata <email address hidden>
Date: Tue Jan 17 17:09:48 2023 +0900

    Make sure lockfile-progs package is installed

    Also, drop python-dbus for simplicity since "check_upstart_job" in nrpe
    is not enabled any longer. And the python-dbus package is no longer
    available on jammy either.

        [on focal with systemd]
        $ ls -1 /etc/nagios/nrpe.d/
        check_ceph.cfg
        check_conntrack.cfg
        check_reboot.cfg
        check_systemd_scopes.cfg

    Closes-Bug: #1998163
    Change-Id: I30bc22ae8509367207004b90eb2c38ad0fae9ffe

Changed in charm-ceph-mon:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ceph-mon (stable/quincy.2)

Fix proposed to branch: stable/quincy.2
Review: https://review.opendev.org/c/openstack/charm-ceph-mon/+/871554

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on charm-ceph-mon (stable/quincy)

Change abandoned by "Nobuto Murata <email address hidden>" on branch: stable/quincy
Review: https://review.opendev.org/c/openstack/charm-ceph-mon/+/870720
Reason: In favor of https://review.opendev.org/c/openstack/charm-ceph-mon/+/871554

I've been told that the quincy.2 branch instead of quincy is the one to be used for charm publishing from now on.
https://launchpad.net/~openstack-charmers/charm-ceph-mon/+charm/charm-ceph-mon.stable-quincy.2.quincy

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ceph-mon (stable/quincy.2)

Reviewed: https://review.opendev.org/c/openstack/charm-ceph-mon/+/871554
Committed: https://opendev.org/openstack/charm-ceph-mon/commit/6b643ebffca4fa6dcfc19625337756a63d4c494d
Submitter: "Zuul (22348)"
Branch: stable/quincy.2

commit 6b643ebffca4fa6dcfc19625337756a63d4c494d
Author: Nobuto Murata <email address hidden>
Date: Tue Jan 17 17:09:48 2023 +0900

    Make sure lockfile-progs package is installed

    Also, drop python-dbus for simplicity since "check_upstart_job" in nrpe
    is not enabled any longer. And the python-dbus package is no longer
    available on jammy either.

        [on focal with systemd]
        $ ls -1 /etc/nagios/nrpe.d/
        check_ceph.cfg
        check_conntrack.cfg
        check_reboot.cfg
        check_systemd_scopes.cfg

    Closes-Bug: #1998163
    Change-Id: I30bc22ae8509367207004b90eb2c38ad0fae9ffe
    (cherry picked from commit df676a097f780679f73c441d7fb67cdacde634c6)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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