[cephfs] snapshot names are too long
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Low
|
Victoria Martinez de la Cruz |
Bug Description
Description
===========
This issue was first reported on the CephFS mailing list: https://<email address hidden>
Relevant excerpt from that post:
```````````
The Manila driver creates pretty long subvolume snapshot names:
https:/
Ex: 3c42f809-
And we have trouble accessing those.
It works with a recent kernel this way:
# ls
/cephfs-
now
#
But we cannot see the "now" file when listing via .snap in a subdir:
# ls
/cephfs-
#
(Subvolume_V2 users always mount the subdir, so they can only ever
access snaps via the subdir path, btw).
The kernel client has the same issue (confirmed with latest CentOS
Stream 8 kernel).
And btw old kernels can't even list this dir. Here is the latest
CentOS 7 kernel:
# ls
/cephfs-
ls: cannot access
/cephfs-
No such file or directory
_3c42f809-
I think this is all because the snap name is too long.
Notice that the subdir snap has _1100 appended -- this is supposed to
be the inode of the place where the snap was taken (IIUC) -- but it
has been truncated to 80 chars, presumably because of
https:/
``````````````
Steps to reproduce
==================
* Setup the CephFS driver (doesn't matter if using Native/NFS)
* Create a share and a snapshot
* Mount the share and navigate to the .snap directory and try walking down the snap tree for the snapshot created.
Expected result
===============
Directory walk is permitted into the read only snapshot directories
Actual result
=============
Directory walk isn't possible due to errors.
Environment
===========
1. Victoria+ releases of OpenStack Manila (manila driver started using the ceph mgr interface in this OpenStack release)
2. Which storage backend did you use?
Ceph
What's the version of that? Octopus
tags: | added: cephfs |
Changed in manila: | |
importance: | Undecided → Low |
assignee: | nobody → Victoria Martinez de la Cruz (vkmc) |
Changed in manila: | |
milestone: | none → zed-2 |
Changed in manila: | |
milestone: | zed-2 → zed-3 |
Changed in manila: | |
milestone: | zed-3 → zed-rc1 |
Changed in manila: | |
milestone: | zed-rc1 → antelope-1 |
Changed in manila: | |
status: | New → Confirmed |
Changed in manila: | |
milestone: | antelope-1 → antelope-2 |
Changed in manila: | |
milestone: | antelope-2 → antelope-3 |
Changed in manila: | |
milestone: | antelope-3 → antelope-rc1 |
Changed in manila: | |
milestone: | antelope-rc1 → bobcat-1 |
Changed in manila: | |
milestone: | bobcat-1 → bobcat-2 |
Changed in manila: | |
milestone: | bobcat-2 → bobcat-3 |
Changed in manila: | |
milestone: | bobcat-3 → bobcat-rc1 |
Changed in manila: | |
milestone: | bobcat-rc1 → caracal-1 |
See additional discussions at https:/ /meetings. opendev. org/meetings/ manila/ 2022/manila. 2022-04- 21-15.00. log.html