Skip to content

fix(ascend): mount the device NIC addresses so RoCE endpoints can be built - #28

Merged
thxCode merged 1 commit into
gpustack:mainfrom
gitlawr:fix-ascend-hccn-conf-mount
Sep 17, 2026
Merged

thxCode merged 1 commit into
gpustack:mainfrom
gitlawr:fix-ascend-hccn-conf-mount

Conversation

@gitlawr

@gitlawr gitlawr commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

A transport building Device RoCE endpoints reads each NPU's NIC address from /etc/hccn.conf, or from hccn_tool, which lives in a driver directory none of the injected mounts covers. Neither reaches the container, so the engine fails to initialize with "Failed to get device ip from hccn.conf and hccn_tool" and every process that opens the transport dies at startup: a shared KV cache store on an Ascend node never comes up, and an engine attaching to one fails the same way.

Inject the file beside the ranktable it already sits next to. A host that configured no device NICs has no such file and path_to_cdi_mount skips what is absent, so a container that never opens the transport sees no change.

Ref:
https://gitcode.com/cann/hixl/wiki/Mooncake%EF%BC%88NPU%20%E7%89%88%EF%BC%89%E5%AE%8C%E6%95%B4%E6%8C%87%E5%8D%97.md#23-%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9

…built

A transport building Device RoCE endpoints reads each NPU's NIC address
from /etc/hccn.conf, or from hccn_tool, which lives in a driver directory
none of the injected mounts covers. Neither reaches the container, so the
engine fails to initialize with "Failed to get device ip from hccn.conf
and hccn_tool" and every process that opens the transport dies at
startup: a shared KV cache store on an Ascend node never comes up, and an
engine attaching to one fails the same way.

Inject the file beside the ranktable it already sits next to. A host that
configured no device NICs has no such file and path_to_cdi_mount skips
what is absent, so a container that never opens the transport sees no
change.
@gitlawr
gitlawr requested a review from thxCode September 17, 2026 10:06

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds the host configuration file path /etc/hccn.conf (_HCCN_CONF_PATH) and includes it in the mount paths for the Ascend CDI deployer. This ensures containers using Device RoCE can access host NIC addresses and initialize successfully. There are no review comments, so no additional feedback is provided.

@thxCode thxCode left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thxCode
thxCode merged commit 9119394 into gpustack:main Sep 17, 2026
7 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.

2 participants