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

Remove an association (HPC-7692) #86

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

itkovian
Copy link
Member

No description provided.

slurm_acct_users = set([user for (user, acct) in cluster_users_acct if acct == vo_id])
slurm_acct_users = set([user for (user, def_acct, _) in cluster_users_acct if def_acct == vo_id])

# these are the users for which an earlier delete failed because they still had live job in their (at that
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

says who? these users are part of this set, but there might be others to, no?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, we grab them all. AFAICT.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I misunderstood. What others and where?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • By default, we only have one account per user.
  • When a user switches VO, he will be added to the new VO and the default account will be set to the new VO. He might not be removed from the old.
  • When we look through the associations, I believe we find all those that need to be removed. If they fail to be removed due to running jobs, they will be picked up again the next run. New jobs should be submitted under the default account, thus the jobs under the new association will eventually be gone.

What am I missing?

@wdpypere
Copy link
Contributor

@itkovian is this PR still needed? could you update it to 2020?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants