Bug 1891557 - ceph-volume ignores osd_mount_options_xfs
Summary: ceph-volume ignores osd_mount_options_xfs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Volume
Version: 4.1
Hardware: x86_64
OS: Linux
low
high
Target Milestone: ---
: 4.3
Assignee: Guillaume Abrioux
QA Contact: Ameena Suhani S H
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-26 15:54 UTC by Michael J. Kidd
Modified: 2024-03-25 16:49 UTC (History)
10 users (show)

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.
Clone Of:
Environment:
Last Closed: 2022-05-05 07:53:21 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 48018 0 None None None 2020-10-27 15:56:10 UTC
Github ceph ceph pull 37808 0 None Merged ceph-volume: consume mount opt in simple activate 2021-11-16 09:05:54 UTC
Red Hat Issue Tracker RHCEPH-1845 0 None None None 2021-09-21 21:32:05 UTC
Red Hat Product Errata RHSA-2022:1716 0 None None None 2022-05-05 07:53:37 UTC

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


Note You need to log in before you can comment on or make changes to this bug.