pybind/mgr/volumes: configure case sensitivity#62105
Conversation
|
mypy failure in make check : |
avanthakkar
left a comment
There was a problem hiding this comment.
Can you update qa suites too just like for earmarking
batrick
left a comment
There was a problem hiding this comment.
Is there a reason you want to do this at subvolume creation time rather than add fix it in the second RPC ceph fs subvolume charmap ...?
Initially I thought that doing something similar to earmarking would be ok. Then I realized that there exists this command and some internal helpers that could be used, but I didn't know how or from where to call them. Can you give me some hints about where to call this command when a samba share is created ? |
I'll inject myself into this conversation to add my 2c: PS. If we don't do this now I feel a PM I know will eventually ask for it ;-) Re-reading my comment I don't think I was being particularly clear. The value of one RPC/API having this is (a) discoverability - when I look up the create subvolume command docs I see an option about setting case insentivity rather than having to look it up seperately and (b) no gaps - not creating the volume sharing it out in the "wrong" state and then needing to go back and change it later |
Well, I don't think there is a straightforward way to adapt the "charmap" commands to this particular flag you want to use. You just want a way to set casesensitive on a the subvolume so what you have is probably fine. |
If you think there is a real danger of a subvolume being used in a "half-way" state, then this change is fine with me. I think however we should go ahead and add "normalization" now in addition to "casesensitive". "encoding" can be skipped. |
4811ac6 to
7fcb5ab
Compare
|
I've addressed the comments and also added a |
batrick
left a comment
There was a problem hiding this comment.
Please update the documentation too.
otherwise LGTM
src/pybind/mgr/volumes/fs/operations/versions/subvolume_base.py
Outdated
Show resolved
Hide resolved
src/pybind/mgr/volumes/fs/operations/versions/subvolume_base.py
Outdated
Show resolved
Hide resolved
avanthakkar
left a comment
There was a problem hiding this comment.
Looks good overall! Could you move it out of draft state? I've also triggered a shaman build for the changes. Once the image is ready, I'll test it locally and attempt to run teuthology as well.
|
make check failure seems related: |
7fcb5ab to
fa8bb8d
Compare
|
I've updated the way the options are used: There's an optional Using With these two options we can define all possible configurations:
|
7c21d28 to
d974f89
Compare
anoopcs9
left a comment
There was a problem hiding this comment.
In general the case insensitive option is still displayed and meant to be used as --case-sensitive and not --case_sensitive, right?
|
Teuthology failure : |
When a new subvolume is created, optionally set the ceph.dir.normalization xattr to the root directory. Signed-off-by: Xavi Hernandez <xhernandez@gmail.com>
Add an option to explicitly set the unicode normalization form to use on a CephFS subvolume. Signed-off-by: Xavi Hernandez <xhernandez@gmail.com>
Signed-off-by: Xavi Hernandez <xhernandez@gmail.com>
Add an option to explicitly set the case sensitivity of a CephFS subvolume. Signed-off-by: Xavi Hernandez <xhernandez@gmail.com>
2651412 to
0440009
Compare
Signed-off-by: Xavi Hernandez <xhernandez@gmail.com>
Signed-off-by: Xavi Hernandez <xhernandez@gmail.com>
0440009 to
d9704c0
Compare
|
jenkins test api |
|
jenkins test windows |
|
jenkins test make check |
4 similar comments
|
jenkins test make check |
|
jenkins test make check |
|
jenkins test make check |
|
jenkins test make check |
ceph/ceph#62105 is now merged which introduces the '--case-insensitive' subvolume option to make it case insensitive to suite SMB use cases. Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
ceph/ceph#62105 is now merged which introduces the `--case-insensitive` subvolume option to make it case insensitive to suite SMB use cases. Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
ceph/ceph#62105 is now merged which introduces the `--case-insensitive` subvolume option to make it case insensitive to suite SMB use cases. Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
ceph/ceph#62105 is now merged which introduces the `--case-insensitive` subvolume option to make it case insensitive to suite SMB use cases. Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
|
followup: #62872 |
|
backported to squid via #63023 |
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition