-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
gitlab_runner can't handle more than 20 runners #7690
Comments
Files identified in the description: If these files are incorrect, please update the |
This happens probably if you use python-gitlab v4.x.x because The best way would be to handle this based on the python-gitlab version ( |
See this comment I left over in #7790 regarding using tl;dr - Edit: I think @nejch and I are actually in agreement on the best way to solve this:
|
@mikewadsten yes, this is what I meant- provide the arguments based on the python-gitlab version (or only support v4+ if that's easier). |
I think we can close this issue, since resolved_by_pr 7790 |
Summary
This looks like regression of ansible/ansible#57759
When register runners on a system with more than 20 runners an existing runner will not be updated, but a new will be registered.
It looks like other gitlab modules were updated with #4491
By updating the find_runner(self, description) function from
runners = self._runners_endpoint(as_list=False)
to
runners = self._runners_endpoint(as_list=False, all=True)
it solves my problem.
Issue Type
Bug Report
Component Name
gitlab_runner
Ansible Version
Community.general Version
Configuration
OS / Environment
Ubuntu 20.04.6 LTS
Steps to Reproduce
Expected Results
The second run should be idempotent.
Actual Results
The first 20 runners is working as expected, the 21th is newly registered causing duplicate runners in gitlab.
Code of Conduct
The text was updated successfully, but these errors were encountered: