Describe the bug
When updating a VM, CHECK_VM triggers CHECK_VM_QEMU at line 304 because IP is undefined at line 303 and ssh check fails.
To Reproduce
Steps to reproduce the behavior:
- setup ssh config for a qemu VM
- update
- See error
Debug output
+ CHECK_VM
+ [[ true != true ]]
++ awk '-F"' '/^VM=/ {print $2}' /etc/ultimate-updater/temp/var
+ VM=815
++ qm config 815
++ grep name:
++ sed 's/name:\s*//'
+ NAME=unifi-os
+ [[ -f /etc/ultimate-updater/VMs/815 ]]
+ CHECK_VM_QEMU
+ qm guest exec 815 test
++ qm guest cmd 815 get-osinfo
Expected behavior
Run the VM_CHECK without failing back to VM_CHECK_QEMU.
IP variable should either be globally set, or re-set in CHECK_VM.
Screenshots
If applicable, add screenshots to help explain your problem.
VM/LXC (please complete the following information):
Used Version
Extras: 2.2
Config: 1.8.8
Welcome: 1.9
Check: 1.7.9
Additional context
I troubleshoot this by adding echo "ssh test failed for $IP" bellow the ssh connection check, and $IP is unset.
Describe the bug
When updating a VM, CHECK_VM triggers CHECK_VM_QEMU at line 304 because IP is undefined at line 303 and ssh check fails.
To Reproduce
Steps to reproduce the behavior:
Debug output
Expected behavior
Run the VM_CHECK without failing back to VM_CHECK_QEMU.
IP variable should either be globally set, or re-set in CHECK_VM.
Screenshots
If applicable, add screenshots to help explain your problem.
VM/LXC (please complete the following information):
Used Version
Additional context
I troubleshoot this by adding echo "ssh test failed for $IP" bellow the ssh connection check, and $IP is unset.