-
Notifications
You must be signed in to change notification settings - Fork 594
HDDS-12545. [DiskBalancer] Query status and report API doesn't require SCM admin privilege #8112
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
Conversation
Tejaskriya
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this @Gargi-jais11, Left some improvement suggestions below to reduce the code duplication across the various test cases
hadoop-ozone/dist/src/main/smoketest/admincli/testdiskbalancer.robot
Outdated
Show resolved
Hide resolved
hadoop-ozone/dist/src/main/smoketest/admincli/testdiskbalancer.robot
Outdated
Show resolved
Hide resolved
hadoop-ozone/dist/src/main/smoketest/admincli/testdiskbalancer.robot
Outdated
Show resolved
Hide resolved
hadoop-ozone/dist/src/main/smoketest/admincli/testdiskbalancer.robot
Outdated
Show resolved
Hide resolved
hadoop-ozone/dist/src/main/smoketest/admincli/testdiskbalancer.robot
Outdated
Show resolved
Hide resolved
hadoop-ozone/dist/src/main/smoketest/admincli/testdiskbalancer.robot
Outdated
Show resolved
Hide resolved
hadoop-ozone/dist/src/main/smoketest/admincli/testdiskbalancer.robot
Outdated
Show resolved
Hide resolved
4fe1627 to
c83fb4e
Compare
hadoop-ozone/dist/src/main/smoketest/admincli/testdiskbalancer.robot
Outdated
Show resolved
Hide resolved
Tejaskriya
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the changes, LGTM!
|
Thanks @Gargi-jais11 and @Tejaskriya . |
What changes were proposed in this pull request?
Current all disk balancer requests to SCM will check the admin permission.
It is necessary when it's a write kind operation, start, stop, update.
But it's not necessary to enforce the admin permission on read operation, status, report.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-12545
How was this patch tested?
Written robot tests to check for the admin permission on disk balancer requests to scm.
hadoop-ozone/dist/src/main/smoketest/admincli/testdiskbalancer.robot