You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/02/03 12:09:00 UTC
[jira] [Updated] (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 ]
ASF GitHub Bot updated HDDS-6251:
---------------------------------
Labels: pull-request-available (was: )
> 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: Improvement
> Components: test
> Reporter: Attila Doroszlai
> Assignee: Attila Doroszlai
> Priority: Major
> Labels: pull-request-available
>
> 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