Skip to content

运行example中的openclaw 测试环境出现问题 #565

@sinycn

Description

@sinycn

遇到的问题:

运行exmaple 中的openclaw 应用,提示错误信息:opensandbox.exceptions.sandbox.SandboxApiException: Create sandbox failed: egress.image must be configured when networkPolicy is provided.

具体报错信息如下:

sinycn@sinycn-OptiPlex-3050:~/git/OpenSandbox/examples/openclaw$ uv run python main.py Creating openclaw sandbox with image=ghcr.io/openclaw/openclaw:latest on OpenSandbox server http://10.206.24.1... Token: dummy-token-for-... Port: 18789 Timeout: 3600s Failed to create sandbox with image: ghcr.io/openclaw/openclaw:latest Traceback (most recent call last): File "/home/sinycn/git/OpenSandbox/examples/openclaw/.venv/lib/python3.12/site-packages/opensandbox/sync/adapters/sandboxes_adapter.py", line 119, in create_sandbox handle_api_error(response_obj, "Create sandbox") File "/home/sinycn/git/OpenSandbox/examples/openclaw/.venv/lib/python3.12/site-packages/opensandbox/adapters/converter/response_handler.py", line 109, in handle_api_error raise SandboxApiException( opensandbox.exceptions.sandbox.SandboxApiException: Create sandbox failed: egress.image must be configured when networkPolicy is provided. Traceback (most recent call last): File "/home/sinycn/git/OpenSandbox/examples/openclaw/main.py", line 104, in <module> main() File "/home/sinycn/git/OpenSandbox/examples/openclaw/main.py", line 77, in main sandbox = SandboxSync.create( ^^^^^^^^^^^^^^^^^^^ File "/home/sinycn/git/OpenSandbox/examples/openclaw/.venv/lib/python3.12/site-packages/opensandbox/sync/sandbox.py", line 404, in create response = sandbox_service.create_sandbox( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/sinycn/git/OpenSandbox/examples/openclaw/.venv/lib/python3.12/site-packages/opensandbox/sync/adapters/sandboxes_adapter.py", line 125, in create_sandbox raise ExceptionConverter.to_sandbox_exception(e) from e File "/home/sinycn/git/OpenSandbox/examples/openclaw/.venv/lib/python3.12/site-packages/opensandbox/sync/adapters/sandboxes_adapter.py", line 119, in create_sandbox handle_api_error(response_obj, "Create sandbox") File "/home/sinycn/git/OpenSandbox/examples/openclaw/.venv/lib/python3.12/site-packages/opensandbox/adapters/converter/response_handler.py", line 109, in handle_api_error raise SandboxApiException( opensandbox.exceptions.sandbox.SandboxApiException: Create sandbox failed: egress.image must be configured when networkPolicy is provided.

安装软件版本

controller 和server 都是安装在k8s 中
controller: 0.1.0
server:0.1.9
服务暴露通过loadbalancer 地址是10.206.24.1
web 直接访问http://10.206.24.1 提示{"detail":"Not Found"}

Other related information

Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions