diff --git a/examples/heal/README.md b/examples/heal/README.md index 5299e2114aed..a5b935a446a2 100644 --- a/examples/heal/README.md +++ b/examples/heal/README.md @@ -8,13 +8,14 @@ To run any heal example follow steps for [Basic NSM setup](../basic) ## Includes -# Temporary disable heal tests -# - [Local Forwarder death](./local-forwarder-death) -# - [Remote Forwarder death](./remote-forwarder-death) -# - [Local NSMgr restart](./local-nsmgr-restart) -# - [Remote NSMgr death](./remote-nsmgr-death) -# - [Local NSE death](./local-nse-death) -# - [Remote NSE death](./remote-nse-death) -# - [Registry restart](./registry-restart) -# https://github.com/networkservicemesh/sdk/issues/1079 -# - [Remote NSMgr restart](./remote-nsmgr-restart) \ No newline at end of file + - [Local Forwarder death](./local-forwarder-death) + - [Remote Forwarder death](./remote-forwarder-death) + - [Local NSMgr restart](./local-nsmgr-restart) + - [Remote NSMgr death](./remote-nsmgr-death) + - [Local NSE death](./local-nse-death) + - [Remote NSE death](./remote-nse-death) + - [Registry restart](./registry-restart) + - [Remote NSMgr restart](./remote-nsmgr-restart) + - [Remote NSMgr restart ip](./remote-nsmgr-restart-ip) + - [Remote Forwarder death ip](./remote-forwarder-death-ip) + - [Remote NSE death ip](./remote-nse-death-ip) diff --git a/examples/heal/local-forwarder-death/README.md b/examples/heal/local-forwarder-death/README.md index 2cdfbe6fc46e..9d5b9be91c28 100644 --- a/examples/heal/local-forwarder-death/README.md +++ b/examples/heal/local-forwarder-death/README.md @@ -130,12 +130,12 @@ kubectl wait --for=condition=ready --timeout=1m pod -l app=forwarder-vpp --field Ping from NSC to NSE: ```bash -kubectl exec ${NSC} -n ${NAMESPACE} -- ping -c 4 172.16.1.102 +kubectl exec ${NSC} -n ${NAMESPACE} -- ping -c 4 172.16.1.100 ``` Ping from NSE to NSC: ```bash -kubectl exec ${NSE} -n ${NAMESPACE} -- ping -c 4 172.16.1.103 +kubectl exec ${NSE} -n ${NAMESPACE} -- ping -c 4 172.16.1.101 ``` ## Cleanup diff --git a/examples/heal/remote-forwarder-death-ip/README.md b/examples/heal/remote-forwarder-death-ip/README.md new file mode 100644 index 000000000000..056b3ed574b9 --- /dev/null +++ b/examples/heal/remote-forwarder-death-ip/README.md @@ -0,0 +1,150 @@ +# Test remote Forwarder death + +This example shows that NSM keeps working after the remote Forwarder death. + +NSC and NSE are using the `kernel` mechanism to connect to its local forwarder. +Forwarders are using the `vxlan` mechanism to connect with each other. + +## Requires + +Make sure that you have completed steps from [basic](../../basic) or [memory](../../memory) setup. + +## Run + +Create test namespace: +```bash +NAMESPACE=($(kubectl create -f https://raw.githubusercontent.com/networkservicemesh/deployments-k8s/7113942326f9001fa67b7a9effdf38d4eba2dbdd/examples/heal/namespace.yaml)[0]) +NAMESPACE=${NAMESPACE:10} +``` + +Get nodes exclude control-plane: +```bash +NODES=($(kubectl get nodes -o go-template='{{range .items}}{{ if not .spec.taints }}{{index .metadata.labels "kubernetes.io/hostname"}} {{end}}{{end}}')) +``` + +Create customization file: +```bash +cat > kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml < patch-nse.yaml < kustomization.yaml < patch-nsc.yaml < patch-nse.yaml <