Project

General

Profile

action #48401

Updated by riafarov about 5 years ago

## Motivation 
 See parent ticket 

 https://openqa.suse.de/tests/latest?distri=sle&version=12-SP5&arch=x86_64&machine=64bit&test=iscsi_ibft&flavor=Server-DVD 
 https://openqa.suse.de/tests/latest?version=15-SP1&distri=sle&arch=x86_64&machine=64bit&test=iscsi_ibft&flavor=Installer-DVD 

 Test suite verifies installation on iscsi using ibft firmware. 
 These is the only difference to the default installation. So we need to validate partitioning and that there are no mount errors, which are already indirectly tested by the fact that system boots. 

 ## Acceptance criteria 
 1. Only relevant checks are done for iscsi ibft installation 
 2. Test suite is moved to the YaST job group 

 ## Suggestion 
 Play with ibft on qemu. 
 Download firmware from rom-o-matic.net or osd (https://gitlab.suse.de/openqa/salt-states-openqa/blob/master/openqa/ipxe.lkrn) 

 Use salt recipes to configures iSCSI (https://gitlab.suse.de/openqa/salt-states-openqa/tree/master/openqa https://gitlab.suse.de/openqa/salt-states-openqa/blob/master/openqa/iscsi.sls + https://gitlab.suse.de/openqa/salt-states-openqa/blob/master/openqa/iscsi-target-setup.sh) 

 To start qemu: 
 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 -kernel /usr/share/qemu/ipxe.lkrn -append dhcp && sanhook iscsi:10.160.0.243::3260:1:iqn.2016-02.openqa.de:for.openqa -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 -device virtio-scsi-pci,id=scsi0 -blockdev driver=file,node-name=hd0-file,filename=/var/lib/openqa/pool/1/raid/hd0,cache.no-flush=on -blockdev driver=qcow2,node-name=hd0,file=hd0-file,cache.no-flush=on -device virtio-blk,id=hd0-device,drive=hd0,serial=hd0 -blockdev driver=file,node-name=cd0-overlay0-file,filename=/var/lib/openqa/pool/1/raid/cd0-overlay0,cache.no-flush=on -blockdev driver=qcow2,node-name=cd0-overlay0,file=cd0-overlay0-file,cache.no-flush=on -device scsi-cd,id=cd0-device,drive=cd0-overlay0,serial=cd0 

 Where main difference is -kernel /usr/share/qemu/ipxe.lkrn -append dhcp && sanhook iscsi:10.160.0.243::3260:1:iqn.2016-02.openqa.de:for.openqa    where we specify ipxe kernel and iscsi target, adjust as per your config. 

 

Back