[Bug 2085616] Re: ceph 'failed to probe daemons or devices' due to apparmor

SiveHost 2085616 at bugs.launchpad.net
Mon Nov 4 14:39:21 UTC 2024


JUST A QUICK WORK-AROUND:
If on ubuntu 24 LTS, having ran apt full-upgrade on it to make ceph squid stable 19.2.0, and apparmor profile MongoDB Compass is the only profile with space in its name you can just do the following to work around this, especially on the node with the issue, but probably good to apply to all nodes for consistency.

#1 check profiles with spaces: sudo nano
/sys/kernel/security/apparmor/profiles , do not edit, just read, do not
mind the (unconfined), the space in between it and the profile does not
count.

~> sudo systemctl disable apparmor
~>sudo systemctl stop apparmor;sudo systemctl status apparmor
~> sudo mkdir /etc/apparmor.d/disabled/
~> sudo mv /etc/apparmor.d/MongoDB_Compass /etc/apparmor.d/disabled/

Then reboot and check whether the issue is solved. If it is Not, probably wise to reverse the action by:
~> sudo mv /etc/apparmor.d/disabled/MongoDB_Compass /etc/apparmor.d/

And then the below you do either way, whether solved or not (unless you want to keep apparmor disabled and risk the consequences):
~> sudo systemctl enable apparmor
~> sudo systemctl start apparmor;sudo systemctl status apparmor
Then reboot and check whether everything is still functional.

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ceph in Ubuntu.
https://bugs.launchpad.net/bugs/2085616

Title:
  ceph 'failed to probe daemons or devices' due to apparmor

Status in ceph package in Ubuntu:
  New

Bug description:
  Upgraded one of my hosts from 22.04 to 24.04. Now I get a warning
  "failed to probe daemons or devices".

  I've reported this issue on the ceph users mailing list, but it seems
  Ubuntu-specific.

  ceph health detail gives me:
  HEALTH_WARN failed to probe daemons or devices
  [WRN] CEPHADM_REFRESH_FAILED: failed to probe daemons or devices
      host hvs004 `cephadm gather-facts` failed: cephadm exited with an error code: 1, stderr: Traceback (most recent call last):
    File "<frozen runpy>", line 198, in _run_module_as_main
    File "<frozen runpy>", line 88, in _run_code
    File "/var/lib/ceph/dd4b0610-b4d2-11ec-bb58-d1b32ae31585/cephadm.a58127a8eed242cae13849ddbebcb9931d7a5410f406f2d264e3b1ed31d9605e/__main__.py", line 5579, in <module>
    File "/var/lib/ceph/dd4b0610-b4d2-11ec-bb58-d1b32ae31585/cephadm.a58127a8eed242cae13849ddbebcb9931d7a5410f406f2d264e3b1ed31d9605e/__main__.py", line 5567, in main
    File "/var/lib/ceph/dd4b0610-b4d2-11ec-bb58-d1b32ae31585/cephadm.a58127a8eed242cae13849ddbebcb9931d7a5410f406f2d264e3b1ed31d9605e/__main__.py", line 4639, in command_gather_facts
    File "/var/lib/ceph/dd4b0610-b4d2-11ec-bb58-d1b32ae31585/cephadm.a58127a8eed242cae13849ddbebcb9931d7a5410f406f2d264e3b1ed31d9605e/cephadmlib/host_facts.py", line 835, in dump
    File "/var/lib/ceph/dd4b0610-b4d2-11ec-bb58-d1b32ae31585/cephadm.a58127a8eed242cae13849ddbebcb9931d7a5410f406f2d264e3b1ed31d9605e/cephadmlib/host_facts.py", line 743, in kernel_security
    File "/var/lib/ceph/dd4b0610-b4d2-11ec-bb58-d1b32ae31585/cephadm.a58127a8eed242cae13849ddbebcb9931d7a5410f406f2d264e3b1ed31d9605e/cephadmlib/host_facts.py", line 722, in _fetch_apparmor
  ValueError: too many values to unpack (expected 2)

  The only workarond seems to disable Apparmor and reboot the host.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/2085616/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list