Skip to content

fix(ascend): inject the driver tree whole, for the tool that answers device addresses - #29

Open
gitlawr wants to merge 1 commit into
gpustack:mainfrom
gitlawr:fix-ascend-driver-tree-mount
Open

gitlawr wants to merge 1 commit into
gpustack:mainfrom
gitlawr:fix-ascend-driver-tree-mount

Conversation

@gitlawr

@gitlawr gitlawr commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

The three driver subdirectories carry the libraries and the topology file but not hccn_tool, and a transport building Device RoCE endpoints reads each NPU's NIC address through it: a container holding the libraries without the tool cannot open that transport at all, and every process that does dies at startup reporting a device-ip lookup.

/etc/hccn.conf, added for the same reason, is the other place those addresses can be read from — but only on a host that keeps them there, while the tool answers from the driver on every host that has one. The wider mount covers both cases with one entry and matches what the Kubernetes chart and the worker's own container already mount.

The driver belongs to the host on every Ascend containerization path, the image supplying the toolkit, so injecting more of it shadows nothing a container ships with.

…device addresses

The three driver subdirectories carry the libraries and the topology file
but not hccn_tool, and a transport building Device RoCE endpoints reads
each NPU's NIC address through it: a container holding the libraries
without the tool cannot open that transport at all, and every process
that does dies at startup reporting a device-ip lookup.

/etc/hccn.conf, added for the same reason, is the other place those
addresses can be read from — but only on a host that keeps them there,
while the tool answers from the driver on every host that has one. The
wider mount covers both cases with one entry and matches what the
Kubernetes chart and the worker's own container already mount.

The driver belongs to the host on every Ascend containerization path, the
image supplying the toolkit, so injecting more of it shadows nothing a
container ships with.

@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 simplifies the Ascend CDI deployment by mounting the entire host driver tree (/usr/local/Ascend/driver) instead of individual subdirectories and the /etc/hccn.conf file. This change ensures that hccn_tool is available to read NPU NIC addresses, preventing initialization failures on hosts where /etc/hccn.conf is absent. Corresponding test assertions have been updated to reflect this change. I have no additional feedback to provide.

@gitlawr
gitlawr requested a review from thxCode September 18, 2026 09:22
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