Project

General

Profile

Actions

Bug #52416

closed

devices: mon devices appear empty when scraping SMART metrics

Added by Yaarit Hatuka over 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
pacific, octopus
Regression:
No
Severity:
3 - minor
Reviewed:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

When invoking smartctl on mon devices, the device name is empty:

ceph : user NOT in sudoers ; TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/sbin/smartctl -a --json=o /dev/

Also, mon devices are not listed in `ceph device ls` output.

See: https://tracker.ceph.com/issues/50657


Related issues 4 (1 open3 closed)

Related to RADOS - Bug #50657: smart query on monitorsResolvedYaarit Hatuka

Actions
Related to Ceph - Bug #54385: better test mon and osd smart commandFix Under ReviewDan van der Ster

Actions
Copied to RADOS - Backport #54232: pacific: devices: mon devices appear empty when scraping SMART metricsResolvedActions
Copied to RADOS - Backport #54233: octopus: devices: mon devices appear empty when scraping SMART metricsResolvedActions
Actions #1

Updated by Yaarit Hatuka over 2 years ago

  • Related to Bug #50657: smart query on monitors added
Actions #2

Updated by Benoît Knecht over 2 years ago

If `ceph-mon` runs as a systemd unit, check if `PrivateDevices=yes` in `/lib/systemd/system/ceph-mon@.service`; if so, try setting `PrivateDevices=false` instead, then

```
  1. systemctl daemon-reload
  2. systemctl restart ceph-mon.target
    ```

If `ceph-mon` runs in a container, you might have a similar issue if the host `/dev` isn't exposed within the container.

This PR should fix it: https://github.com/ceph/ceph/pull/44221.

Actions #3

Updated by Neha Ojha over 2 years ago

  • Status changed from New to Fix Under Review
  • Assignee deleted (Yaarit Hatuka)
  • Pull request ID set to 44221
Actions #4

Updated by Yaarit Hatuka over 2 years ago

  • Backport set to pacific, octopus
Actions #5

Updated by Benoît Knecht about 2 years ago

I'd like to backport this to Pacific and Octopus, but the Backport Bot didn't create the corresponding tickets; what needs to be done in order for this to happen?

Actions #6

Updated by Yaarit Hatuka about 2 years ago

  • Status changed from Fix Under Review to Pending Backport

Thanks, Benoît,
Once the status is changed to "Pending Backport" the bot should find it.

Actions #7

Updated by Backport Bot about 2 years ago

  • Copied to Backport #54232: pacific: devices: mon devices appear empty when scraping SMART metrics added
Actions #8

Updated by Backport Bot about 2 years ago

  • Copied to Backport #54233: octopus: devices: mon devices appear empty when scraping SMART metrics added
Actions #9

Updated by Benoît Knecht about 2 years ago

Ah, indeed! I don't think I would have been able to change the status myself though, so thanks for doing it!

Actions #10

Updated by Dan van der Ster about 2 years ago

  • Related to Bug #54385: better test mon and osd smart command added
Actions #11

Updated by Yaarit Hatuka almost 2 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF