smartctl-validate details does not exist in ceph dashboard.
Bug #2031637 reported by
Narinder Gupta
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.
tags: | added: field-ceph-dashboard |
Changed in charm-ceph-dashboard: | |
status: | New → Fix Committed |
importance: | Undecided → High |
Changed in charm-ceph-osd: | |
status: | New → Fix Released |
To post a comment you must log in.
I can confirm the dashboard is missing SMART data.
smartctl is available on ceph-osd hosts: /github. com/openstack/ charm-ceph- osd/blob/ stable/ quincy. 2/lib/charms_ ceph/utils. py#L91- L93
https:/
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 d/ceph- smartctl
ceph-base: /etc/sudoers.
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(169770059 8.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 9.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" 9.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 9.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 9.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 9.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 9.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 9.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 9.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...
Oct 19 07:29:59 top-wasp kernel: [15714.527631] audit: type=1400 audit(169770059
Oct 19 07:29:59 top-wasp kernel: [15714.532630] audit: type=1400 audit(169770059
Oct 19 07:29:59 top-wasp kernel: [15714.532679] audit: type=1400 audit(169770059
Oct 19 07:29:59 top-wasp kernel: [15714.532914] audit: type=1400 audit(169770059
Oct 19 07:29:59 top-wasp kernel: [15714.532921] audit: type=1400 audit(169770059
Oct 19 07:29:59 top-wasp kernel: [15714.533055] audit: type=1400 audit(169770059
Oct 19 07:29:59 top-wasp kernel: [15714.533086] audit: type=1400 audit(169770059
Oct 19 07:29:59 top-wasp kernel: [15714.533116] audit: type=1400 audit(169770059