NVIDIA / NVIDIA/NemoClaw

[Linux][CLI&UX] nemoclaw rebuild exits 0 when host-mount preflight validation fails

Open
#9,718 2 comments 0 reactions 1 assignee Claimed by @cjagwani View on GitHub
area: cli NV QA
Dominant language
TypeScript
Stars
22.5k
Forks
3.1k
Avg merge
1d 1h
Merged PRs (30d)
715

Description

Description

`nemoclaw {sandbox} rebuild --yes` exits 0 when a preflight validation fails due to a missing host-mount source directory. The command correctly prints "Managed workload rebuild preflight failed: Invalid --host-mount: host directory does not exist" and correctly aborts without modifying the sandbox, but exits 0 instead of non-zero. Scripts and CI pipelines that check the exit code cannot detect this rebuild failure.

Platform scope: Reproduced on Linux x86_64 (Ubuntu 24.04); other platforms not tested.
Regression: Unknown — not verified on earlier versions.
OpenShell issue: No

Environment

Device:        Ubuntu 24.04 x86_64 server

OS: Ubuntu 24.04.4 LTS
Architecture: x86_64
Node.js: v22.23.1
npm: 10.9.2
Docker: 29.6.1
OpenShell CLI: 0.0.101
NemoClaw: v0.0.111
OpenClaw: 2026.7.1

Steps to Reproduce

1. Onboard a sandbox with a host mount:

FIXTURE_DIR=$(mktemp -d) && chmod 755 "$FIXTURE_DIR"
printf 'test' > "${FIXTURE_DIR}/alpha.txt"
nemoclaw onboard --name hmt-lifecycle --host-mount "${FIXTURE_DIR}:/sandbox/host-share" --fresh --yes
2. Remove the mount source directory: mv "${FIXTURE_DIR}" "${FIXTURE_DIR}.removed"
3. Run: nemoclaw hmt-lifecycle rebuild --yes; echo "EXIT:$?"

Expected Result

Rebuild exits non-zero (exit 1) when preflight validation fails because the declared host-mount source directory is missing. Scripts can detect the failure via $?.

Actual Result

Managed workload rebuild preflight failed: Invalid --host-mount: host directory does not exist

EXIT:0

The sandbox was not rebuilt (correct), but the exit code is 0 despite the preflight failure.

Logs

$ nemoclaw hmt-lifecycle rebuild --yes

Managed workload rebuild preflight failed: Invalid --host-mount: host directory does not exist
$ echo $?
0
$ nemoclaw list
hmt-lifecycle is still in Ready state (no rebuild attempted — correct behavior, wrong exit code)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.