Skip to content
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

declare_bad_file_replicas does not pass rse_id to the policy module #6339

Closed
ivmfnal opened this issue Sep 28, 2023 · 0 comments
Closed

declare_bad_file_replicas does not pass rse_id to the policy module #6339

ivmfnal opened this issue Sep 28, 2023 · 0 comments
Assignees
Milestone

Comments

@ivmfnal
Copy link
Contributor

ivmfnal commented Sep 28, 2023

Description

Currently, the api.declare_bad_file_replicas() does not pass rse_id to the permission.has_permission() function:

https://github.com/ivmfnal/rucio/blob/fc3973a83b9d658fba5ef9f645f5816a594d4586/lib/rucio/api/replica.py#L88C1-L92C1

CMS needs rse_id to be passed to the permissions module to be able to determine whether the user has permissions to declare bad replicas in the RSE

Steps to reproduce

I think this is obvious from the code.
Too difficult to reproduce.

Rucio Version

No response

Additional Information

No response

@ivmfnal ivmfnal added the bug label Sep 28, 2023
@ivmfnal ivmfnal self-assigned this Sep 28, 2023
@bari12 bari12 added the Policies label Oct 4, 2023
ivmfnal added a commit to ivmfnal/rucio that referenced this issue Oct 11, 2023
ivmfnal added a commit to ivmfnal/rucio that referenced this issue Oct 11, 2023
ivmfnal added a commit to ivmfnal/rucio that referenced this issue Oct 11, 2023
… repliacas rucio#6339

added traceback in case of uncaught exception in the web server BadReplicas
ivmfnal added a commit to ivmfnal/rucio that referenced this issue Oct 11, 2023
… repliacas rucio#6339

added traceback in case of uncaught exception in the web server BadReplicas
ivmfnal added a commit to ivmfnal/rucio that referenced this issue Oct 11, 2023
… repliacas rucio#6339

added traceback in case of uncaught exception in the web server BadReplicas
ivmfnal added a commit to ivmfnal/rucio that referenced this issue Oct 12, 2023
… repliacas rucio#6339

added traceback in case of uncaught exception in the web server BadReplicas
ivmfnal added a commit to ivmfnal/rucio that referenced this issue Oct 12, 2023
… repliacas rucio#6339

added traceback in case of uncaught exception in the web server BadReplicas

add debug output when for an uncaught exception in BadReplicas.post()
ivmfnal added a commit to ivmfnal/rucio that referenced this issue Oct 14, 2023
… repliacas rucio#6339

added traceback in case of uncaught exception in the web server BadReplicas

add debug output when for an uncaught exception in BadReplicas.post()
ivmfnal added a commit to ivmfnal/rucio that referenced this issue Oct 15, 2023
… repliacas rucio#6339

added traceback in case of uncaught exception in the web server BadReplicas

add debug output when for an uncaught exception in BadReplicas.post()
ivmfnal added a commit to ivmfnal/rucio that referenced this issue Oct 15, 2023
… repliacas rucio#6339

added traceback in case of uncaught exception in the web server BadReplicas

add debug output when for an uncaught exception in BadReplicas.post()
ivmfnal added a commit to ivmfnal/rucio that referenced this issue Nov 2, 2023
ivmfnal added a commit to ivmfnal/rucio that referenced this issue Nov 8, 2023
ivmfnal added a commit to ivmfnal/rucio that referenced this issue Nov 8, 2023
ivmfnal added a commit to ivmfnal/rucio that referenced this issue Nov 9, 2023
ivmfnal added a commit to ivmfnal/rucio that referenced this issue Nov 10, 2023
ivmfnal added a commit to ivmfnal/rucio that referenced this issue Nov 10, 2023
ivmfnal added a commit to ivmfnal/rucio that referenced this issue Nov 10, 2023
@bari12 bari12 closed this as completed in 7bbdf63 Nov 15, 2023
@bari12 bari12 added this to the 23.5.2 / 32.6.0 milestone Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants