action #48401

action #40475: [functional][y][saga] Establish YaST team split

action #42494: [epic][functional][y] Split/adapt scenarios to move installer related part to YaST specific job group

[functional][y] Implement test module to validate iscsi_ibft installation

Added by riafarov about 1 year ago. Updated about 1 year ago.

Status:ResolvedStart date:25/02/2019
Priority:NormalDue date:09/04/2019
Assignee:mloviska% Done:

0%

Category:Enhancement to existing testsEstimated time:8.00 hours
Target version:SUSE QA tests - Milestone 25
Difficulty:
Duration: 32

Description

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.


Related issues

Precedes (14 days) openQA Tests - action #32143: [sle][functiona][y] create ay test which uses iSCSI New 30/04/2019

History

#1 Updated by riafarov about 1 year ago

  • Subject changed from [functional][y] Imlement test module to validate iscsi_ibft installation to [functional][y] Implement test module to validate iscsi_ibft installation
  • Description updated (diff)
  • Status changed from New to Workable

#2 Updated by riafarov about 1 year ago

  • Precedes action #32143: [sle][functiona][y] create ay test which uses iSCSI added

#3 Updated by riafarov about 1 year ago

  • Estimated time set to 8.00

#4 Updated by JRivrain about 1 year ago

ipxe.lkrn is in the package "ipxe-bootimgs" in opensuse repos, too.

#5 Updated by mloviska about 1 year ago

  • Status changed from Workable to In Progress
  • Assignee set to mloviska

#7 Updated by riafarov about 1 year ago

  • Due date changed from 12/03/2019 to 26/03/2019

#9 Updated by mloviska about 1 year ago

  • Status changed from In Progress to Feedback

#10 Updated by JERiveraMoya about 1 year ago

  • Due date changed from 26/03/2019 to 09/04/2019

Waiting for O3/OSD verification run.

#11 Updated by riafarov about 1 year ago

Broke on SLE12: https://openqa.suse.de/tests/2745207/file/autoinst-log.txt
NICMAC is not set somehow, so we cannot rely on the variable being always available...

#12 Updated by JRivrain about 1 year ago

riafarov wrote:

Broke on SLE12: https://openqa.suse.de/tests/2745207/file/autoinst-log.txt

NICMAC is not set somehow, so we cannot rely on the variable being always available...

Same problem on sle 15 build 199.1, however it was ok in previous runs: https://openqa.suse.de/tests/2742523#next_previous

#13 Updated by mloviska about 1 year ago

http://eris.suse.cz/tests/12927#, seems to work when trying to fetch NICMAC from run subroutine.

#15 Updated by mloviska about 1 year ago

#16 Updated by mloviska about 1 year ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF