Skip to content

Remove an association (HPC-7692)#86

Open
itkovian wants to merge 5 commits into
hpcugent:masterfrom
itkovian:fix-default-vo-change-with-jobs
Open

Remove an association (HPC-7692)#86
itkovian wants to merge 5 commits into
hpcugent:masterfrom
itkovian:fix-default-vo-change-with-jobs

Conversation

@itkovian
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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