Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-1880 Decommissioning and maintenance mode in Ozone
  3. HDDS-4849

Improve Ozone admin shell decommission/recommission/maintenance commands user experience

    XMLWordPrintableJSON

Details

    Description

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

      w/ patch:

      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.
      

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

      w/ patch:

      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
      

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

      w/ patch:

      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.
      

      Same for recommission and maintenance commands.

      Attachments

        Issue Links

          Activity

            People

              smeng Siyao Meng
              smeng Siyao Meng
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: