Repository navigation
ceph-objectstore-tool: update clear-snapset command doc - #65099
Conversation
9c2ef50 to
28aee43
Compare
28aee43 to
a8ac1ed
Compare
clear-snapset command doc
a8ac1ed to
141ae25
Compare
| @@ -153,8 +153,6 @@ function create_scenario() { | |||
| ceph-objectstore-tool --data-path $dir/${osd} "$JSON" clear-snapset clone_overlap || return 1 | |||
| JSON="$(ceph-objectstore-tool --data-path $dir/${osd} --head --op list obj11)" | |||
| ceph-objectstore-tool --data-path $dir/${osd} "$JSON" clear-snapset clones || return 1 | |||
| JSON="$(ceph-objectstore-tool --data-path $dir/${osd} --head --op list obj12)" | |||
There was a problem hiding this comment.
@ronen-fr adding you as a reviewer specifically for this change. The command head was removed during one of the scrub refactors. Was there any reason, the head command was not removed from the test file?
There was a problem hiding this comment.
Leaving this question to Ronen.
There was a problem hiding this comment.
@Naveenaidu - what change are you referring to? The "head" option is still there, on line 3671 & 3740. ?
There was a problem hiding this comment.
@ronen-fr I am talking about the subcommand head in corresponding to clear-snapset command. If you look at this function:
ceph/src/tools/ceph_objectstore_tool.cc
Line 3125 in 771a100
you'll notice that - there is no sub argument head for clear-snapset.
This was the PR which added the clear-snapset command and in this line , we see that clear-snapset command had a sub argument called head associated with it and there are tests associated with it. In the current main we do not have this command.
There was a problem hiding this comment.
Thanks. The ability to corrupt the head was indeed removed some 8 years ago (PR #17579).
(It wasn't a Scrub refactoring exactly, but rather Sage removing the 'snapdir' attribute).
At first glance: that test change was just overlooked. Verifying.
There was a problem hiding this comment.
Did you verify that the standalobne test still works? (I will be checking it now, anyway).
There was a problem hiding this comment.
Did you verify that the standalobne test still works? (I will be checking it now, anyway).
I did test the standalone tests and they were passing, apologies for not mentioning that in the description - thanks for checking it again though :)
| // UNDOCUMENTED: For testing zap SnapSet | ||
| // IGNORE extra args since not in usage anyway | ||
| if (!ghobj.hobj.has_snapset()) { | ||
| if (vm.count("arg1") == 0) { |
There was a problem hiding this comment.
This is more than just documenting; the commit brings these validators as well.
Nothing wrong them them, this nit-picking is just about the commit's title.
There was a problem hiding this comment.
thank you, fixed it
| @@ -153,8 +153,6 @@ function create_scenario() { | |||
| ceph-objectstore-tool --data-path $dir/${osd} "$JSON" clear-snapset clone_overlap || return 1 | |||
| JSON="$(ceph-objectstore-tool --data-path $dir/${osd} --head --op list obj11)" | |||
| ceph-objectstore-tool --data-path $dir/${osd} "$JSON" clear-snapset clones || return 1 | |||
| JSON="$(ceph-objectstore-tool --data-path $dir/${osd} --head --op list obj12)" | |||
There was a problem hiding this comment.
Leaving this question to Ronen.
ronen-fr
left a comment
There was a problem hiding this comment.
The change in line 4716 seems strange...
| } | ||
|
|
||
| if (vm.count("arg2") != 0) { | ||
| if (arg2 != "corrupt" || arg2 != "seq" || arg2 != "snaps" || |
There was a problem hiding this comment.
The intention of this code block is that, if we have a sub argument other than the allowed such as corrupt, seq, snaps etc then we would like to print the usage description.
The actual line is
if (arg2 != "corrupt" || arg2 != "seq" || arg2 != "snaps" || arg2 != "clones" || arg2 != "clone_size" || arg2 != "clone_overlap" || arg2 != "size") {
After formatting with clang, it split them into multiple lines with || operator at the end of line. Is this not a right way to format ? If I am misreading the comment please correct me.
There was a problem hiding this comment.
My problem is with the logic...
Unless I'm really addled (have not eaten lunch yet), all those '||' should read '&&'...
There was a problem hiding this comment.
thankss for catching it! fixed it now
Signed-off-by: Naveen Naidu <[email protected]>
…tion for obj12 clear-snapset, does not have any argument named as "head" Signed-off-by: Naveen Naidu <[email protected]>
141ae25 to
68debbf
Compare
|
jenkins test make check |
|
jenkins test windows |
|
jenkins test make check |
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2251015
Closes: https://tracker.ceph.com/issues/78807
The
ceph-objectstore-tool --helpis now updated to the following: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