[ 
https://issues.apache.org/jira/browse/HDDS-9044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Szabolcs Gál resolved HDDS-9044.
--------------------------------
    Resolution: Resolved

Here is the PR resolving this issue: [https://github.com/apache/ozone/pull/5157]

During the resolution of 
[HDDS-9042|https://issues.apache.org/jira/browse/HDDS-9042] the functionality 
for this issue was rewritten. The user friendliness and the exit code was also 
fixed by that pull request.

No -db parameter is needed now, and the exit code has been tested to be 0 in 
success case and non 0 in case of a failure.

> [ozone-cert-rotation] Invalid exit code from ozone cert clean command
> ---------------------------------------------------------------------
>
>                 Key: HDDS-9044
>                 URL: https://issues.apache.org/jira/browse/HDDS-9044
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: Ozone Manager
>    Affects Versions: 1.4.0
>            Reporter: Soumitra Sulav
>            Assignee: Szabolcs Gál
>            Priority: Critical
>              Labels: pki
>
> Ozone cert clean cli usage is not user friendly.
> Below are the reasons :
>  * Runs without kerberos authentication check
> {code:java}
> [root@quasar-ewnsjs-2 ~]# klist
> klist: No credentials cache found (filename: /tmp/krb5cc_0)
> [root@quasar-ewnsjs-2 ~]# /opt/cloudera/parcels/CDH/bin/ozone admin cert 
> clean --db=/var/lib/hadoop-ozone/scm/data789712
> [root@quasar-ewnsjs-2 ~]#
> {code}
>  * It ask for db-path which can be identified with the help of 
> ozone.scm.db.dirs config.
>  * Command needs to be run from scm node and it cannot be run from a client 
> node
>  * There is no response on passing invalid path with invalid exit code.
> {code:java}
> root@st-ozone-0mrob1-k26w9:/hwqe/hadoopqe# 
> /opt/cloudera/parcels/CDH/bin/ozone admin cert clean --db=/tmp
> root@st-ozone-0mrob1-k26w9:/hwqe/hadoopqe# echo $?
> 0
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to