You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently memif and memifproxy uses /tmp/memif and /tmp/memifproxy directories for storing socket files. VPP pod has no access to these files, so it work with them.
We can use /var/run/vpp directory instead of /tmp as a base for creating directories for memif socket files.
Use /proc/x/fd/y path
We can replace common /tmp/... path with /proc/x/fd/y path before making VPP API request - such path is already shared, but it will additionally force us to use hostPid: true for the Client applications.
Currently VPP is responsible for creating memif sockets - we are only providing the path where they should be located. With this solution we need to perform additional actions for creating memif socket by ourselves before requesting VPP.
The text was updated successfully, but these errors were encountered:
Issue
Currently
memif
andmemifproxy
uses/tmp/memif
and/tmp/memifproxy
directories for storing socket files. VPP pod has no access to these files, so it work with them.sdk-vpp/pkg/networkservice/mechanisms/memif/common.go
Lines 199 to 201 in 7e89964
sdk-vpp/pkg/networkservice/mechanisms/memif/memifproxy/client.go
Lines 82 to 84 in 7e89964
Parent issue
networkservicemesh/integration-k8s-kind#325
Possible solution
Use shared directory
We can use
/var/run/vpp
directory instead of/tmp
as a base for creating directories for memif socket files.Use
/proc/x/fd/y
pathWe can replace common
/tmp/...
path with/proc/x/fd/y
path before making VPP API request - such path is already shared, but it will additionally force us to usehostPid: true
for the Client applications.Currently VPP is responsible for creating memif sockets - we are only providing the path where they should be located. With this solution we need to perform additional actions for creating memif socket by ourselves before requesting VPP.
The text was updated successfully, but these errors were encountered: