ozone icon indicating copy to clipboard operation
ozone copied to clipboard

HDDS-10891. Support Ozone to run ratis group-related command

Open DaveTeng0 opened this issue 1 year ago • 2 comments

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

DaveTeng0 avatar May 22 '24 20:05 DaveTeng0

cc. @szetszwo

DaveTeng0 avatar May 22 '24 20:05 DaveTeng0

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!

DaveTeng0 avatar May 22 '24 21:05 DaveTeng0

I think this is superceded by #7170.

adoroszlai avatar Dec 10 '24 19:12 adoroszlai