зеркало из https://github.com/microsoft/CCF.git
Increase ssh timeout (#4956)
Co-authored-by: Julien Maffre <42961061+jumaffre@users.noreply.github.com>
This commit is contained in:
Родитель
4790a6a879
Коммит
150616ca8e
|
@ -154,7 +154,7 @@ jobs:
|
|||
echo $(SecondaryIpAddresses) | base64 -d > ~/secondary_ip_addresses
|
||||
mapfile -t IP_ADDR_LIST <<< $(echo "$(IpAddresses)" | awk '{print $2}')
|
||||
for IP_ADDR in "${IP_ADDR_LIST[@]}"; do
|
||||
ssh agent@$IP_ADDR -o "StrictHostKeyChecking no" 'echo "Connected successfully"'
|
||||
ssh agent@$IP_ADDR -o "StrictHostKeyChecking no" -o ConnectTimeout=100 'echo "Connected successfully"'
|
||||
scp ~/secondary_ip_addresses agent@$IP_ADDR:${{ parameters.secondaries.path }}
|
||||
done
|
||||
displayName: "Connect Primary ACI with Secondaries"
|
||||
|
@ -186,7 +186,7 @@ jobs:
|
|||
set -ex
|
||||
mapfile -t IP_ADDR_LIST <<< $(echo "$(IpAddresses)" | awk '{print $2}')
|
||||
for IP_ADDR in "${IP_ADDR_LIST[@]}"; do
|
||||
ssh agent@$IP_ADDR -o "StrictHostKeyChecking no" '
|
||||
ssh agent@$IP_ADDR -o "StrictHostKeyChecking no" -o ConnectTimeout=100 '
|
||||
sudo rm -rf /ccfci/workspace_$(Build.BuildNumber)
|
||||
'
|
||||
done
|
||||
|
|
|
@ -41,7 +41,7 @@ jobs:
|
|||
- script: |
|
||||
set -ex
|
||||
echo -e "Testing connection with $IP_ADDR"
|
||||
ssh agent@$IP_ADDR -o "StrictHostKeyChecking no" '
|
||||
ssh agent@$IP_ADDR -o "StrictHostKeyChecking no" -o ConnectTimeout=100 '
|
||||
echo "Connected successfully for port 22"
|
||||
cd /usr/src/app/attest
|
||||
# /usr/local/go/bin/go test
|
||||
|
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
- script: |
|
||||
set -ex
|
||||
mapfile -t IP_ADDR_LIST <<< $(echo "$(runOn)" | awk '{print $2}')
|
||||
ssh agent@${IP_ADDR_LIST[0]} -o "StrictHostKeyChecking no" '
|
||||
ssh agent@${IP_ADDR_LIST[0]} -o "StrictHostKeyChecking no" -o ConnectTimeout=100 '
|
||||
cd /CCF/build
|
||||
npm config set cache /ccfci/workspace_$(Build.BuildNumber)/.npm
|
||||
WORKSPACE=/ccfci/workspace_$(Build.BuildNumber) ELECTION_TIMEOUT_MS=10000 SECONDARY_ACIS_PATH=$(secondaryAcisPath) ./tests.sh -VV -T Test -LE "benchmark|perf|tlstest|vegeta|suite" -E "lts_compatibility"
|
||||
|
@ -36,7 +36,7 @@ jobs:
|
|||
- script: |
|
||||
set -ex
|
||||
mapfile -t IP_ADDR_LIST <<< $(echo "$(runOn)" | awk '{print $2}')
|
||||
ssh agent@${IP_ADDR_LIST[0]} -o "StrictHostKeyChecking no" '
|
||||
ssh agent@${IP_ADDR_LIST[0]} -o "StrictHostKeyChecking no" -o ConnectTimeout=100 '
|
||||
dmesg
|
||||
'
|
||||
name: run_dmesg
|
||||
|
|
|
@ -482,6 +482,8 @@ def check_aci_deployment(
|
|||
f"agent@{container_group.ip_address.ip}",
|
||||
"-o",
|
||||
"StrictHostKeyChecking no",
|
||||
"-o",
|
||||
"ConnectTimeout=100",
|
||||
"echo test",
|
||||
]
|
||||
)
|
||||
|
|
Загрузка…
Ссылка в новой задаче