You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Siyao Meng (Jira)" <ji...@apache.org> on 2021/02/19 13:17:00 UTC

[jira] [Created] (HDDS-4849) Improve Ozone admin shell decommission and recommission command user experience

Siyao Meng created HDDS-4849:
--------------------------------

             Summary: Improve Ozone admin shell decommission and recommission command user experience
                 Key: HDDS-4849
                 URL: https://issues.apache.org/jira/browse/HDDS-4849
             Project: Apache Ozone
          Issue Type: Sub-task
          Components: Ozone CLI
            Reporter: Siyao Meng
            Assignee: Siyao Meng


1. Currently, entering `ozone admin datanode decommission` command alone doesn't give any feedback.

w/ patch:
{code}
bash-4.2$ ozone admin datanode decommission
Incomplete command
Usage: ozone admin datanode decommission [-hV] [--scm=<scm>] [<hosts>...]
Decommission a datanode
      [<hosts>...]   List of fully qualified host names
  -h, --help         Show this help message and exit.
      --scm=<scm>    The destination scm (host:port)
  -V, --version      Print version information and exit.
{code}

2. When decommission command is executed successfully, it lacks feedback on the client (it does log on the server side though).

w/ patch:
{code}
bash-4.2$ ozone admin datanode decommission 172.18.0.7 172.18.0.2
Started decommissioning datanodes:
172.18.0.7
172.18.0.2
{code}

3. Improve decommission failure message due to host/port resolution.

w/ patch:
{code}
bash-4.2$ ozone admin datanode decommission 172.18.0.71
Host 172.18.0.71 (172.18.0.71) is not running any datanodes registered with SCM. Please check the host name.

bash-4.2$ ozone admin datanode decommission 172.18.0.7:9999
Host 172.18.0.7:9999 is running a datanode registered with SCM, but the port number doesn't match. Please check the port number.
{code}



Same to recommission command counterparts.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org