smartctl-validate details does not exist in ceph dashboard.

Bug #2031637 reported by Narinder Gupta
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceph Dashboard Charm
Fix Committed
High
Unassigned
Ceph OSD Charm
Fix Released
Undecided
Unassigned

Bug Description

click in osd tab for startctl in ceph-dashboard there is no matrix available. Request is to enable smartctl in ceph dashboard.
Quincy with Jammy and deploy ceph-dashboard in HA. But no smartctl metrics available in ceph dashboard.

Revision history for this message
Nobuto Murata (nobuto) wrote :
Download full text (4.0 KiB)

I can confirm the dashboard is missing SMART data.

smartctl is available on ceph-osd hosts:
https://github.com/openstack/charm-ceph-osd/blob/stable/quincy.2/lib/charms_ceph/utils.py#L91-L93

The necessary sudoers file is installed by a package:

# cat /etc/sudoers.d/ceph-smartctl
## allow ceph daemons (which run as user ceph) to collect device health metrics

ceph ALL=NOPASSWD: /usr/sbin/smartctl -x --json=o /dev/*
ceph ALL=NOPASSWD: /usr/sbin/nvme * smart-log-add --json /dev/*

# dpkg -S /etc/sudoers.d/ceph-smartctl
ceph-base: /etc/sudoers.d/ceph-smartctl

However, when access to /run/udev/data/b*:* is denied, Ceph OSD doesn't run smartctl.

Oct 19 07:29:58 top-wasp kernel: [15714.338549] audit: type=1400 audit(1697700598.925:939): apparmor="ALLOWED" operation="open" profile="/usr/bin/ceph-osd" name="/run/udev/data/b252:16" pid=138858 comm="admin_socket" requested_mask="r" denied_mask="r" fsuid=64045 ouid=0
Oct 19 07:29:59 top-wasp kernel: [15714.527631] audit: type=1400 audit(1697700599.113:940): apparmor="ALLOWED" operation="exec" profile="/usr/bin/ceph-osd" name="/usr/bin/sudo" pid=139702 comm="admin_socket" requested_mask="x" denied_mask="x" fsuid=64045 ouid=0 target="/usr/bin/ceph-osd//null-/usr/bin/sudo"
Oct 19 07:29:59 top-wasp kernel: [15714.532630] audit: type=1400 audit(1697700599.117:941): apparmor="ALLOWED" operation="file_mmap" profile="/usr/bin/ceph-osd//null-/usr/bin/sudo" name="/usr/bin/sudo" pid=139702 comm="sudo" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Oct 19 07:29:59 top-wasp kernel: [15714.532679] audit: type=1400 audit(1697700599.117:942): apparmor="ALLOWED" operation="file_mmap" profile="/usr/bin/ceph-osd//null-/usr/bin/sudo" name="/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2" pid=139702 comm="sudo" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Oct 19 07:29:59 top-wasp kernel: [15714.532914] audit: type=1400 audit(1697700599.117:943): apparmor="ALLOWED" operation="open" profile="/usr/bin/ceph-osd//null-/usr/bin/sudo" name="/dev/full" pid=139702 comm="sudo" requested_mask="w" denied_mask="w" fsuid=0 ouid=0
Oct 19 07:29:59 top-wasp kernel: [15714.532921] audit: type=1400 audit(1697700599.117:944): apparmor="ALLOWED" operation="open" profile="/usr/bin/ceph-osd//null-/usr/bin/sudo" name="/dev/null" pid=139702 comm="sudo" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Oct 19 07:29:59 top-wasp kernel: [15714.533055] audit: type=1400 audit(1697700599.117:945): apparmor="ALLOWED" operation="open" profile="/usr/bin/ceph-osd//null-/usr/bin/sudo" name="/etc/ld.so.cache" pid=139702 comm="sudo" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Oct 19 07:29:59 top-wasp kernel: [15714.533086] audit: type=1400 audit(1697700599.117:946): apparmor="ALLOWED" operation="open" profile="/usr/bin/ceph-osd//null-/usr/bin/sudo" name="/usr/lib/x86_64-linux-gnu/libaudit.so.1.0.0" pid=139702 comm="sudo" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Oct 19 07:29:59 top-wasp kernel: [15714.533116] audit: type=1400 audit(1697700599.117:947): apparmor="ALLOWED" operation="file_mmap" profile="/usr/bin/ceph-osd//null-/usr/bin/sudo" name="/usr/lib/x86_64-linux-gnu/libaudit.so.1.0.0" pid=139702 comm="sudo" requested_mask="rm" de...

Read more...

Revision history for this message
Nobuto Murata (nobuto) wrote :

Device health - device information (after setting aa-profile-mode=complain)

Revision history for this message
Nobuto Murata (nobuto) wrote :

Device health - SMART (after setting aa-profile-mode=complain)

Nobuto Murata (nobuto)
tags: added: field-ceph-dashboard
Revision history for this message
Nobuto Murata (nobuto) wrote :
Revision history for this message
Nobuto Murata (nobuto) wrote :

Subscribing ~field-high.

To get the review taken over, updated, and/or merged.
https://review.opendev.org/c/openstack/charm-ceph-osd/+/898966

Changed in charm-ceph-dashboard:
status: New → Fix Committed
importance: Undecided → High
Nobuto Murata (nobuto)
Changed in charm-ceph-osd:
status: New → 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.