Bug 2218189
| Summary: | print better error message for wrong permissions in MDS caps | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Ceph Storage | Reporter: | Rishabh Dave <ridave> |
| Component: | CephFS | Assignee: | Rishabh Dave <ridave> |
| Status: | CLOSED ERRATA | QA Contact: | julpark |
| Severity: | low | Docs Contact: | Disha Walvekar <dwalveka> |
| Priority: | unspecified | ||
| Version: | 5.3 | CC: | ceph-eng-bugs, cephqe-warriors, dwalveka, gfarnum, hyelloji, pdonnell, tserlin, vshankar |
| Target Milestone: | --- | ||
| Target Release: | 6.1z4 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | ceph-17.2.6-189.el9cp | Doc Type: | Enhancement |
| Doc Text: |
Unlike MON caps, permissions in MDS capability either should start with "r" or "rw" or should be "*" or "all". Unlike before, with this fix, "ceph auth" will print a clear message when the permissions in the MDS caps are incorrect. "ceph auth" subcommands being referred here are "ceph auth add", "ceph auth caps", "ceph auth get-or-create" and "ceph auth get-or-create-key".
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-02-08 18:13:33 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2261930 | ||
|
Description
Rishabh Dave
2023-06-28 11:50:56 UTC
[root@ceph-julpark-kd407z-node7 cephuser]# eph auth get-or-create client.name1 mon "allow *" mds "allow w" mgr "allow rw" osd "allow rw tag cephfs data=cephfs" -o /etc/ceph/ceph.client.name1.keyring bash: eph: command not found [root@ceph-julpark-kd407z-node7 cephuser]# ceph auth get-or-create client.name1 mon "allow *" mds "allow w" mgr "allow rw" osd "allow rw tag cephfs data=cephfs" -o /etc/ceph/ceph.client.name1.keyring Error EINVAL: Permission flags in MDS caps must start with 'r' or 'rw' or be '*' or 'all' [root@ceph-julpark-kd407z-node7 cephuser]# verified on 17.2.6-193.el9cp 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 (Red Hat Ceph Storage 6.1 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/RHBA-2024:0747 |