Comment 14 for bug 1943628

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

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

commit ddfa1d4b8ab4e209c85ed2630c0b4fd6d12db7d2
Author: Nobuto Murata <email address hidden>
Date: Wed Feb 1 03:11:22 2023 +0000

    Revert "Create NRPE check to verify ceph daemons versions"

    This reverts commit dfbda68e1add1e8a31ef0e14c043b584532fcd03.

    Reason for revert:

    The Ceph version check seems to be missing a consideration of users to
    execute the nrpe check. It actually fails to get keyrings to execute the
    command as it's run by a non-root user.

    $ juju run-action --wait nrpe/0 run-nrpe-check name=check-ceph-daemons-versions
    unit-nrpe-0:
      UnitId: nrpe/0
      id: "20"
      results:
        Stderr: |
          2023-02-01T03:03:09.556+0000 7f4677361700 -1 auth: unable to find
          a keyring on
          /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin:
          (2) No such file or directory
          2023-02-01T03:03:09.556+0000 7f4677361700 -1
          AuthRegistry(0x7f467005f540) no keyring found at
          /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,
          disabling cephx
          2023-02-01T03:03:09.556+0000 7f4677361700 -1 auth: unable to find
          a keyring on
          /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin:
          (2) No such file or directory
          2023-02-01T03:03:09.556+0000 7f4677361700 -1
          AuthRegistry(0x7f4670064d88) no keyring found at
          /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,
          disabling cephx
          2023-02-01T03:03:09.560+0000 7f4677361700 -1 auth: unable to find
          a keyring on
          /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin:
          (2) No such file or directory
          2023-02-01T03:03:09.560+0000 7f4677361700 -1
          AuthRegistry(0x7f4677360000) no keyring found at
          /etc/ceph/ceph.client.admin.keyring,/etc/ceph/ceph.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin,
          disabling cephx
          [errno 2] RADOS object not found (error connecting to the cluster)
        check-output: 'UNKNOWN: could not determine OSDs versions, error: Command ''[''ceph'',
          ''versions'']'' returned non-zero exit status 1.'
      status: completed
      timing:
        completed: 2023-02-01 03:03:10 +0000 UTC
        enqueued: 2023-02-01 03:03:09 +0000 UTC
        started: 2023-02-01 03:03:09 +0000 UTC

    Related-Bug: #1943628
    Change-Id: I84b306e84661e6664e8a69fa93dfdb02fa4f1e7e