devmadhuu opened a new pull request, #6376:
URL: https://github.com/apache/ozone/pull/6376

   ## What changes were proposed in this pull request?
   This PR provides the details information of all datanodes for which 
decommissioning is initiated.
   
   This PR change has added two API endpoints to provide information of all 
datanodes for which decommissioning is initiated.
   
   API: /api/v1/datanodes/decommission/info
   Type: GET
   This API provides information about all datanodes
   ```
   {
           "datanodeDetails": {
               "uuid": "f04ed2ee-5d70-4e9b-88a8-d54dd59d2828",
               "hostname": "ozone-ha-datanode-1.ozone-ha_default",
               "lastHeartbeat": 0,
               "networkLocation": "/default-rack",
               "ipAddress": "192.168.208.12"
           },
           "metrics": {
               "decommissionStartTime": "13/03/2024 02:52:29 UTC",
               "numOfUnclosedPipelines": 2,
               "numOfUnderReplicatedContainers": 0.0,
               "numOfUnclosedContainers": 0.0
           },
           "containers": {
               "UnderReplicated": [],
               "UnClosed": [#6, #10, #17]
           }
       }
   ```
   
   API: /api/v1/datanodes/decommission/info/<uuid>
   Type: GET
   This API provides information about a specific datanode for which 
decommissioning is initiated.
   ```
   {
           "datanodeDetails": {
               "uuid": "f04ed2ee-5d70-4e9b-88a8-d54dd59d2828",
               "hostname": "ozone-ha-datanode-1.ozone-ha_default",
               "lastHeartbeat": 0,
               "networkLocation": "/default-rack",
               "ipAddress": "192.168.208.12"
           },
           "metrics": {
               "decommissionStartTime": "13/03/2024 02:52:29 UTC",
               "numOfUnclosedPipelines": 2,
               "numOfUnderReplicatedContainers": 0.0,
               "numOfUnclosedContainers": 0.0
           },
           "containers": {
               "UnderReplicated": [],
               "UnClosed": [#6, #10, #17]
           }
       }
   ```
   
   Above information will be consumed by UI to display in Recon.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-10514
   
   ## How was this patch tested?
   This patch is tested with integration test as well as APIs endpoints Junit 
test cases.
   
   


-- 
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