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

Enhancement: setSiteAvailability should set availability_read flag automatically #883

Open
juanpablosalas opened this issue Jan 23, 2025 · 0 comments

Comments

@juanpablosalas
Copy link

juanpablosalas commented Jan 23, 2025

Enhancement Description

When RSE's availability is updated, the flag availability_read should be set automatically, similar to current availability_write and availability_delete

Use Case

Not setting the availability_read flag automatically makes it prone to be forgotten by people.

Possible Solution

In the setSiteAvailability script https://github.com/dmwm/CMSRucio/blob/master/docker/rucio_client/scripts/setSiteAvailability, line 70 should include "availability_read":

for rse, available in available_map.items():
    try:
        if not DRY_RUN:
            rclient.update_rse(rse, {"availability_write": available, "availability_delete": available,"availability_read": available})
        print('Setting availability for %s to %s' % (rse, available))

Related Issues

No response

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

1 participant