Skip to content

mon: add missing spaces to 'osd pool create' MonCommand - #71010

Merged
SrinivasaBharath merged 1 commit into
ceph:mainfrom
cbodley:wip-79431
Sep 7, 2026
Merged

SrinivasaBharath merged 1 commit into
ceph:mainfrom
cbodley:wip-79431

Conversation

@cbodley

@cbodley cbodley commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

(fixes a likely regression from #67985)

the string literals would be concatenated without spaces and break parsing

Fixes: https://tracker.ceph.com/issues/79431

Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@phlogistonjohn

Copy link
Copy Markdown
Contributor

@Ericmzhang Ericmzhang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this. I just tested the change quickly locally (creating a pool starting with .) and it works afterwards.

@phlogistonjohn

phlogistonjohn commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

So far so good, manually testing...

Before

$ ceph osd pool create .smb --yes-i-really-mean-it
pool names beginning with . are not allowed


$ ceph osd pool create --help
# ...snip....
 Monitor commands: 
 =================
osd pool create <pool> [<pg_num:int>] [<pgp_ create pool
 num:int>] [<pool_type:replicated|erasure>]  
 [<erasure_code_profile>] [<rule>]           
 [<expected_num_objects:int>] [<size:int>]   
 [<pg_num_min:int>] [<pg_num_max:int>]       
 [<autoscale_mode:on|off|warn>] [--bulk]     
 [<target_size_bytes:int>] [<target_size_    
 ratio:float>] [--force-pg-limit]     

After

$ ceph osd pool create .smb --yes-i-really-mean-it
pool '.smb' created


$ ceph osd pool create --help
# ...snip....
osd pool create <pool> [<pg_num:int>] [<pgp_ create pool
 num:int>] [<pool_type:replicated|erasure>]  
 [<erasure_code_profile>] [<rule>]           
 [<expected_num_objects:int>] [<size:int>]   
 [<pg_num_min:int>] [<pg_num_max:int>]       
 [<autoscale_mode:on|off|warn>] [--bulk]     
 [<target_size_bytes:int>] [<target_size_    
 ratio:float>] [--force-pg-limit] [--yes-i-  
 really-mean-it] [--crimson]       

@phlogistonjohn

Copy link
Copy Markdown
Contributor

https://pulpito-ng.ceph.com/runs/phlogistonjohn-2026-08-12_19:42:11-orch-wip-phlogistonjohn-testing-1-2026-08-12-1327-distro-default-smithi

All the teuthology tests that were failing before are passing again (minus one test that seems to be stuck waiting...).
I'm satisfied that this fixes the issue, thanks.

Comment thread src/mon/MonCommands.h Resolved
@BlaineEXE

Copy link
Copy Markdown
Collaborator

@cbodley and @phlogistonjohn we hit this in rook testing with umbrella dev builds. One of the things we saw was that when we tried creating dot-prefix pools like .rgw.root and .nfs, the ceph command output text indicating an error but returned error code zero.

I don't know how to vet whether the fixes here would do anything about the zero-return on error, but I am concerned that if they don't, this could mask a deeper issue that we accidentally discovered where Ceph doesn't return nonzero on error.

@parth-gr sent you a google doc explaining his findings in a DM with more info if you need it.

I'd appreciate if you could speak to whether these changes are or aren't related to the zero-return on error behavior so we can determine whether more follow-up is needed.

@ljflores

Copy link
Copy Markdown
Member

@yuriw or @SrinivasaBharath please add this into a RADOS batch.

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath14-testing-20260826.230942-main.

@NitzanMordhai

Copy link
Copy Markdown
Contributor

@SrinivasaBharath
SrinivasaBharath merged commit b86829d into ceph:main Sep 7, 2026
7 checks passed
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I have resolved the following tracker ticket due to the merge of this PR:

No backports are pending for the ticket. If this is incorrect, please update the tracker
ticket and reset to Pending Backport state.

Update Log: https://github.com/ceph/ceph/actions/runs/34139043402

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants