Skip to content

CHECK_VM_QEMU triggered in ssh mode #264

@BadFlo

Description

@BadFlo

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:

  1. setup ssh config for a qemu VM
  2. update
  3. 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):

  • OS: Debian
  • Version 13

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.

Metadata

Metadata

Assignees

Labels

betaIn beta stadiumbugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions