commit 177ce7e9495afb710711726be656b58065f42ce3
Author: Goutham Pacha Ravi <email address hidden>
Date: Tue Mar 2 15:53:02 2021 -0800
Fix traceback in scheduler-stats API
There was a traceback being included in the
error message body. This is unhelpful to
end users.
The error message that included the traceback
was for this corner case where the RBAC policy
isn't aligned with the internal "context_is_admin"
policy - an unlikely combination of decisions
that a deployer would make - nevertheless,
this is an opportunity for us to fix this
code path.
Change-Id: I888d684acac2133425f986ec7cef5e4f5cdcc5b6
Closes-Bug: #1917520
Signed-off-by: Goutham Pacha Ravi <email address hidden>
(cherry picked from commit a13ff5d5a73c9c4c4c7b56fe60c6152402127f10)
Reviewed: https:/ /review. opendev. org/c/openstack /manila/ +/783208 /opendev. org/openstack/ manila/ commit/ 177ce7e9495afb7 10711726be656b5 8065f42ce3
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/victoria
commit 177ce7e9495afb7 10711726be656b5 8065f42ce3
Author: Goutham Pacha Ravi <email address hidden>
Date: Tue Mar 2 15:53:02 2021 -0800
Fix traceback in scheduler-stats API
There was a traceback being included in the
error message body. This is unhelpful to
end users.
The error message that included the traceback
was for this corner case where the RBAC policy
isn't aligned with the internal "context_is_admin"
policy - an unlikely combination of decisions
that a deployer would make - nevertheless,
this is an opportunity for us to fix this
code path.
Change-Id: I888d684acac213 3425f986ec7cef5 e4f5cdcc5b6 c4c7b56fe60c615 2402127f10)
Closes-Bug: #1917520
Signed-off-by: Goutham Pacha Ravi <email address hidden>
(cherry picked from commit a13ff5d5a73c9c4