Skip to content

fix(action): ensure dbus is running before cluster creation#4

Merged
Piotr1215 merged 1 commit intomainfrom
fix/ensure-dbus-on-runner
Mar 2, 2026
Merged

fix(action): ensure dbus is running before cluster creation#4
Piotr1215 merged 1 commit intomainfrom
fix/ensure-dbus-on-runner

Conversation

@Piotr1215
Copy link
Contributor

Summary

  • Explicitly start dbus during host preparation before calling vcluster create
  • Uses systemctl start dbus with fallback to dbus-daemon --system --fork
  • Polls for dbus readiness up to 10s before proceeding

Why

vCluster standalone (docker driver) requires dbus on the host. GitHub Actions ubuntu-24.04 runners don't always have dbus active at job start, causing intermittent Failed to connect to bus: No such file or directory failures.

The existing retry logic (linear backoff: 10s, 20s, 30s) works when dbus starts on its own within the first retry window, but fails completely when it doesn't. This was seen in run 22570359727 where all 3 attempts failed, vs run 22483375240 where attempt 2 succeeded after a 10s wait.

Runner image is the same (20260224.36.1) in both cases — the issue is timing, not a runner update.

Test plan

  • CI passes on this PR (test + check-dist)
  • e2e test in vClusterLabs-Experiments/setup-vind-test passes with custom-name job

vCluster standalone mode requires dbus on the host. GitHub Actions
runners (ubuntu-24.04) don't always have dbus active when the job
starts, causing intermittent "Failed to connect to bus" failures
that the existing retry logic can't recover from when the socket
never appears.

Start dbus explicitly during host preparation, with systemctl
fallback to dbus-daemon --fork, and poll for readiness up to 10s
before proceeding.
@Piotr1215 Piotr1215 merged commit 1a7382c into main Mar 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant