File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ What `run.sh` does:
33332 . Waits for both VMs to reach ` Running ` .
34343 . Finds the ` imp-agent ` pod on the client VM node.
35354 . Port-forwards the agent API.
36- 5 . Executes an HTTP request from client VM to server VM over the ImpNetwork.
36+ 5 . Executes a guest-agent command from client VM to server VM ( ` ping ` ) over the ImpNetwork.
37376 . Fails unless guest-exec returns exit code ` 0 ` .
3838
3939## Cleanup
Original file line number Diff line number Diff line change 7676echo " [5/6] execute connectivity check from ${CLIENT_VM} -> ${SERVER_IP} "
7777REQ_BODY=" $(
7878 cat << EOF
79- {"command":["/bin/sh","-lc","wget -qO- http:// ${SERVER_IP} | grep -qi nginx "]}
79+ {"command":["/bin/sh","-lc","ping -c1 -W2 ${SERVER_IP} "]}
8080EOF
8181) "
8282RESP=" $(
83- curl -fsS -X POST \
83+ curl --max-time 60 - fsS -X POST \
8484 -H " Content-Type: application/json" \
8585 --data " ${REQ_BODY} " \
8686 " http://127.0.0.1:${LOCAL_AGENT_PORT} /v1/exec/${NS} /${CLIENT_VM} "
You can’t perform that action at this time.
0 commit comments