-
Notifications
You must be signed in to change notification settings - Fork 587
HDDS-12890. Add acceptance robot tests for ozone debug replicas verify #8613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Tejaskriya
merged 19 commits into
apache:master
from
sarvekshayr:HDDS-12890-replicas-verify
Jun 27, 2025
Merged
Changes from 17 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
4ca2205
HDDS-12890. Add acceptance robot tests for ozone debug replicas verify
sarvekshayr 4719c11
Wait time for datanode to be healthy increased to 90s
sarvekshayr da67def
Add more logging
dombizita 3b7049b
Use docker commands and remove dead state
dombizita 72d8c44
Remove all my changes
dombizita fa9d446
TEMP fewer tests
adoroszlai c2e98a2
TEMP list container dir
adoroszlai e6c033c
chown container dir
adoroszlai 449a9cd
fixup for fa9d446e04 TEMP fewer tests
adoroszlai fc75dd4
Revert Wait time for datanode to be healthy increased to 90s
sarvekshayr 4fed1ea
Merge remote-tracking branch 'origin' into HDDS-12890-replicas-verify
sarvekshayr a4934ae
Revert "fixup for fa9d446e04 TEMP fewer tests"
adoroszlai 795002d
Revert "chown container dir"
adoroszlai 036e06c
Revert "TEMP list container dir"
adoroszlai a58706d
Revert "TEMP fewer tests"
adoroszlai a9e2730
fix permissions in dn1
adoroszlai b79e95c
Remove --output-dir option
sarvekshayr 4cfbd11
Remove wait for dead datanode and change doc title
sarvekshayr f459ae7
Merge remote-tracking branch 'origin' into HDDS-12890-replicas-verify
sarvekshayr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
hadoop-ozone/dist/src/main/smoketest/debug/ozone-debug-keywords.robot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||
| # contributor license agreements. See the NOTICE file distributed with | ||
| # this work for additional information regarding copyright ownership. | ||
| # The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| # (the "License"); you may not use this file except in compliance with | ||
| # the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| *** Settings *** | ||
| Documentation Keyword definitions for Ozone Debug CLI tests | ||
| Library Collections | ||
| Resource ../lib/os.robot | ||
|
|
||
| *** Variables *** | ||
| ${OM_SERVICE_ID} %{OM_SERVICE_ID} | ||
|
|
||
| *** Keywords *** | ||
| Execute replicas verify checksums debug tool | ||
| ${output} Execute ozone debug replicas verify --checksums o3://${OM_SERVICE_ID}/${VOLUME}/${BUCKET}/${TESTFILE} --all-results | ||
| [Return] ${output} | ||
|
|
||
| Execute replicas verify block existence debug tool | ||
| ${output} Execute ozone debug replicas verify --block-existence o3://${OM_SERVICE_ID}/${VOLUME}/${BUCKET}/${TESTFILE} --all-results | ||
| [Return] ${output} | ||
|
|
||
| Parse replicas verify JSON output | ||
| [Arguments] ${output} | ||
| ${json} = Evaluate json.loads('''${output}''') json | ||
| [Return] ${json} | ||
|
|
||
| Check to Verify Replicas | ||
| [Arguments] ${json} ${check_type} ${faulty_datanode} ${expected_message} | ||
| ${replicas} = Get From Dictionary ${json['keys'][0]['blocks'][0]} replicas | ||
| FOR ${replica} IN @{replicas} | ||
| ${datanode} = Get From Dictionary ${replica} datanode | ||
| ${hostname} = Get From Dictionary ${datanode} hostname | ||
| Run Keyword If '${hostname}' == '${faulty_datanode}' Check Replica Failed ${replica} ${check_type} ${expected_message} | ||
| Run Keyword If '${hostname}' != '${faulty_datanode}' Check Replica Passed ${replica} ${check_type} | ||
| END | ||
|
|
||
| Check Replica Failed | ||
| [Arguments] ${replica} ${check_type} ${expected_message} | ||
| ${checks} = Get From Dictionary ${replica} checks | ||
| ${check} = Get From List ${checks} 0 | ||
| Should Be Equal ${check['type']} ${check_type} | ||
| Should Be Equal ${check['pass']} ${False} | ||
| Should Contain ${check['failures'][0]['message']} ${expected_message} | ||
|
|
||
| Check Replica Passed | ||
| [Arguments] ${replica} ${check_type} | ||
| ${checks} = Get From Dictionary ${replica} checks | ||
| ${check} = Get From List ${checks} 0 | ||
| Should Be Equal ${check['type']} ${check_type} | ||
| Should Be True ${check['completed']} | ||
| Should Be True ${check['pass']} | ||
| Should Be Empty ${check['failures']} |
46 changes: 0 additions & 46 deletions
46
hadoop-ozone/dist/src/main/smoketest/debug/ozone-debug-stale-datanode.robot
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.