action #15880
Updated by okurz about 8 years ago
## observation Trying to load qemu img snapshots using "SKIPTO=…" on openQA client command fails to load the snapshot even though the according hard disk image has the according snapshot. I added a debug output to find the error message and will provide a PR to os-autoinst for that, but that's not the issue here. Log: ``` 16:10:12.6247 14224 starting: /usr/bin/qemu-kvm -serial file:serial0 -soundhw ac97 -vga cirrus -global isa-fdc.driveA= -vga cirrus -m 1024 -cpu qemu64 -netdev ser,id=qanet0 -device virtio-net,netdev=qanet0,mac=52:54:00:12:34:56 -device virtio-scsi-pci,id=scsi0 -device virtio-blk,drive=hd1 -drive file=raid/l1,cache=u afe,if=none,id=hd1,format=qcow2 -drive if=none,id=usbstick,file=/var/lib/openqa/factory/iso/SLE-12-SP3-Server-DVD-x86_64-Build0207-Media1.iso,snapshot=on -dev e usb-ehci,id=ehci -device usb-storage,bus=ehci.0,drive=usbstick,id=devusb -boot once=d,menu=on,splash-time=5000 -device usb-ehci -device usb-tablet -smp 1 -e ble-kvm -no-shutdown -vnc :100,share=force-shared -device virtio-serial -chardev socket,path=virtio_console,server,nowait,id=virtio_console,logfile=virtio_con le.log -device virtconsole,chardev=virtio_console,name=org.openqa.console.virtio_console -qmp unix:qmp_socket,server,nowait -monitor unix:hmp_socket,server,no it -S -monitor telnet:127.0.0.1:20102,server,nowait … 16:10:13.6594 14218 Snapshots are supported 16:10:13.6609 14218 skipping installation-isosize … 16:10:13.7012 14218 skipping console-snapper_undochange 16:10:13.7022 14218 Loading a VM snapshot console-xorg_vt DIE Could not load snapshot 'console-xorg_vt': loadvm console-xorg_vt Device 'usbstick' does not have the requested snapshot 'console-xorg_vt' at /local/os-autoinst/backend/qemu.pm line 217. ``` 16:07:11.1604 13916 Snapshots are supported 16:07:11.1618 13916 skipping installation-isosize 16:07:11.1668 13916 skipping installation-bootloader 16:07:11.1682 13916 skipping installation-welcome 16:07:11.1698 13916 skipping installation-skip_registration 16:07:11.1718 13916 skipping installation-addon_products_sle 16:07:11.1734 13916 skipping installation-system_role 16:07:11.1750 13916 skipping installation-partitioning 16:07:11.1764 13916 skipping installation-partitioning_finish 16:07:11.1771 13916 skipping installation-releasenotes 16:07:11.1779 13916 skipping installation-installer_timezone 16:07:11.1794 13916 skipping installation-logpackages 16:07:11.1808 13916 skipping installation-user_settings 16:07:11.1817 13916 skipping installation-user_settings_root 16:07:11.1824 13916 skipping installation-installation_overview 16:07:11.1842 13916 skipping installation-start_install 16:07:11.1849 13916 skipping installation-install_and_reboot 16:07:11.1856 13916 skipping installation-grub_test 16:07:11.1863 13916 skipping installation-first_boot 16:07:11.1869 13916 skipping console-consoletest_setup 16:07:11.1876 13916 skipping console-check_console_font 16:07:11.1882 13916 skipping console-textinfo 16:07:11.1890 13916 skipping console-hostname 16:07:11.1896 13916 skipping console-installation_snapshots 16:07:11.1903 13916 skipping console-snapper_undochange 16:07:11.1910 13916 Loading a VM snapshot console-xorg_vt DIE Could not load snapshot 'console-xorg_vt' at /local/os-autoinst/backend/qemu.pm line 217. ``` ## steps to reproduce * clone any USBinstall job from o3/osd * make sure to run your worker with `--no-cleanup` and such for using qemu snapshots * after one run, clone again with `SKIPTO=…` * observe the error in autoinst-log.txt ## problem H1. qemu is confused where to load snapshots from when specifying a simulated USB thumbdrive as second drive which is not a cdrom ## workaround Need to run the complete test from scratch without the use of snapshots.