Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-1880 Decommissioning and maintenance mode in Ozone
  3. HDDS-4846

Add line break when node has no pipelines for `ozone admin datanode list` command

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.1.0
    • Tools

    Description

      The line No related pipelines or the node is not in Healthy state. should have a new line after it.

      Just a trivial formatting issue.

      Before:

      bash-4.2$ ozone admin datanode list
      Datanode: e56040c8-5cfa-4558-966b-0851ccf5c6c5 (/default-rack/172.22.0.2/ozone_datanode_1.ozone_default/2 pipelines)
      Operational State: IN_SERVICE
      Related pipelines:
      ece97f05-fbf4-49db-9959-58c49c479f9b/ONE/RATIS/OPEN/Leader
      62973ede-afff-4edb-83e0-086ef84f31c8/THREE/RATIS/OPEN/Follower
      
      Datanode: f702a7cc-d887-4095-8f1a-7826669a5ddd (/default-rack/172.22.0.7/ozone_datanode_4.ozone_default/0 pipelines)
      Operational State: DECOMMISSIONED
      Related pipelines:
      No related pipelines or the node is not in Healthy state.
      Datanode: 1baca70e-69f5-48e0-ae31-7f6d8ed2fafc (/default-rack/172.22.0.3/ozone_datanode_2.ozone_default/2 pipelines)
      Operational State: IN_SERVICE
      Related pipelines:
      62973ede-afff-4edb-83e0-086ef84f31c8/THREE/RATIS/OPEN/Follower
      8a387971-315d-4fd2-b2a3-c993cd36e8bb/ONE/RATIS/OPEN/Leader
      
      Datanode: 30815665-dcda-40e4-bce6-000a46ab6d3d (/default-rack/172.22.0.6/ozone_datanode_3.ozone_default/2 pipelines)
      Operational State: IN_SERVICE
      Related pipelines:
      62973ede-afff-4edb-83e0-086ef84f31c8/THREE/RATIS/OPEN/Leader
      a7ff21f5-6d91-4452-9532-0c8789b1d435/ONE/RATIS/OPEN/Leader
      

      After:

      bash-4.2$ ozone admin datanode list
      Datanode: 8f572444-6134-4740-845f-12a8f454fad0 (/default-rack/172.22.0.2/ozone_datanode_4.ozone_default/0 pipelines)
      Operational State: DECOMMISSIONING
      Related pipelines:
      No related pipelines or the node is not in Healthy state.
      
      Datanode: ae9cab4e-d163-4983-b7bb-4d140fbd41b5 (/default-rack/172.22.0.7/ozone_datanode_1.ozone_default/2 pipelines)
      Operational State: IN_SERVICE
      Related pipelines:
      7e7bd855-3cc4-4e95-b363-38740580915c/ONE/RATIS/OPEN/Leader
      9d4b291d-a086-4a8e-af8f-278ffd4769b0/THREE/RATIS/ALLOCATED/Follower
      
      Datanode: d992655c-aa4f-44ec-8bca-631191a527ef (/default-rack/172.22.0.8/ozone_datanode_3.ozone_default/2 pipelines)
      Operational State: IN_SERVICE
      Related pipelines:
      9d4b291d-a086-4a8e-af8f-278ffd4769b0/THREE/RATIS/ALLOCATED/Follower
      6fa79344-0791-454f-8c4f-2edb0cb2ea34/ONE/RATIS/OPEN/Leader
      
      Datanode: 327bc5f1-874b-42da-9951-f4cc1571bab9 (/default-rack/172.22.0.9/ozone_datanode_2.ozone_default/2 pipelines)
      Operational State: IN_SERVICE
      Related pipelines:
      a28a6008-b3b8-45c8-a7f4-23ca680b3e46/ONE/RATIS/OPEN/Leader
      9d4b291d-a086-4a8e-af8f-278ffd4769b0/THREE/RATIS/ALLOCATED/Follower
      

      Attachments

        Issue Links

          Activity

            People

              smeng Siyao Meng
              smeng Siyao Meng
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: