New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
osdmaptool: show all the pg map to osds info #9419
Conversation
408a34a
to
8b55462
Compare
Sometimes we want to know all the pg map to osd detail info. |
@@ -30,6 +30,7 @@ void usage() | |||
cout << " --import-crush <file> replace osdmap's crush map with <file>" << std::endl; | |||
cout << " --test-map-pgs [--pool <poolid>] [--pg_num <pg_num>] map all pgs" << std::endl; | |||
cout << " --test-map-pgs-dump [--pool <poolid>] map all pgs" << std::endl; | |||
cout << " --test-map-pgs-dump_all [--pool <poolid>] map all pgs to osds" << std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dump-all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's - not _
@liewegas Thank you sir.Done it! |
This will definitely fail the cli testing and it did, see below:
|
@xiexingguo Oh got it. Thank you! |
99a9882
to
8eabccf
Compare
test_mon_crushmap_validation seems to be failing.. can you run make check and see what is going on? |
@liewegas Oh, that error is not relate my code. I update the new code and re run all the test,it pass all. Testsuite summary for ceph 10.2.0 TOTAL: 138 |
jenkins test this please (jenkins hung) |
https://jenkins.ceph.com/job/ceph-pull-requests/14763/console /home/jenkins-build/build/workspace/ceph-pull-requests/src/tools/osdmaptool.cc: In function ‘int main(int, const char**)’: /home/jenkins-build/build/workspace/ceph-pull-requests/src/tools/osdmaptool.cc:366:17: error: ‘class OSDMap’ has no member named ‘pg_to_osds’ osdmap.pg_to_osds(pgid, &raw, &calced_primary); ^ |
b632c44
to
c94180a
Compare
Signed-off-by:song baisen <song.baisen@zte.com.cn>
jenkins test this please |
@dachary Done. |
osdmaptool: show all the pg map to osds info
Signed-off-by:song baisen song.baisen@zte.com.cn