networkservicemesh / deployments-k8s

Apache License 2.0
41 stars 34 forks source link

NSEs and Forwarders can have the same url when they register in a registry #12032

Open NikitaSkrynnik opened 2 months ago

NikitaSkrynnik commented 2 months ago

Description

NSEs and Forwarders can have the same URL during registration. In the logs provided below NSE and forwarder at some point have the same address: unix:///proc/1/fd/21. Therefore, NSMGR skips the forwarder and goes directly to NSE.

Failure Logs

v1.26.4.zip

The path in the response for alpine-new's cmd-nsc-init looks like this:

"path":{"path_segments":[
    {"name":"alpine-new-be1c3845-67d3-44ef-806d-ede406ee78cc","id":"alpine-new-be1c3845-67d3-44ef-806d-ede406ee78cc-0"}   
    {"name":"nsmgr-gv8df","id":"ed19b36a-87f3-409f-8876-002ae84816fe"},
    {"name":"nse-kernel-5b6d979dfb-7cjc4","id":"5741c9ed-fb9b-43ce-a106-65fccd6dbf03"}
]