Repository navigation
Conversation
joscollin
force-pushed
the
wip-58645-fix-error-when-creating-subvolume
branch
from
June 10, 2026 10:56
1f1ab6a to
3d7f095
Compare
joscollin
marked this pull request as draft
June 10, 2026 15:35
joscollin
force-pushed
the
wip-58645-fix-error-when-creating-subvolume
branch
5 times, most recently
from
June 11, 2026 09:54
f0c2f48 to
0e458d3
Compare
Member
Author
|
jenkins test make check arm64 |
joscollin
force-pushed
the
wip-58645-fix-error-when-creating-subvolume
branch
2 times, most recently
from
June 12, 2026 02:53
3cdf184 to
9b1fb5a
Compare
Member
Author
|
jenkins test make check |
Member
Author
|
jenkins test make check arm64 |
joscollin
force-pushed
the
wip-58645-fix-error-when-creating-subvolume
branch
from
June 12, 2026 13:41
9b1fb5a to
420fc84
Compare
joscollin
marked this pull request as ready for review
June 12, 2026 13:42
Member
Author
|
Tests passed. fs:volumes:
fs:cephadm: orch:cephadm:
fs:upgrade: |
tchaikov
reviewed
Jun 15, 2026
joscollin
force-pushed
the
wip-58645-fix-error-when-creating-subvolume
branch
2 times, most recently
from
June 15, 2026 08:43
0aa7d91 to
c30a258
Compare
joscollin
force-pushed
the
wip-58645-fix-error-when-creating-subvolume
branch
from
June 16, 2026 03:34
c30a258 to
36d1948
Compare
Member
Author
|
jenkins test windows |
Member
Author
|
jenkins test docs |
vshankar
reviewed
Jul 8, 2026
vshankar
reviewed
Jul 8, 2026
tchaikov
reviewed
Jul 8, 2026
joscollin
force-pushed
the
wip-58645-fix-error-when-creating-subvolume
branch
from
July 13, 2026 13:07
36d1948 to
e30640d
Compare
Member
Author
|
Dropped the unnecessary |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
…hString
Fix a bug where certain CLI commands or subvolume operations throw unhandled
exceptions instead of a proper error message when handled an empty string
or invalid character sequence.
Changes:
* Block literal empty strings ("") from silently slipping past arguments
requiring defined goodchars restrictions.
* Deterministically sort the output list of invalid offending characters to
make checking validation error strings consistent and user-readable.
Fixes: https://tracker.ceph.com/issues/58645
Signed-off-by: Jos Collin <[email protected]>
…p_name Apply the goodchars regex validation filter to the group_name parameter within the volumes manager module interface. This ensures that subvolume group names are strictly validated against the same allowed character constraints as subvolume names during creation, preventing invalid or malformed string inputs from slipping into the group configuration path. This change fixes a core parameter-shifting bug that occurs when the subvolume name is entirely omitted from the CLI invocation. In that case, the subvolumegroup name erroneously cascades down to become interpreted as the subvolume name, leaving the subvolume group field empty. Because the subvolume group name parameter was not previously vetted against goodchars, this empty group layout string was silently accepted by the manager module, leading to a layout corruption. Fixes: https://tracker.ceph.com/issues/58645 Signed-off-by: Jos Collin <[email protected]>
Introduce targeted unit tests to test_ceph_argparse.py to verify the robustness of CephString formatting and validation gates. Changes: * Add test_ceph_string_empty_rejection to confirm that empty string inputs are inherently blocked when a goodchars pattern constraint is active. * Add test_ceph_string_error_formatting to verify that invalid characters are extracted, deterministically sorted, and properly single-quoted in error messages. Fixes: https://tracker.ceph.com/issues/58645 Signed-off-by: Jos Collin <[email protected]>
Introduce a comprehensive suite of negative integration tests to verify that 'ceph fs subvolume create' and 'ceph fs subvolumegroup create' commands cleanly reject empty, literal empty, or whitespace-only inputs. Changes: * Add the new TestEmptyStringForCreates class to the fs:volumes testing suite. * Assert that empty strings passed as positional arguments trigger structural syntax blocks for both subvolumes and subvolumegroups. * Assert that empty string overrides passed via the optional '--group_name' flag are caught cleanly by the validation layer. * Add a regression check (test_empty_subvolume_group_corruption) to explicitly ensure that blocked empty creation requests do not accidentally poison the 'ceph.dir.subvolume' xattr of parent layout structures. Fixes: https://tracker.ceph.com/issues/58645 Signed-off-by: Jos Collin <[email protected]>
joscollin
force-pushed
the
wip-58645-fix-error-when-creating-subvolume
branch
from
July 20, 2026 05:30
e30640d to
7ea4c1e
Compare
Member
Author
|
Rebased, resolving conflicts. |
Contributor
|
@joscollin Thanks for the rebase. I will run this through fs suite this week. We may want to do a broader run for other components additionally. |
Member
Author
|
Thanks @vshankar! Looking forward to the test results. |
Contributor
|
This PR has been added to main integration testing by vshankar started 2026-07-21-10:48. |
Contributor
|
@ljflores - gentle nudge on this. |
4 of 14 tasks
Member
Author
|
@vshankar Let's merge this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: https://tracker.ceph.com/issues/58645
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 DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.