You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Stephen O'Donnell (Jira)" <ji...@apache.org> on 2022/02/03 15:04:00 UTC

[jira] [Resolved] (HDDS-6251) Smoketest for ozone admin datanode expects exactly 3 nodes

     [ 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-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org