Project

General

Profile

Actions

action #48401

closed

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

coordination #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 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Enhancement to existing tests
Target version:
SUSE QA - Milestone 25
Start date:
2019-02-25
Due date:
2019-04-09
% Done:

0%

Estimated time:
8.00 h
Difficulty:

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 1 (0 open1 closed)

Precedes (14 days) qe-yam - action #32143: [sle][functiona][y] create ay test which uses iSCSIClosedriafarov2019-04-30

Actions
Actions #1

Updated by riafarov about 5 years 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
Actions #2

Updated by riafarov about 5 years ago

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

Updated by riafarov about 5 years ago

  • Estimated time set to 8.00 h
Actions #4

Updated by JRivrain about 5 years ago

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

Actions #5

Updated by mloviska about 5 years ago

  • Status changed from Workable to In Progress
  • Assignee set to mloviska
Actions #7

Updated by riafarov about 5 years ago

  • Due date changed from 2019-03-12 to 2019-03-26
Actions #9

Updated by mloviska about 5 years ago

  • Status changed from In Progress to Feedback
Actions #10

Updated by JERiveraMoya about 5 years ago

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

Waiting for O3/OSD verification run.

Actions #11

Updated by riafarov about 5 years 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...

Actions #12

Updated by JRivrain almost 5 years 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

Actions #13

Updated by mloviska almost 5 years ago

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

Actions #15

Updated by mloviska almost 5 years ago

Actions #16

Updated by mloviska almost 5 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF