Closed pearljago closed 1 year ago
Hello! Thank you for filing an issue.
The maintainers will triage your issue shortly.
In the meantime, please take a look at the troubleshooting guide for bug reports.
If this is a feature request, please review our contribution guidelines.
Hey @pearljago,
Thank you for reporting this! We will investigate this issue and get back to you :relaxed:
Thanks @nikola-jokic
I forgot to mention that this is only happening on an openshift cluster. I tried the same steps on a minkube cluster and works as expected.
Checks
Controller Version
gha-runner-scale-set-controller-0.3.0
Helm Chart Version
0.3.0
CertManager Version
No response
Deployment Method
Helm
cert-manager installation
I have follow the instructions on this link: https://github.com/actions/actions-runner-controller/tree/master/docs/preview/gha-runner-scale-set-controller
I know is still in "beta" stage, I just want to report a "missconfiguration".
Using this approach Cert manager is not required.
Checks
Resource Definitions
To Reproduce
Describe the bug
After implementing the previous steps when I run the workflow (step 3), the ARC pod fails to start the ephemeral runner pod. Log shows the following:
2023-04-05T08:48:43Z ERROR Reconciler error {"controller": "ephemeralrunnerset", "controllerGroup": "actions.github.com", "controllerKind": "EphemeralRunnerSet", "EphemeralRunnerSet": {"name":"arc-runner-set-96d29","namespace":"arc-systems"}, "namespace": "arc-systems", "name": "arc-runner-set-96d29", "reconcileID": "1d4e094d-06fa-475a-9f99-c42e54d96c5a", "error": "ephemeralrunners.actions.github.com \"arc-runner-set-96d29-runner-vjm58\" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: ,"}
After digging a bit, I found out that there is a missing config on the role definition arc-gha-runner-scale-set-controller-manager-role . There you need to setup the missing finalizers "ephemeralrunnersets", something like:
After implementing the previous configuration the error no longer appears and the ARC behaviour is as expected.
Describe the expected behavior
After executing a workflow with the self-hosted appropriate label, a new ephemeral runner should be launched on the namespace where the autoscaling-runner-controller and the listner pods are running.
Whole Controller Logs
Whole Runner Pod Logs
Additional Context
No response