ceph-osd failed : unable to read/decode monmap from /srv/storage/bcache-sdb/activate.monmap: (13) Permission denied with apparmor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph OSD Charm |
Triaged
|
Low
|
Unassigned |
Bug Description
/srv/storage/
With apparmor enabled, looks like we have to mount it under /srv/ceph, but there is no mention to the path restriction in the charm config option. The description of osd-devices could be improved.
[osd-devices option]
For ceph >= 0.56.6 these can also be directories instead of devices - the
charm assumes anything not starting with /dev is a directory instead.
[/etc/apparmor.
/run/ceph/* rw,
/srv/ceph/** rwk,
/tmp/ r,
/var/lib/ceph/** rwk,
/var/
/var/
/var/log/ceph/* rwk,
/var/run/ceph/* rwk,
/var/tmp/ r,
Jan 20 09:58:52 ucs-5a-block-3 kernel: [48696.998084] audit: type=1400 audit(151644233
unit-ceph-osd-1: 09:57:12 DEBUG unit.ceph-
activate.monmap', '--osd-data', '/srv/storage/
e/bcache-
unit-ceph-osd-1: 09:57:12 DEBUG unit.ceph-
unit-ceph-osd-1: 09:57:12 DEBUG unit.ceph-
unit-ceph-osd-1: 09:57:12 DEBUG unit.ceph-
unit-ceph-osd-1: 09:57:12 DEBUG unit.ceph-
unit-ceph-osd-1: 09:57:12 DEBUG unit.ceph-
unit-ceph-osd-1: 09:57:12 DEBUG unit.ceph-
unit-ceph-osd-1: 09:57:12 DEBUG unit.ceph-
unit-ceph-osd-1: 09:57:12 DEBUG unit.ceph-
unit-ceph-osd-1: 09:57:12 DEBUG unit.ceph-
unit-ceph-osd-1: 09:57:12 DEBUG unit.ceph-
unit-ceph-osd-1: 09:57:12 DEBUG unit.ceph-
unit-ceph-osd-1: 09:57:12 DEBUG unit.ceph-
unit-ceph-osd-1: 09:57:12 DEBUG unit.ceph-
unit-ceph-osd-1: 09:57:12 DEBUG unit.ceph-
unit-ceph-osd-1: 09:57:12 DEBUG unit.ceph-
s 1
unit-ceph-osd-1: 09:57:13 ERROR juju.worker.
I didn't notice the restriction, since I somehow used /srv/ceph by nature. But this time I just wanted to use some generic names (/srv/storage) since some of the bcache mount points are used for Swift.