-
Notifications
You must be signed in to change notification settings - Fork 32
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
Fetch RSE info from Rucio and save to a file #892
base: master
Are you sure you want to change the base?
Conversation
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.
seems like a good start for a draft PR
|
||
returns a dict of settings and attributes | ||
''' | ||
rseinfo = client.get_rse(rse=rse) |
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.
res_info
usage and limits are unused, right?
|
||
def set_rse_settings(rse: str, config: dict, dry_run: bool = True): | ||
''' | ||
Setts RSE settings and attributes from a config dict |
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.
Sets
current_settings, current_attrs = get_info_from_rucio(rse) | ||
|
||
# update settings | ||
# TODO: Handle KeyError |
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.
Yes
except Duplicate: | ||
print(f'{attribute} already exists') | ||
|
||
|
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.
Settings is still coming?
Would close #770
Currently in progress.
The script can first fetch RSE settings and attributes from Rucio. Will have to use the RSEClient to update settings with
update_rse
and attributes withdelete_rse_attribute
and thenadd_rse_attribute
.The json looks like this:
The question is where should we store the settings file. As with consistency checker and protocols, we could also use SITECONF in the CERN Gitlab instance.