[ 
https://issues.apache.org/jira/browse/HDDS-2197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16944390#comment-16944390
 ] 

Stephen O'Donnell commented on HDDS-2197:
-----------------------------------------

The current topology command prints details in the format:
{code:java}
State = HEALTHY
 IpAddress(hostName)    networkLocation
 IpAddress(hostName) networkLocation
 IpAddress(hostName) networkLocation

State = STALE
  ...

State = DEAD
  ... {code}
Alternatively, it prints the details ordered by network location
{code:java}
State = HEALTHY
Location: somelocation
 ipAddress(hostName)
 ipAddress(hostName)
 ipAddress(hostName)
Location: otherlocation
 ipAddress(hostName)
 ipAddress(hostName)
 ipAddress(hostName) 

State = STALE
Location: someLocation
 ...
 ...{code}
In this Jira, I propose we simple add the operational state into the existing 
output, and keep the ordering and formatting as is:
{code:java}
State = HEALTHY
 IpAddress(hostName) IN_SERVICE networkLocation
 IpAddress(hostName) IN_SERVICE networkLocation
 IpAddress(hostName) DECOMMISSIONING networkLocation

State = STALE
 ...

State = DEAD
 ...  {code}
Or
{code:java}
State = HEALTHY
Location: somelocation
 ipAddress(hostName) IN_SERVICE
 ipAddress(hostName) IN_SERVICE
 ipAddress(hostName) DECOMMISSIONED
Location: otherlocation
 ipAddress(hostName) IN_SERVICE
 ipAddress(hostName) IN_MAINTENANE
 ipAddress(hostName) IN_SERVIE

State = STALE
Location: someLocation
 ...
 ...{code}
 

> Extend SCMCLI Topology command to print node Operational States
> ---------------------------------------------------------------
>
>                 Key: HDDS-2197
>                 URL: https://issues.apache.org/jira/browse/HDDS-2197
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>          Components: SCM, SCM Client
>    Affects Versions: 0.5.0
>            Reporter: Stephen O'Donnell
>            Assignee: Stephen O'Donnell
>            Priority: Major
>
> The scmcli topology command only consider the node health (healthy, stale or 
> dead). With decommission and maintenance stages, we need to also consider the 
> operational states and display them with this command.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to