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

Add CLI Commands and Protobuf messages to trigger decom states

    XMLWordPrintableJSON

Details

    Description

      To all nodes to be decommissioned, recommissioned and put into maintenance, we need a few commands.

      These will be added to the existing "scm cli". 3 commands are proposed:

      Decommission:

      ozone scmcli dnadmin decommission hosta hostb hostc:port ...

      Put nodes into maintenance:

      osone scmcli dnadmin maintenance hosta hostb hostc:port ... <-endHours>

      Take nodes out of maintenance or halt decommission:

      ozone scmcli dnadmin recommission hosta hostb hostc:port

      These 3 commands will call 3 new protobuf messages and they will be part of the "StorageContainerLocationProtocol":

      • DecommissionNodesRequestProto
      • RecommissionNodesRequestProto
      • StartMaintenanceNodesRequestProto

      In additional a new class NodeDecommissionManager will be introduced that will receive these commands and carry out the decommission steps.

      In this patch NodeDecommissionManager is only a skeleton implementation to receive the commands as this patch is mainly focused on getting the CLI commands and protobuf messages in place.

      Attachments

        Activity

          People

            sodonnell Stephen O'Donnell
            sodonnell Stephen O'Donnell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1.5h
                1.5h