HDDS-10891. Support Ozone to run ratis group-related command
What changes were proposed in this pull request?
Support Ozone to run ratis group-related command
(I currently put this PR as draft because this is pending on another PR for RATIS-2095. (Move common logic of ratis-shell to RaftUtils so that Ozone shell could share and use common logic) to be merged first. Then new methods created in RATIS-2095 would be used here.)
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10891
How was this patch tested?
unit test
cc. @szetszwo
Hello @fapifta @ChenSammi , I know you guys have been working on ozone's TLS certificate infrastructure for a while, so I'd like to hear from you about the current way I retrieve client side's certificate when Ozone is GRPC-enabled. I currently use a
certClient. getObjectStore() .getClientProxy() .getOzoneManagerClient() .getServiceInfo();
in BaseRatisCommand#createGrpcTlsConf to get the serviceInfo from ozone.
Then I use that serviceInfo to get certificate
CACertificateProvider remoteCAProvider = serviceInfoEx::provideCACerts;
which would be used by the raft client in ozone-shell to connect to all raft servers.
Feel free to let me know if any comment, like other better way to retrieve the certificate, etc. thanks!
I think this is superceded by #7170.