Cloning a VM with a self-hosted runner blocks removal or modification of BOTH runners
@ruvceskistefan is already working on this.
Since Mar 3, 2022.
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 1.4k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 24
Description
Describe the bug
I had a VM with a self-hosted runner, with a tag, say "erp_prod" for production.
As ERP's can be complicated, instead of cloning data + code, we cloned the entire VM to make sure that any "monkey patches" went along with the final QA instance for production.
Doing so, however, messed up both runners. I found I could not remove one of them without removing the runner itself from GitHub.
To Reproduce
Steps to reproduce the behavior:
- Create a VM (in our case, an EC2 VM on AWS)
- Create a self-hosted runner. Install on VM, tag as "prod" (whatever)
- Clone VM via AWS cloning tools.
- Attempt to change the label from "prod" to QA
OR: - Attempt to remove the runner
Expected behavior
I should be able to update the new runner with a new ID and / or label
Runner Version and Platform
Version of your runner?
Linux: actions-runner-linux-x64-2.280.3.tar.gz
Version: 2.280.3
OS of the machine running the runner? Linux
What's not working?
The issue is that you cannot make a difference in the workflow between production and QA. So, you get a 50/50 chance of actually changing production, and there's no way to override this short of logging onto the server and manually rebuilding the runner.
Please include error messages and screenshots.
Ack! Sorry I already deleted the runner and don't want to mess up QA. You get an error that the runner has to be removed, which I could only do at the control panel on Github.com. After doing that, the source VM was of course, also disabled.
I then had to recreate two runners. This means that I can't do CI/CD on either of these servers automatically.
I believe I will be able to test this again in the next week.
Job Log Output
N/A
Runner and Worker's Diagnostic Logs
N/A
I checked the _diag directory, but they were only of actual action runs, not of the
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.