Skip to content

Conversation

@sodonnel
Copy link
Contributor

This change provides 3 new CLI commands:

scmcli dnadmin decommission hostname1 hostname2 hostname3
scmcli dnadmin maintenance hostname1 hostname2 hostname3 < --end time from now to end maintenance in hours>
scmcli dnadmin recommission hostname1 hostname2 hostname3

To allow for cases where many DNs are on the same host, the hostname can also have a port appended, eg:

scmcli dnadmin decommission hostname1:5678 hostname1:6789 hostname1:7890

These commands make use of 3 new protobuf messages, defined in StorageContainerLocationProtocol:

DecommissionNodesRequestProto + DecommissionNodesResponseProto
RecommissionNodesRequestProto + RecommissionNodesResponseProto
StartMaintenanceNodesRequestProto + StartMaintenanceNodesResponseProto

All 3 accept a list of strings (for hostnames) and the maintenance message also allows an int to specify the end time in hours.

These 3 commands make a call to a new class NodeDecommissionManager which takes the list of hosts and validates them. If any host is invalid or not part of the cluster, the entire command is failed and the CLI will show an error. Assuming the validation passes OK, the list of nodes will be switch into DECOMMISSIONING, ENTERING_MAINTENANCE or back into IN_SERVICE.

At this point in time, there is no decommission logic present, the nodes will simply remain in the interm state forever. The actual decommissioning logic will be added in a further Jira.

cxorm and others added 29 commits October 14, 2019 12:22
commit 9d6a1b97f365b22392ceac8d958cf041c3515bd6
Author: Doroszlai, Attila <[email protected]>
Date:   Mon Oct 7 13:42:35 2019 +0200

    HDDS-2265. integration.sh may report false negative
Revert "HDDS-2217. Remove log4j and audit configuration from the docker-config files"

This reverts commit 4b0a5bca465c84265b8305e001809fd1f986e8da.
Shweta Yakkali and others added 4 commits October 14, 2019 12:22
@sodonnel sodonnel closed this Oct 14, 2019
cchenax pushed a commit to cchenax/ozone that referenced this pull request May 18, 2021
tanvipenumudy added a commit to tanvipenumudy/ozone that referenced this pull request May 12, 2022
# This is the 1st commit message:

Initial Commit

# This is the commit message apache#2:

more slight changes

# This is the commit message apache#3:

changes++

# This is the commit message apache#4:

getExecutorService Changes

# This is the commit message apache#5:

applyTransaction() Changes

# This is the commit message apache#6:

changes++

# This is the commit message apache#7:

TestOzoneManagerLock changes

# This is the commit message apache#8:

add changes

# This is the commit message apache#9:

add more minor changes

# This is the commit message apache#10:

add config to ozone-default.xml

# This is the commit message apache#11:

minor changes

# This is the commit message apache#12:

change modulo logic

# This is the commit message apache#13:

changes

# This is the commit message apache#14:

changes++

# This is the commit message apache#15:

add changes++

# This is the commit message apache#16:

minor changes

# This is the commit message apache#17:

Changes (to be reverted)

# This is the commit message apache#18:

Changes 09/05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.