Skip to content

oc-bench start: no Incus/LXC support for gateway execution #10

Description

@rendrag-git

Bug

oc-bench start starts the OpenClaw gateway by running openclaw gateway run either locally (host binary) or via docker exec. There is no Incus/LXC path.

When the pinned OpenClaw version lives inside an Incus container (e.g. oc-stack has 2026.4.27 but the host has 2026.4.26), the version check in check_openclaw_version fails immediately:

openclaw_version=fail OpenClaw 2026.4.26 does not match pinned version 2026.4.27

Root cause

_openclaw_cmd in openclaw_bench/preflight.py:674 only handles two cases:

def _openclaw_cmd(container: str | None = None) -> list[str]:
    if not container:
        return ["openclaw"]
    return ["docker", "exec", container, "openclaw"]

Incus containers are not supported. The --openclaw-container CLI flag is wired through but assumes Docker.

Expected

oc-bench start --oc-runtime incus:oc-stack (or equivalent) should execute openclaw commands via incus exec oc-stack -- so the pinned version inside the container is used.

Related

  • _openclaw_cmd in openclaw_bench/preflight.py:674
  • _gateway_start_cmd in openclaw_bench/preflight.py:710
  • check_openclaw_version in openclaw_bench/preflight.py:399
  • Issue scan_existing_oc_profiles cannot read profiles inside containers (LXC/Docker) #9 — same pattern: the profile scanner also lacks Incus support. Both gaps should be fixed with the same --oc-runtime incus:<instance> flag wired through to all OpenClaw CLI invocations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions