neils-dev opened a new pull request, #4649:
URL: https://github.com/apache/ozone/pull/4649

   ## What changes were proposed in this pull request?
   
   Changes to `SCM` `decommision `command to support decommissioning of 
`primordial` `SCM `node.  
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-8518
   
   ## How was this patch tested?
   
   Manual testing - decommissioning primordial scm node:
   
   Bring up cluster with SCM-HA 3 nodes, primary scm nodeid = scm1
   ```
   bash-4.2$ ozone admin scm roles   
   scm1.org:9894:LEADER:3f61f995-7316-47a5-ba1f-255749874c7d:172.25.0.116
   scm3.org:9894:FOLLOWER:9ab89602-7c32-4f52-8c78-5f9a620ef70a:172.25.0.118
   scm2.org:9894:FOLLOWER:35b1e08f-660c-4c7c-86d3-7a02e082b2a8:172.25.0.117
   ```
   
   Transfer scm leader to non-primordial node, scmid=scm3
   ```
   bash-4.2$ ozone admin scm transfer 
--newLeaderId=9ab89602-7c32-4f52-8c78-5f9a620ef70a
   Transfer leadership successfully to 9ab89602-7c32-4f52-8c78-5f9a620ef70a.
   
   ```
   Decommission primordial scm node:
   ```
   bash-4.2$ ozone admin scm decommission 
--nodeid=3f61f995-7316-47a5-ba1f-255749874c7d
   Decommissioned Scm 3f61f995-7316-47a5-ba1f-255749874c7d
   
   ```
   ```
   bash-4.2$ ozone admin scm roles
   scm3.org:9894:LEADER:9ab89602-7c32-4f52-8c78-5f9a620ef70a:172.25.0.118
   scm2.org:9894:FOLLOWER:35b1e08f-660c-4c7c-86d3-7a02e082b2a8:172.25.0.117
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to