duongkame commented on PR #4747:
URL: https://github.com/apache/ozone/pull/4747#issuecomment-1555342686
> Format: ozone admin scm rotate --scm hostPort
I think the CLI should not rely on the admin to find the destination SCM,
instead itself find the leader using the failover proxy, and only the leader
SCM should accept this call, and process this call.
Also, the CLI can be divided into 2 usages.
```
ozone admin scm rotate
# this command only trigger a rotation if the the latest secret key
timestamp already pass the rotate duration
# otherwise, it prints out a message to explain why rotation doesn't happen,
e.g. `The lastest key was created at {lastest key timestamp} which doesn't pass
the rotate duration of 1 day yet`.
```
```
ozone admin scm rotate --force
# force key rotation to happen now.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]