You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The arm-runner-patch.tpl is trying to apply invalid patches during boot time. By checking /var/log/user-data.log I can see the follow errors:
patching file bin/Runner.Listener.runtimeconfig.json
Hunk #1 FAILED at 8.
1 out of 1 hunk FAILED -- saving rejects to file bin/Runner.Listener.runtimeconfig.json.rej
patching file bin/Runner.PluginHost.runtimeconfig.json
Hunk #1 FAILED at 8.
1 out of 1 hunk FAILED -- saving rejects to file bin/Runner.PluginHost.runtimeconfig.json.rej
patching file bin/Runner.Worker.runtimeconfig.json
Hunk #1 FAILED at 8.
1 out of 1 hunk FAILED -- saving rejects to file bin/Runner.Worker.runtimeconfig.json.rej
I then checked the files that it is trying to patch and the json files do not match:
I'm starting to think that this should probably not live inside this module and should be something injected in by pre or post install user data hooks.
Its likely this could change a lot over time and having to change this module each time it does seems inconvenient.
Agree, supporting ARM on os and architecture level by the module is fine. But maybe better to move the tailored script to an example with indeed a pre / post hook. Any help would be welcome!
I've had a go at fixing the patch in #1624, it makes the arm runners boot correctly and appear to accept a job. However the job never actually starts and eventually times out. Is this patch even required anymore?
If the patch is still necessary, I agree that it should be solved with an example in the documentation instead of being hardcoded. The user-data scripts are not as flexible as I would like as they are, so I think there's definitely some improvement that we can make there along with this change.
If someone can point me in the right direction for how to get the ARM runners working correctly again, I'm happy to do another PR for all this.
We don't currently use ARM runners in our fleet so I'm not sure if this is needed or how to solve it I'm afraid. Maybe the original contributor could help here? Looks like it was originally added in #102 by @bdruth I wonder if its still being used.
Do you have any suggestions on how you would like to see the user data handling improved?
The userdata scripts are a little hard to customise. You can override the entire thing with userdata_template but not the other parts (ie. userdata_install_runner and userdata_start_runner). I think just giving each of them a variable that overrides them will make it much more flexible.
Activity
ScottGuymer commentedon Jan 13, 2022
I'm starting to think that this should probably not live inside this module and should be something injected in by pre or post install user data hooks.
Its likely this could change a lot over time and having to change this module each time it does seems inconvenient.
@npalm WDYT?
npalm commentedon Jan 13, 2022
Agree, supporting ARM on os and architecture level by the module is fine. But maybe better to move the tailored script to an example with indeed a pre / post hook. Any help would be welcome!
ndench commentedon Jan 13, 2022
I've had a go at fixing the patch in #1624, it makes the arm runners boot correctly and appear to accept a job. However the job never actually starts and eventually times out. Is this patch even required anymore?
If the patch is still necessary, I agree that it should be solved with an example in the documentation instead of being hardcoded. The user-data scripts are not as flexible as I would like as they are, so I think there's definitely some improvement that we can make there along with this change.
If someone can point me in the right direction for how to get the ARM runners working correctly again, I'm happy to do another PR for all this.
ScottGuymer commentedon Jan 14, 2022
We don't currently use ARM runners in our fleet so I'm not sure if this is needed or how to solve it I'm afraid. Maybe the original contributor could help here? Looks like it was originally added in #102 by @bdruth I wonder if its still being used.
Do you have any suggestions on how you would like to see the user data handling improved?
ndench commentedon Jan 15, 2022
The userdata scripts are a little hard to customise. You can override the entire thing with
userdata_templatebut not the other parts (ie. userdata_install_runner and userdata_start_runner). I think just giving each of them a variable that overrides them will make it much more flexible.npalm commentedon Jan 15, 2022
Agree it is quite limited. You can use the following hooks to inject the default module scripts for starting and installing the runners.
${install_runner}${start_runner}The injected scripts are not customisable at this moment.
ScottGuymer commentedon Jan 18, 2022
It would be possible to make the other parts customisable too. Happy to review a PR to include this.