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
Reviewed: https:/ /review. opendev. org/c/openstack /charm- ceph-mon/ +/872302 /opendev. org/openstack/ charm-ceph- mon/commit/ ddfa1d4b8ab4e20 9c85ed2630c0b4f d6d12db7d2
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/quincy.2
commit ddfa1d4b8ab4e20 9c85ed2630c0b4f d6d12db7d2
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 dfbda68e1add1e8 a31ef0e14c043b5 84532fcd03.
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
2023- 02-01T03: 03:09.556+ 0000 7f4677361700 -1 auth: unable to find
/etc/ ceph/ceph. client. admin.keyring, /etc/ceph/ ceph.keyring, /etc/ceph/ keyring, /etc/ceph/ keyring. bin:
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,
2023- 02-01T03: 03:09.556+ 0000 7f4677361700 -1 auth: unable to find
/etc/ ceph/ceph. client. admin.keyring, /etc/ceph/ ceph.keyring, /etc/ceph/ keyring, /etc/ceph/ keyring. bin:
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,
2023- 02-01T03: 03:09.560+ 0000 7f4677361700 -1 auth: unable to find
/etc/ ceph/ceph. client. admin.keyring, /etc/ceph/ ceph.keyring, /etc/ceph/ keyring, /etc/ceph/ keyring. bin:
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,
check- output: 'UNKNOWN: could not determine OSDs versions, error: Command ''[''ceph'',
''versions' ']'' returned non-zero exit status 1.'
unit-nrpe-0:
UnitId: nrpe/0
id: "20"
results:
Stderr: |
a keyring on
(2) No such file or directory
disabling cephx
a keyring on
(2) No such file or directory
disabling cephx
a keyring on
(2) No such file or directory
disabling cephx
[errno 2] RADOS object not found (error connecting to the cluster)
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 664e8a69fa93dfd b02fa4f1e7e
Change-Id: I84b306e84661e6