Skip to content
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

HDDS-11836. Interactive mode for ozone admin/debug #7630

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adoroszlai
Copy link
Contributor

@adoroszlai adoroszlai commented Jan 1, 2025

What changes were proposed in this pull request?

Enable interactive mode for ozone admin and ozone debug.

https://issues.apache.org/jira/browse/HDDS-11836

How was this patch tested?

$ ozone admin --interactive
ozone admin> help
 -  ozone admin registry
Summary: cert               Certificate related operations
         container         Container specific operations
         containerbalancer ContainerBalancer specific operations
         datanode          Datanode specific operations
         namespace         Namespace Summary specific admin operations
         om                Ozone Manager specific admin operations
         pipeline          Pipeline specific operations
         printTopology     Print a tree of the network topology as reported by SCM
         reconfig          Dynamically reconfigure server without restarting it
         replicationmanager ReplicationManager specific operations
         safemode          Safe mode specific operations
         scm               Ozone Storage Container Manager specific admin operations
ozone admin> exit

$ ozone debug --interactive
ozone debug> help
 -  ozone debug registry
Summary: chunkinfo            returns chunk location information about an existing key
         container           Container replica specific operations to be executed on datanodes only
         find-missing-padding List all keys with any missing padding, optionally limited to a
         fmp                 List all keys with any missing padding, optionally limited to a
         ldb                 Parse rocksdb file content
         pld                 Create an image of the current compaction log DAG in OM.
         prefix              Parse prefix contents
         print-log-dag       Create an image of the current compaction log DAG in OM.
         ratislogparser      Shell of printing Ratis Log in understandable text
         read-replicas       Reads every replica for all the blocks associated with a given key.
         recover             recover the lease of a specified file. Make sure to specify file system scheme
         version             Show internal version of Ozone components, as defined in the artifacts where
ozone debug> exit

@adoroszlai adoroszlai self-assigned this Jan 1, 2025
@adoroszlai adoroszlai added the tools Tools that helps with debugging label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tools Tools that helps with debugging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant