[
https://issues.apache.org/jira/browse/HDDS-2197?focusedWorklogId=329093&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-329093
]
ASF GitHub Bot logged work on HDDS-2197:
----------------------------------------
Author: ASF GitHub Bot
Created on: 16/Oct/19 10:16
Start Date: 16/Oct/19 10:16
Worklog Time Spent: 10m
Work Description: sodonnel commented on pull request #37: HDDS-2197
Extend SCMCLI Topology command to print node Operational States
URL: https://github.com/apache/hadoop-ozone/pull/37
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.
The current topology command prints details in the format:
```
State = HEALTHY
IpAddress(hostName) networkLocation
IpAddress(hostName) networkLocation
IpAddress(hostName) networkLocation
State = STALE
...
State = DEAD
...
```
Alternatively, it prints the details ordered by network location
```
State = HEALTHY
Location: somelocation
ipAddress(hostName)
ipAddress(hostName)
ipAddress(hostName)
Location: otherlocation
ipAddress(hostName)
ipAddress(hostName)
ipAddress(hostName)
State = STALE
Location: someLocation
...
...
```
In this PR, I propose we simple add the operational state into the existing
output, and keep the ordering and formatting as is:
```
State = HEALTHY
IpAddress(hostName) IN_SERVICE networkLocation
IpAddress(hostName) IN_SERVICE networkLocation
IpAddress(hostName) DECOMMISSIONING networkLocation
State = STALE
...
State = DEAD
...
```
Or
```
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
...
...
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 329093)
Remaining Estimate: 0h
Time Spent: 10m
> 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
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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]