[ 
https://issues.apache.org/jira/browse/HDDS-6251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen O'Donnell resolved HDDS-6251.
-------------------------------------
    Fix Version/s: EC-Branch
       Resolution: Fixed

> Smoketest for ozone admin datanode expects exactly 3 nodes
> ----------------------------------------------------------
>
>                 Key: HDDS-6251
>                 URL: https://issues.apache.org/jira/browse/HDDS-6251
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: test
>            Reporter: Attila Doroszlai
>            Assignee: Attila Doroszlai
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: EC-Branch
>
>
> This test only passes if there are exactly 3 healthy/in-service datanodes:
> {code:title=https://github.com/apache/ozone/blob/1804e225cbfd58e69ff5850f38c14968221054df/hadoop-ozone/dist/src/main/smoketest/admincli/datanode.robot#L37-L53}
> 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
> {code}
> It should be less specific about number of nodes.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org
For additional commands, e-mail: issues-h...@ozone.apache.org

Reply via email to