big-jordan-45387
04/03/2023, 8:51 PMcurl --connect-timeout 60 --max-time 60 --write-out "%{http_code}\n" -sS -H "Authorization: Bearer xxxxxxxxx" -H "X-Cattle-Id: yyyyyyyyyyy" -H "X-Cattle-Role-Etcd: true" -H "X-Cattle-Role-Control-Plane: true" -H "X-Cattle-Role-Worker: true" -H "X-Cattle-Node-Name: " -H "X-Cattle-Address: " -H "X-Cattle-Internal-Address: " -H "X-Cattle-Labels: <http://cattle.io/os=linux|cattle.io/os=linux>" -H "X-Cattle-Taints: " "<https://zzzzzzzzzzz>"/v3/connect/agent -o /var/lib/rancher/agent/rancher2_connection_info.json
The command above times out and the script ends up in a loop.
Has anyone any idea of how can I do next to understand what is going on?creamy-pencil-82913
04/03/2023, 9:12 PMbig-jordan-45387
04/03/2023, 9:13 PMcreamy-pencil-82913
04/03/2023, 9:20 PMbig-jordan-45387
04/03/2023, 9:21 PMecho "3"
echo "######## ATTEMPT $i of $RETRYCOUNT"
echo "calling ===> curl $noproxy --connect-timeout 60 --max-time 60 --write-out \"%{http_code}\n\" ${CURL_CAFLAG} ${CURL_LOG} -H \"Authorization: Bearer ${CATTLE_TOKEN}\" -H \"X-Cattle-Id: ${CATTLE_ID}\" -H \"X-Cattle-Role-Etcd: ${CATTLE_ROLE_ETCD}\" -H \"X-Cattle-Role-Control-Plane: ${CATTLE_ROLE_CONTROLPLANE}\" -H \"X-Cattle-Role-Worker: ${CATTLE_ROLE_WORKER}\" -H \"X-Cattle-Node-Name: ${CATTLE_NODE_NAME}\" -H \"X-Cattle-Address: ${CATTLE_ADDRESS}\" -H \"X-Cattle-Internal-Address: ${CATTLE_INTERNAL_ADDRESS}\" -H \"X-Cattle-Labels: ${CATTLE_LABELS}\" -H \"X-Cattle-Taints: ${CATTLE_TAINTS}\" \"${CATTLE_SERVER}\"/v3/connect/agent -o ${CATTLE_AGENT_VAR_DIR}/rancher2_connection_info.json"
RESPONSE=$(curl $noproxy --connect-timeout 60 --max-time 60 --write-out "%{http_code}\n" ${CURL_CAFLAG} ${CURL_LOG} -H "Authorization: Bearer ${CATTLE_TOKEN}" -H "X-Cattle-Id: ${CATTLE_ID}" -H "X-Cattle-Role-Etcd: ${CATTLE_ROLE_ETCD}" -H "X-Cattle-Role-Control-Plane: ${CATTLE_ROLE_CONTROLPLANE}" -H "X-Cattle-Role-Worker: ${CATTLE_ROLE_WORKER}" -H "X-Cattle-Node-Name: ${CATTLE_NODE_NAME}" -H "X-Cattle-Address: ${CATTLE_ADDRESS}" -H "X-Cattle-Internal-Address: ${CATTLE_INTERNAL_ADDRESS}" -H "X-Cattle-Labels: ${CATTLE_LABELS}" -H "X-Cattle-Taints: ${CATTLE_TAINTS}" "${CATTLE_SERVER}"/v3/connect/agent -o ${CATTLE_AGENT_VAR_DIR}/rancher2_connection_info.json)
echo "call done with response $RESPONSE"
and I get the output
3
######## ATTEMPT 1 of 4500
calling ===> curl --connect-timeout 60 --max-time 60 --write-out "%{http_code}\n" -sS -H "Authorization: Bearer ..." -H "X-Cattle-Id: ..." -H "X-Cattle-Role-Etcd: true" -H "X-Cattle-Role-Control-Plane: true" -H "X-Cattle-Role-Worker: true" -H "X-Cattle-Node-Name: " -H "X-Cattle-Address: " -H "X-Cattle-Internal-Address: " -H "X-Cattle-Labels: <http://cattle.io/os=linux|cattle.io/os=linux>" -H "X-Cattle-Taints: " "https://..."/v3/connect/agent -o /var/lib/rancher/agent/rancher2_connection_info.json
./system-agent-install.sh --server https://... --label '<http://cattle.io/os=linux|cattle.io/os=linux>' --token .... --etcd --controlplane --worker
hundreds-evening-84071
04/03/2023, 9:28 PMbig-jordan-45387
04/03/2023, 9:28 PMhundreds-evening-84071
04/03/2023, 9:30 PMbig-jordan-45387
04/03/2023, 9:33 PMcreamy-pencil-82913
04/03/2023, 9:34 PMbig-jordan-45387
04/03/2023, 9:35 PMcreamy-pencil-82913
04/03/2023, 9:48 PMbig-jordan-45387
04/03/2023, 9:49 PM