networkservicemesh / deployments-k8s

Apache License 2.0
42 stars 34 forks source link

`nsc-memif` constantly heal the connection in the `local-nsmgr-local-nse-memif` test #12033

Closed NikitaSkrynnik closed 4 months ago

NikitaSkrynnik commented 4 months ago

Description

In the local-nsmgr-local-nse-memif test nsc-memif heals the connection all the time because the ip_context has src and dst addresses from the old closed connection (liveness_check fails).

The test uses two endpoints. It does the following steps:

  1. The NSC connect to the first endpoint with CIRD 172.16.1.100/31
  2. The first endpoint and local NSMGR are deleted
  3. The test restores NSMGR and creates the second endpoint with CIDR 172.16.1.102/31
  4. NSC connects to the second endpoint and receives the following ip_context in the response:
    "ip_context":{
    "src_ip_addrs":["172.16.1.101/32","172.16.1.103/32"],
    "dst_ip_addrs":["172.16.1.100/32","172.16.1.102/32"],
    "src_routes":[{"prefix":"172.16.1.100/32"},{"prefix":"172.16.1.102/32"}],
    "dst_routes" :[{"prefix":"172.16.1.101/32"},{"prefix":"172.16.1.103/32"}]
    }
  5. NSC starts to heal the connection because it can't ping ips from the old connection

Steps to Reproduce

  1. Run local-nsmgr-local-nse-memif
  2. Check logs on nsc-memif

Context