HCCL_SOCKET_IFNAME Configuration Error (EI0001)

Symptom

The CANN log contains the keyword "get host ip fail by socket Ifname," as shown below:

[ERROR] HCCL(925892,alltoall_test):2025-10-28-16:34:59.634.432 [sal.cc:501] [925892][InitGroupStage][EnvConfig]set ifname to [abc] by HCCL_SOCKET_IFNAME, but not found in the environment, ifnames in the environment is as follows
[ERROR] HCCL(925892,alltoall_test):2025-10-28-16:34:59.634.437 [sal.cc:504] [925892][InitGroupStage][EnvConfig]get host ip fail by socket Ifname. name[lo] ip[127.10.0.1%lo]
[ERROR] HCCL(925892,alltoall_test):2025-10-28-16:34:59.634.441 [sal.cc:504] [925892][InitGroupStage][EnvConfig]get host ip fail by socket Ifname. name[enp] ip[127.10.0.2%enp]
[ERROR] HCCL(925892,alltoall_test):2025-10-28-16:34:59.634.447 [sal.cc:504] [925892][InitGroupStage][EnvConfig]get host ip fail by socket Ifname. name[docker0] ip[172.17.0.1%docker0]

Cause Analysis

A host NIC is specified by the HCCL_SOCKET_IFNAME environment variable, but the corresponding NIC is not found in the current environment. (In the container scenario, you need to specify a host NIC available in the container.) The error log lists the host NICs queried in the current environment.

Solution

Modify the HCCL_SOCKET_IFNAME environment variable to specify a host NIC that exists in the environment.