Repository navigation
Description
What happens
Provisioning a new OpenShift GitLab runner with hack/gitlab-runner-vm/create-openshift-vm.sh 05 required manual repairs and a temporary script to resume provisioning. The create script should own the entire provisioning workflow.
On a fresh Fedora 44 cloud-image VM, cloud-init failed in package_update_upgrade_install before the script reached setup.sh:
- The VM template comments out
metalink=and enables the stockbaseurl=, which points to the placeholderhttp://download.example/.... - The enabled
fedora-cisco-openh264repository then has no usable metadata source. - The create script exits when
cloud-init status --waitreports an error, leaving the VM created but unconfigured. - Calling the create script again refuses the existing VM, so fixing the repository settings does not provide a supported way to finish the interrupted invocation.
setup.sh already contains repository repair logic, but it runs after cloud-init has to install packages. It cannot repair this earlier failure.
The operator had to repair repository settings on the VM, rerun the cloud-init package module, and run a temporary copy of the create script starting at registration to finish provisioning.
Expected behavior
With cluster access and the documented provisioning inputs supplied, one invocation of the create script should produce a working runner without manual SSH repairs, configuration copying, or a modified script.
Acceptance criteria:
- A fresh VM completes cloud-init package installation using usable repositories, including on Fedora 44 cloud images with placeholder base URLs and the optional OpenH264 repository.
- The script installs and configures the runner, custom executor, OpenShell, CA trust, warm-cache images, and cleanup timer, then verifies the resulting service and registration.
- The supplied GitLab URL is the sole registration target. A self-hosted-only invocation using a shared runner authentication token produces only that registration; no GitLab.com registration is required.
- A failed provisioning attempt has a documented, script-driven recovery path that does not require editing the script or duplicating registrations.
- Regression coverage exercises bootstrap configuration before cloud-init installs packages and the self-hosted/shared-token provisioning path.
Reproduction
- Use an authenticated OpenShift cluster with OpenShift Virtualization and the Fedora 44 cloud image available through the template's Fedora DataSource.
- Supply the documented namespace, GitLab URL, runner image, and either a runner authentication token or registration credentials.
- Run
bash hack/gitlab-runner-vm/create-openshift-vm.sh 05for a previously unused VM number. - Observe the cloud-init package installation failure and the partially provisioned VM left behind.
Context
Observed while adding the fifth OpenShift runner. The intended fleet serves only a self-hosted GitLab instance using a shared runner registration.
The GitLab.com registration created during this session was an operator error, not evidence that the script selects GitLab.com automatically.
A local, staged, uncommitted change to hack/gitlab-runner-vm/vm.yaml repairs the mirror URL and disables the optional OpenH264 repository before package installation. A new vm_test.sh exercises those bootstrap commands against representative repository files. That regression test, the existing setup tests, and make lint pass. These local changes have not been published in a PR and do not yet address the full recovery workflow.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fullsend-ai-triage commentedon Oct 7, 2026
🤖 Finished Triage · ✅ Success · Started 3:46 PM UTC · Completed 3:48 PM UTC
Commit:
eaa4a5c· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.26
fullsend-ai-triage commentedon Oct 7, 2026
Triage notes (net-new context only):
--recreatelifecycle,RUNNER_TOKENmode for the VM scripts, and the earlier GCE cloud-init findings. None of these is a blocker.vm.yamlplus avm_test.sh) is the right first slice but is unpublished, so it will need to be re-created. It covers only the bootstrap criteria. The recovery path, registration verification and README documentation are still needed.RUNNER_TOKENpath that skips user-token registration, so the self-hosted/shared-token criterion looks like a regression-test and verification task rather than new logic. This is worth confirming during implementation.The fix is confined to
hack/gitlab-runner-vm/shell scripts,vm.yamland docs, so no CI workflow changes are needed.Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidancefullsend-ai-coder commentedon Oct 7, 2026
🤖 Finished Code · ✅ Success · Started 3:50 PM UTC · Completed 4:05 PM UTC
Commit:
eaa4a5c· View workflow run →Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $4.08
fix(#8148): make OpenShift runner provisioning finish in one invocation
fix(#8148): address review feedback on PR #8150
fix(#8148): address second review round on PR #8150
fix(#8148): address third review round on PR #8150
Merge pull request fullsend-ai#8150 from fullsend-ai/agent/8148-opens…