Bug 1891557

Summary: ceph-volume ignores osd_mount_options_xfs
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Michael J. Kidd <linuxkidd>
Component: Ceph-VolumeAssignee: Guillaume Abrioux <gabrioux>
Status: CLOSED ERRATA QA Contact: Ameena Suhani S H <amsyedha>
Severity: high Docs Contact:
Priority: low    
Version: 4.1CC: bniver, ceph-eng-bugs, ceph-qe-bugs, dsavinea, gabrioux, gmeno, gsitlani, rmandyam, tserlin, vashastr
Target Milestone: ---   
Target Release: 4.3   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-14.2.20-2.el8cp, ceph-14.2.20-2.el7cp Doc Type: Bug Fix
Doc Text:
Cause: When running ceph-volume simple activate command on a Filestore OSD then the data device is mounted without any specific options. Consequence: Options specified in the configuration file are ignored. Fix: Use the mount_osd() method when using 'ceph-volume simple activate' on a filestore OSD. Result: The options from the configuration file are honored.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-05 07:53:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael J. Kidd 2020-10-26 15:54:11 UTC
Description of problem:
After upgrade from RHCS 3.x to RHCS 4.1, syslog/journalctl filled with loads of SELinux access denials (selinux in permissive mode).

Confirmed that the OSDs were not mounted with the given 'context=' parameter as specified by ceph.conf 'osd_mount_options_xfs' like they were in RHCS 3.x.

Version-Release number of selected component (if applicable):
4.1

How reproducible:
100%

Steps to Reproduce:
1. Set osd_mount_options_xfs to include anything non-default
2. Reboot OSD node
3. Observe 'mount' of filestore OSDs not honoring the new mount options.

Actual results:
Mounted OSDs not honoring the osd_mount_options_xfs parameter.

Expected results:
Mounted OSDs to honor the osd_mount_options_xfs parameter.

Additional info:
Upstream tracker: https://tracker.ceph.com/issues/22785
 -- PR attached as resolution does not appear to have code that actually fixes the issue.

Comment 1 Dimitri Savineau 2020-10-26 19:22:42 UTC
[1][2] only adds the feature to the ceph-volume lvm activate/prepare subcommands whereas the issue here is specific to the ceph-volume simple activate subcommand (which doesn't implement it).

This only impacts OSD deployed in RHCS 3 with ceph-disk and using Filestore.

[1] https://tracker.ceph.com/issues/22785
[2] https://github.com/ceph/ceph/pull/20408

Comment 15 errata-xmlrpc 2022-05-05 07:53:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat Ceph Storage 4.3 Security and Bug Fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:1716