Repository navigation
vstart.sh: create cephfs with fs new instead of fs volume create - #69901
Merged
Merged
Conversation
4 of 14 tasks
Contributor
|
jenkins test make check |
1 similar comment
Contributor
Author
|
jenkins test make check |
idryomov
reviewed
Jul 2, 2026
tchaikov
force-pushed
the
wip-vstart-without-mgr
branch
from
July 2, 2026 09:28
2f69a79 to
8035540
Compare
Contributor
Author
|
changelog:
|
The mgr volumes module handles fs volume ls/create, not the monitor, so
without a mgr (CEPH_NUM_MGR=0) the "wait for volume module to load" loop
spun forever. Open-coding fs new unconditionally, my first attempt,
changed pool creation for every vstart user and dropped the wait, so
cephfs tests calling `fs volume ...` right after vstart.sh returns could
race a module still mid-load.
create_fs_volume() branches on CEPH_NUM_MGR instead. With a mgr it still
calls fs volume ls/create. Without one it runs the plain mon commands fs
volume create wraps: osd pool create cephfs.<name>.{meta,data}, then fs
new <name> <meta> <data>. The wait stays at its one call site above the
per-filesystem loop, so it runs once regardless of CEPH_NUM_FS, not once
per filesystem.
Verified against a local vstart: mgr present, fs volume ls polls once
then creates CEPH_NUM_FS=2 filesystems with no repeated poll;
CEPH_NUM_MGR=0, no poll, fs new creates 'a' directly, HEALTH_OK.
Signed-off-by: Kefu Chai <[email protected]>
tchaikov
force-pushed
the
wip-vstart-without-mgr
branch
from
July 2, 2026 10:41
8035540 to
bb9c1fd
Compare
Contributor
Author
|
changelog
|
Contributor
All but the last assertion in this CephFS test are racy: The current minute, hour, day, month and even year can change underneath the test. |
Contributor
|
jenkins test make check arm64 |
Contributor
Author
hmm, will create a PR to fix it. EDIT, created #69918 |
Contributor
|
jenkins test make check arm64 |
idryomov
approved these changes
Jul 2, 2026
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.
vstart.sh already supports CEPH_NUM_MGR=0 (start_mgr is gated on it), but cephfs creation didn't honor it: fs volume ls/create are handled by the mgr volumes module, not the monitor, so without a mgr the "wait for volume module to load" loop spins forever. A ceph-build typo fix (ed61da39dff8) that made -WITH_MGR=OFF finally take effect surfaced this on Windows CI.
fs volume create is just three mon commands: create cephfs..{meta,data}, then fs new (volumes/fs/operations/volume.py, fs_util.py). Doing them directly drops the mgr dependency and keeps the same pool names the Windows CI script expects afterward.
Verified against the Windows CI vstart invocation (CEPH_NUM_MGR=0 --bluestore --without-dashboard -n): HEALTH_OK, mgr: no daemons active, fs dump shows filesystem 'a' active.
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.