Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-3816 Erasure Coding
  3. HDDS-6251

EC: Smoketest for ozone admin datanode expects exactly 3 nodes

    XMLWordPrintableJSON

Details

    Description

      This test only passes if there are exactly 3 healthy/in-service datanodes:

      Filter list by NodeOperationalState
          ${uuid} =           Execute      ozone admin datanode list | grep '^Datanode:' | head -1 | awk '{ print \$2 }'
          ${output} =         Execute      ozone admin datanode list --operational-state IN_SERVICE
          Should contain      ${output}    Datanode: ${uuid}
          ${datanodes} =      Get Lines Containing String    ${output}    Datanode:
          @{lines} =          Split To Lines   ${datanodes}
          ${count} =          Get Length   ${lines}
          Should Be Equal As Integers    ${count}    3
      
      
      Filter list by NodeState
          ${uuid} =           Execute      ozone admin datanode list | grep '^Datanode:' | head -1 | awk '{ print \$2 }'
          ${output} =         Execute      ozone admin datanode list --node-state HEALTHY
          Should contain      ${output}    Datanode: ${uuid}
          ${datanodes} =      Get Lines Containing String    ${output}    Datanode:
          @{lines} =          Split To Lines   ${datanodes}
          ${count} =          Get Length   ${lines}
          Should Be Equal As Integers    ${count}    3
      

      It should be less specific about number of nodes.

      Attachments

        Activity

          People

            adoroszlai Attila Doroszlai
            adoroszlai Attila Doroszlai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: