Project

General

Profile

action #49247

Updated by riafarov over 5 years ago

## Motivation 
 Current version of openQA has following behavior: 
 After run to create snapshots is done, one run with SKIPTO will work flawlessly. 
 Second run with SKIPTO will fail. 

 Here is the documentation of the feature: https://github.com/os-autoinst/openQA/blob/master/docs/WritingTests.asciidoc#using-snapshots-to-speed-up-development-of-tests 

 ## Acceptance criteria 
 1. MAKETESTSNAPSHOTS feature works as before 

 ``` 
 [2019-03-04T17:41:21.327 CET] [debug] Snapshots are supported 
 [2019-03-04T17:41:21.329 CET] [debug] skipping installation-isosize 
 [2019-03-04T17:41:21.331 CET] [debug] skipping installation-bootloader 
 [2019-03-04T17:41:21.332 CET] [debug] skipping installation-welcome 
 [2019-03-04T17:41:21.334 CET] [debug] skipping installation-accept_license 
 [2019-03-04T17:41:21.335 CET] [debug] skipping installation-scc_registration 
 [2019-03-04T17:41:21.336 CET] [debug] skipping installation-addon_products_sle 
 [2019-03-04T17:41:21.338 CET] [debug] skipping installation-system_role 
 [2019-03-04T17:41:21.339 CET] [debug] skipping installation-partitioning 
 [2019-03-04T17:41:21.340 CET] [debug] skipping installation-partitioning_raid 
 [2019-03-04T17:41:21.341 CET] [debug] skipping installation-partitioning_finish 
 [2019-03-04T17:41:21.342 CET] [debug] skipping installation-installer_timezone 
 [2019-03-04T17:41:21.342 CET] [debug] skipping installation-hostname_inst 
 [2019-03-04T17:41:21.343 CET] [debug] skipping installation-user_settings 
 [2019-03-04T17:41:21.344 CET] [debug] skipping installation-user_settings_root 
 [2019-03-04T17:41:21.344 CET] [debug] skipping installation-installation_overview 
 [2019-03-04T17:41:21.345 CET] [debug] skipping installation-disable_grub_timeout 
 [2019-03-04T17:41:21.346 CET] [debug] skipping installation-start_install 
 [2019-03-04T17:41:21.347 CET] [debug] skipping installation-await_install 
 [2019-03-04T17:41:21.348 CET] [debug] Loading a VM snapshot installation-logs_from_installation_system 
 [2019-03-04T17:41:21.349 CET] [debug] Loading snapshot (Current VM state is inmigrate). 
 [2019-03-04T17:41:21.349 CET] [info] ::: OpenQA::Qemu::Proc::save_state: Saving QEMU state to qemu_state.json 
 [2019-03-04T17:41:23.380 CET] [debug] QEMU: qemu-system-x86_64: terminating on signal 15 from pid 27457 (/usr/bin/isotovideo: backen) 
 [2019-03-04T17:41:23.383 CET] [debug] starting: /usr/bin/qemu-system-x86_64 -vga cirrus -only-migratable -chardev ringbuf,id=serial0,logfile=serial0,logappend=on -serial chardev:serial0 -soundhw ac97 -global isa-fdc.driveA= -m 1024 -cpu qemu64 -netdev user,id=qanet0 -device virtio-net,netdev=qanet0,mac=52:54:00:12:34:56 -boot once=d,menu=on,splash-time=5000 -device usb-ehci -device usb-tablet -smp 1 -enable-kvm -no-shutdown -vnc :91,share=force-shared -device virtio-serial -chardev socket,path=virtio_console,server,nowait,id=virtio_console,logfile=virtio_console.log,logappend=on -device virtconsole,chardev=virtio_console,name=org.openqa.console.virtio_console -chardev socket,path=qmp_socket,server,nowait,id=qmp_socket,logfile=qmp_socket.log,logappend=on -qmp chardev:qmp_socket -S -incoming defer 
 Attempt 0 at /usr/lib/os-autoinst/osutils.pm line 130. 
 Attempt 1 at /usr/lib/os-autoinst/osutils.pm line 130. 
 Attempts terminated! at /usr/lib/os-autoinst/osutils.pm line 136. 
 [2019-03-04T17:41:25.396 CET] [debug] qmpsocket 14 
 [2019-03-04T17:41:25.404 CET] [debug] EVENT {"data":{"status":"setup"},"event":"MIGRATION","timestamp":{"microseconds":404349,"seconds":1551717685}} 
 [2019-03-04T17:41:30.322 CET] [debug] Backend process died, backend errors are reported below in the following lines: 
 Can't syswrite(IO::Socket::UNIX=GLOB(0x55ca6eec1318), <BUFFER>): Broken pipe at /usr/lib/os-autoinst/backend/qemu.pm line 956 

 [2019-03-04T17:41:30.323 CET] [info] ::: OpenQA::Qemu::Proc::save_state: Saving QEMU state to qemu_state.json 
 last frame 
 [2019-03-04T17:41:30.464 CET] [info] ::: OpenQA::Qemu::Proc::save_state: Saving QEMU state to qemu_state.json 
 [2019-03-04T17:41:30.464 CET] [debug] QEMU: QEMU emulator version 3.1.0 (openSUSE Tumbleweed) 
 [2019-03-04T17:41:30.464 CET] [debug] QEMU: Copyright (c) 2003-2018 Fabrice Bellard and the QEMU Project developers 
 [2019-03-04T17:41:30.465 CET] [debug] QEMU: qemu-system-x86_64: Unknown savevm section or instance '0000:00:07.0/virtio-scsi' 0. Make sure that your current VM setup matches your saved VM setup, including any hotplugged devices 
 [2019-03-04T17:41:30.465 CET] [debug] QEMU: qemu-system-x86_64: load of migration failed: Invalid argument 
 [2019-03-04T17:41:30.466 CET] [debug] sending magic and exit 
 [2019-03-04T17:41:30.466 CET] [debug] received magic close 
 [2019-03-04T17:41:30.466 CET] [debug] THERE IS NOTHING TO READ 15 4 3 
 [2019-03-04T17:41:30.471 CET] [debug] backend process exited: 0 
 [2019-03-04T17:41:30.474 CET] [debug] commands process exited: 0 
 [2019-03-04T17:41:31.475 CET] [debug] sysread failed:  
 [2019-03-04T17:41:31.475 CET] [debug] ||| starting logs_from_installation_system tests/installation/logs_from_installation_system.pm 
 syswrite failed Broken pipe at /usr/lib/os-autoinst/myjsonrpc.pm line 40. 
	 myjsonrpc::send_json(GLOB(0x55ca6b057208), HASH(0x55ca6b0979a0)) called at /usr/lib/os-autoinst/autotest.pm line 313 
	 autotest::query_isotovideo("set_current_test", HASH(0x55ca6ca9f360)) called at /usr/lib/os-autoinst/autotest.pm line 181 
	 autotest::set_current_test(logs_from_installation_system=HASH(0x55ca6ca05ce0)) called at /usr/lib/os-autoinst/basetest.pm line 272 
	 basetest::start(logs_from_installation_system=HASH(0x55ca6ca05ce0)) called at /usr/lib/os-autoinst/autotest.pm line 350 
	 autotest::runalltests() called at /usr/lib/os-autoinst/autotest.pm line 214 
	 eval {...} called at /usr/lib/os-autoinst/autotest.pm line 214 
	 autotest::run_all() called at /usr/lib/os-autoinst/autotest.pm line 267 
	 autotest::__ANON__(Mojo::IOLoop::ReadWriteProcess=HASH(0x55ca6c93f340)) called at /usr/lib/perl5/vendor_perl/5.28.1/Mojo/IOLoop/ReadWriteProcess.pm line 325 
	 eval {...} called at /usr/lib/perl5/vendor_perl/5.28.1/Mojo/IOLoop/ReadWriteProcess.pm line 325 
	 Mojo::IOLoop::ReadWriteProcess::_fork(Mojo::IOLoop::ReadWriteProcess=HASH(0x55ca6c93f340), CODE(0x55ca6c85de38)) called at /usr/lib/perl5/vendor_perl/5.28.1/Mojo/IOLoop/ReadWriteProcess.pm line 476 
	 Mojo::IOLoop::ReadWriteProcess::start(Mojo::IOLoop::ReadWriteProcess=HASH(0x55ca6c93f340)) called at /usr/lib/os-autoinst/autotest.pm line 268 
	 autotest::start_process() called at /usr/bin/isotovideo line 251 
 [2019-03-04T17:41:31.489 CET] [debug] [autotest] process exited: 0 
 [2019-03-04T17:41:32.490 CET] [debug] isotovideo failed 
 ```

Back