Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mon: add an "osd crush tree" command
* to print crush buckets/items in a tree Fixes: #11833 Signed-off-by: Kefu Chai <kchai@redhat.com> (cherry picked from commit 5436c29) Conflicts: src/test/mon/osd-crush.sh: do not start mon as run() takes care of it already
- Loading branch information
Showing
7 changed files
with
134 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<grammar xmlns="http://relaxng.org/ns/structure/1.0"> | ||
<start> | ||
<ref name="crush_map_roots"/> | ||
</start> | ||
<define name="item"> | ||
<choice> | ||
<ref name="bucket"/> | ||
<ref name="device"/> | ||
</choice> | ||
</define> | ||
<define name="device"> | ||
<element name="device"> | ||
<element name="id"> | ||
<text/> | ||
</element> | ||
<element name="name"> | ||
<text/> | ||
</element> | ||
<element name="type"> | ||
<text/> | ||
</element> | ||
<element name="type_id"> | ||
<text/> | ||
</element> | ||
<element name="crush_weight"> | ||
<text/> | ||
</element> | ||
<element name="depth"> | ||
<text/> | ||
</element> | ||
</element> | ||
</define> | ||
<define name="bucket"> | ||
<element name="bucket"> | ||
<element name="id"> | ||
<text/> | ||
</element> | ||
<element name="name"> | ||
<text/> | ||
</element> | ||
<element name="type"> | ||
<text/> | ||
</element> | ||
<element name="type_id"> | ||
<text/> | ||
</element> | ||
<element name="items"> | ||
<zeroOrMore> | ||
<ref name="item"/> | ||
</zeroOrMore> | ||
</element> | ||
</element> | ||
</define> | ||
<define name="crush_map_roots"> | ||
<element name="crush_map_roots"> | ||
<oneOrMore> | ||
<ref name="bucket"/> | ||
</oneOrMore> | ||
</element> | ||
</define> | ||
</grammar> |
This file contains 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