File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -394,6 +394,8 @@ jobs:
394
394
retry_on : error
395
395
max_attempts : 3
396
396
command : ./hack/test-upgrade.sh ${{ matrix.oldver }} ${{ github.sha }}
397
+ - if : always()
398
+ uses : ./.github/actions/upload_failure_logs_if_exists
397
399
398
400
vz :
399
401
name : " vz"
Original file line number Diff line number Diff line change @@ -334,7 +334,11 @@ if [[ -n ${CHECKS["restart"]} ]]; then
334
334
335
335
export ftp_proxy=my.proxy:8021
336
336
INFO " Restarting \" $NAME \" "
337
- limactl start " $NAME "
337
+ if ! limactl start " $NAME " ; then
338
+ ERROR " Failed to start \" $NAME \" "
339
+ diagnose " $NAME "
340
+ exit 1
341
+ fi
338
342
339
343
INFO " Make sure proxy setting is updated"
340
344
got=$( limactl shell " $NAME " env | grep FTP_PROXY)
@@ -367,7 +371,11 @@ if [[ -n ${CHECKS["user-v2"]} ]]; then
367
371
INFO " Testing user-v2 network"
368
372
secondvm=" $NAME -1"
369
373
" ${LIMACTL_CREATE[@]} " " $FILE " --name " $secondvm "
370
- limactl start " $secondvm "
374
+ if ! limactl start " $secondvm " ; then
375
+ ERROR " Failed to start \" $secondvm \" "
376
+ diagnose " $secondvm "
377
+ exit 1
378
+ fi
371
379
secondvmDNS=" lima-$secondvm .internal"
372
380
INFO " DNS of $secondvm is $secondvmDNS "
373
381
set -x
Original file line number Diff line number Diff line change @@ -49,6 +49,9 @@ function uninstall_lima() {
49
49
50
50
function show_lima_log() {
51
51
tail -n 100 ~ /.lima/" ${LIMA_INSTANCE} " /* .log || true
52
+ mkdir -p failure-logs
53
+ cp -pf ~ /.lima/" ${LIMA_INSTANCE} " /* .log failure-logs/ || true
54
+ limactl shell " ${LIMA_INSTANCE} " sudo cat /var/log/cloud-init-output.log | tee failure-logs/cloud-init-output.log || true
52
55
}
53
56
54
57
INFO " Uninstalling lima"
@@ -89,7 +92,7 @@ INFO "Installing the new Lima ${NEWVER}"
89
92
install_lima " ${NEWVER} "
90
93
91
94
INFO " Restarting the instance"
92
- limactl start --tty=false " ${LIMA_INSTANCE} "
95
+ limactl start --tty=false " ${LIMA_INSTANCE} " || show_lima_log
93
96
lima nerdctl info
94
97
95
98
INFO " Confirming that the host filesystem is still mounted"
You can’t perform that action at this time.
0 commit comments