Project

General

Profile

Actions

action #169480

open

coordination #169654: [epic] Create test scenarios for Agama

Boot Agama in OSD in PowerVM

Added by JERiveraMoya 26 days ago. Updated about 11 hours ago.

Status:
In Progress
Priority:
High
Assignee:
Target version:
-
Start date:
2024-11-07
Due date:
% Done:

0%

Estimated time:

Description

Motivation

Following #167248 we should enable also Agama for virtualization PowerVM in openQA in SLES 16 job group
At the moment we have achieved to boot using x86_64 with emulation for power 9: https://openqa.suse.de/tests/15875199 which is very slow and not fully supported.

Acceptance criteria

  • AC1: Agama can boot using powerVM in OSD.

Additional information

we should use the newer hmc console not spvm.


Related issues 1 (1 open0 closed)

Related to openQA Tests (public) - action #167893: [qe-core] [ppc64le] move sle micro tests from qemu backend to powerVM Feedbackrfan1

Actions
Actions #1

Updated by szarate 25 days ago

  • Related to action #167893: [qe-core] [ppc64le] move sle micro tests from qemu backend to powerVM added
Actions #2

Updated by JERiveraMoya 25 days ago

  • Description updated (diff)
Actions #3

Updated by JERiveraMoya 25 days ago

  • Assignee set to jfernandez
Actions #4

Updated by rfan1 25 days ago · Edited

I extracted the linux/initrd file from agama iso.

boot/ppc64le> ll
total 124372
-rw-r--r-- 1 root root 77144571 Nov  5 13:46 initrd
-rw-r--r-- 1 root root 50211880 Nov  5 13:46 linux

And tried a simple test pxe/netboot->load linux/initrd file-> boot, seems it is bootable:

Welcome to SUSE Linux Enterprise Server 16.0 (Alpha2) dracut-059+suse.607.g2d95edb5-slfo.1.1.8 (Initramfs)!

[    0.803537][    T1] systemd[1]: No hostname configured, using default hostname.
[    0.803693][    T1] systemd[1]: Hostname set to <localhost>.
[    0.803797][    T1] systemd[1]: Initializing machine ID from random generator.
[    0.967406][    T1] systemd[1]: bpf-lsm: Failed to link program; assuming BPF LSM is not available
[    1.086874][    T1] systemd[1]: Queued start job for default target Initrd Default Target.
[    1.187234][    T1] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[    1.187542][    T1] systemd[1]: Expecting device /dev/mapper/live-rw...
         Expecting device /dev/mapper/live-rw...
[    1.187724][    T1] systemd[1]: Reached target Local Encrypted Volumes.
[  OK  ] Reached target Local Encrypted Volumes.
[    1.187918][    T1] systemd[1]: Reached target Initrd Root Device.
[  OK  ] Reached target Initrd Root Device.
[    1.188111][    T1] systemd[1]: Reached target Initrd /usr File System.
[  OK  ] Reached target Initrd /usr File System.
[    1.188321][    T1] systemd[1]: Reached target Path Units.
[  OK  ] Reached target Path Units.
[    1.188530][    T1] systemd[1]: Reached target Slice Units.
[  OK  ] Reached target Slice Units.
[    1.188727][    T1] systemd[1]: Reached target Swaps.
[  OK  ] Reached target Swaps.
[    1.188908][    T1] systemd[1]: Reached target Timer Units.
[  OK  ] Reached target Timer Units.
[    1.189253][    T1] systemd[1]: Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[    1.189534][    T1] systemd[1]: Listening on Open-iSCSI iscsid Socket.
[  OK  ] Listening on Open-iSCSI iscsid Socket.
[    1.189892][    T1] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    1.190254][    T1] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    1.190648][    T1] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[    1.190988][    T1] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    1.191168][    T1] systemd[1]: Reached target Socket Units.
[  OK  ] Reached target Socket Units.
[    1.193020][    T1] systemd[1]: Starting Create List of Static Device Nodes...
         Starting Create List of Static Device Nodes...
[    1.195372][    T1] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[    1.195962][    T1] systemd[1]: Load Kernel Modules was skipped because no trigger condition checks were met.
[    1.197204][    T1] systemd[1]: Starting Apply Kernel Variables...
         Starting Apply Kernel Variables...
[    1.198587][    T1] systemd[1]: Starting Virtual Console Setup...
         Starting Virtual Console Setup...
[    1.199679][    T1] systemd[1]: Finished Create List of Static Device Nodes.
[  OK  ] Finished Create List of Static Device Nodes.
[    1.201195][    T1] systemd[1]: Starting Create Static Device Nodes in /dev gracefully...
         Starting Create Static Device Nodes in /dev gracefully...
[    1.206519][    T1] systemd[1]: Finished Apply Kernel Variables.
[  OK  ] Finished Apply Kernel Variables.
[    1.210235][    T1] systemd[1]: Finished Create Static Device Nodes in /dev gracefully.
[  OK  ] Finished Create Static Device Nodes in /dev gracefully.
[    1.211684][    T1] systemd[1]: Starting Create Static Device Nodes in /dev...
         Starting Create Static Device Nodes in /dev...
[    1.221256][  T400] systemd-journald[400]: Collecting audit messages is disabled.
[    1.221280][    T1] systemd[1]: Finished Create Static Device Nodes in /dev.
[  OK  ] Finished Create Static Device Nodes in /dev.
[    1.221615][    T1] systemd[1]: Reached target Preparation for Local File Systems.
[  OK  ] Reached target Preparation for Local File Systems.
[    1.221819][    T1] systemd[1]: Reached target Local File Systems.
[  OK  ] Reached target Local File Systems.
[    1.231215][    T1] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
         Starting Create System Files and Directories...
[  OK  ] Finished Create System Files and Directories.
[  OK  ] Finished Virtual Console Setup.
         Starting dracut menu for additional cmdline parameters...
[  OK  ] Finished dracut menu for additional cmdline parameters.
         Starting dracut ask for additional cmdline parameters...
[  OK  ] Finished dracut ask for additional cmdline parameters.
         Starting dracut cmdline hook...
[    1.551846][  T546] loop: module loaded
[    1.654371][  T593] SCSI subsystem initialized
[    1.682926][  T593] alua: device handler registered
[    1.685204][  T593] rdac: device handler registered
[    1.687083][  T593] emc: device handler registered
[    1.719719][  T593] Loading iSCSI transport class v2.0-870.
[    1.744186][  T593] iscsi: registered transport (tcp)
[    1.799801][  T602] iscsi: registered transport (qla4xxx)
[    1.799830][  T602] QLogic iSCSI HBA Driver
[    1.815015][  T602] libcxgbi:libcxgbi_init_module: Chelsio iSCSI driver library libcxgbi v0.9.1-ko (Apr. 2015)
[    1.934556][  T602] Chelsio T4-T6 iSCSI Driver cxgb4i v0.9.5-ko (Apr. 2015)
[    1.934595][  T602] iscsi: registered transport (cxgb4i)
[    1.934605][  T602] cxgb4i:cxgb4i_init_module: cxgb4i dcb enabled.
[    1.951067][  T602] cnic: QLogic cnicDriver v2.5.22 (July 20, 2015)
[    1.963168][  T602] QLogic NetXtreme II iSCSI Driver bnx2i v2.7.10.1 (Jul 16, 2014)
[    1.963210][  T602] iscsi: registered transport (bnx2i)
[    1.991087][  T602] iscsi: registered transport (be2iscsi)
[    1.991097][  T602] In beiscsi_module_init, tt=00000000aad62d4f
[  OK  ] Finished dracut cmdline hook.
         Starting dracut pre-udev hook...
[    2.238135][  T719] device-mapper: uevent: version 1.0.3
[    2.238318][  T719] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@lists.linux.dev
[    2.383506][  T733] RPC: Registered named UNIX socket transport module.
[    2.383521][  T733] RPC: Registered udp transport module.
[    2.383527][  T733] RPC: Registered tcp transport module.
[    2.383532][  T733] RPC: Registered tcp-with-tls transport module.
[    2.383538][  T733] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.656576][  T757] raid6: vpermxor8 gen() 17955 MB/s
[    2.826573][  T757] raid6: vpermxor4 gen() 20767 MB/s
[    2.996578][  T757] raid6: vpermxor2 gen() 16500 MB/s
[    3.166595][  T757] raid6: vpermxor1 gen() 13905 MB/s
[    3.336571][  T757] raid6: altivecx8 gen() 14308 MB/s
[    3.506575][  T757] raid6: altivecx4 gen() 14172 MB/s
[    3.676596][  T757] raid6: altivecx2 gen() 11634 MB/s
[    3.846586][  T757] raid6: altivecx1 gen()  8967 MB/s
[    4.016621][  T757] raid6: int64x8  gen()  8172 MB/s
[    4.186571][  T757] raid6: int64x4  gen()  9086 MB/s
[    4.356598][  T757] raid6: int64x2  gen()  6902 MB/s
[    4.526609][  T757] raid6: int64x1  gen()  5453 MB/s
[    4.526614][  T757] raid6: using algorithm vpermxor4 gen() 20767 MB/s
[    4.526618][  T757] raid6: using intx1 recovery algorithm
[    4.527576][  T757] xor: measuring software checksum speed
[    4.527754][  T757]    8regs           : 19340 MB/sec
[    4.527951][  T757]    8regs_prefetch  : 17002 MB/sec
[    4.528124][  T757]    32regs          : 19382 MB/sec
[    4.528320][  T757]    32regs_prefetch : 17001 MB/sec
[    4.528469][  T757]    altivec         : 22586 MB/sec
[    4.528472][  T757] xor: using function: altivec (22586 MB/sec)
[    4.715395][  T757] Btrfs loaded, assert=on, zoned=yes, fsverity=yes
[  OK  ] Finished dracut pre-udev hook.
         Starting Rule-based Manager for Device Events and Files...
[  OK  ] Started Rule-based Manager for Device Events and Files.
         Starting dracut pre-trigger hook...
[  OK  ] Finished dracut pre-trigger hook.
         Starting Coldplug All udev Devices...
[  OK  ] Finished Coldplug All udev Devices.
[  OK  ] Reached target System Initialization.
[  OK  ] Reached target Basic System.
[  OK  ] Reached target Network.
[    5.078379][  T965] ibmveth 30000002 env2: renamed from eth0
[    5.079581][  T964] ibmvscsi 30000003: SRP_VERSION: 16.a
[    5.079604][  T964] ibmvscsi 30000003: Error -7 opening adapter
[    5.079614][  T964] ibmvscsi 30000003: couldn't initialize crq. rc=-1
[    5.090975][  T982] 8021q: 802.1Q VLAN Support v1.8
         Starting dracut initqueue hook...
[  OK  ] Stopped Virtual Console Setup.
         Stopping Virtual Console Setup...
         Starting Virtual Console Setup...
[  OK  ] Finished Virtual Console Setup.
[    5.237715][ T1012] Key type psk registered
[    5.249089][  T964] ibmvscsi: probe of 30000003 failed with error -1
[    5.249406][  T964] ibmvscsi 30000004: SRP_VERSION: 16.a
[    5.249516][  T964] ibmvscsi 30000004: Maximum ID: 64 Maximum LUN: 32 Maximum Channel: 3
[    5.249526][  T964] scsi host0: IBM POWER Virtual SCSI Adapter 1.5.9
[    5.249782][    C0] ibmvscsi 30000004: partner initialization complete
[    5.249815][    C1] ibmvscsi 30000004: host srp version: 16.a, host partition redcurrant-vios (1), OS 3, max io 262144
[    5.249861][    C3] ibmvscsi 30000004: Client reserve enabled
[    5.249870][    C3] ibmvscsi 30000004: sent SRP login
[    5.249895][    C4] ibmvscsi 30000004: SRP_LOGIN succeeded
[    5.276857][  T176] scsi 0:0:1:0: Direct-Access     AIX      VDASD            0001 PQ: 0 ANSI: 3
[    5.288448][  T176] sd 0:0:1:0: Attached scsi generic sg0 type 0
[    5.288528][   T10] sd 0:0:1:0: [sda] 5242880 4096-byte logical blocks: (21.5 GB/20.0 GiB)
[    5.288579][   T10] sd 0:0:1:0: [sda] Write Protect is off
[    5.288621][   T10] sd 0:0:1:0: [sda] Cache data unavailable
[    5.288626][   T10] sd 0:0:1:0: [sda] Assuming drive cache: write through
[    5.342542][   T10]  sda: sda1 sda2
[    5.342712][   T10] sd 0:0:1:0: [sda] Attached SCSI disk
[    5.675150][  T941] BTRFS: device label ROOT devid 1 transid 8533 /dev/sda2 scanned by (udev-worker) (941)

It can boot but finally failed.

ama-installer" ]"
[  229.612709] dracut-initqueue[915]: Warning: /lib/dracut/hooks/initqueue/finished/devexists-\x2fdev\x2froot.sh: "[ -e "/dev/root" ]"
[  229.613879] dracut-initqueue[915]: Warning: dracut-initqueue: starting timeout scripts
[  230.230914] dracut-initqueue[915]: Warning: dracut-initqueue: timeout, still waiting for following initqueue hooks:
[  230.231819] dracut-initqueue[915]: Warning: /lib/dracut/hooks/initqueue/finished/devexists-\x2fdev\x2fdisk\x2fby-label\x2fagama-installer.sh: "[ -e "/dev/disk/by-label/agama-installer" ]"
[  230.232676] dracut-initqueue[915]: Warning: /lib/dracut/hooks/initqueue/finished/devexists-\x2fdev\x2froot.sh: "[ -e "/dev/root" ]"
[  230.233788] dracut-initqueue[915]: Warning: dracut-initqueue: starting timeout scripts
[  230.233997] dracut-initqueue[915]: Warning: Could not boot.
         Starting Dracut Emergency Shell...
Warning: /dev/disk/by-label/agama-installer does not exist
Warning: /dev/root does not exist

Generating "/run/initramfs/rdsosreport.txt"


Entering emergency mode. Exit the shell to continue.
Type "journalctl" to view system logs.
You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot
after mounting them and attach it to a bug report.


Press Enter for maintenance
(or press Control-D to continue): 
sh-5.2# 
sh-5.2# 

Maybe it is not supported yet for net install or I missed some pamameters.

I have "redcurrant-10" for your manual test if needed. :)

Actions #5

Updated by rfan1 22 days ago · Edited

Well, I am able to start the installer on powerVM

Welcome to Agama installer version 10+418! (hvc0)

SSH host key fingerprints:
    SHA256:jmeSCW0VUX4DAMN64LYoZEMeNtFyKc6W7YgDrJeBfQw (ED25519)
    SHA256:ptt1hfVSjSNTcBQ7t4iv2Qo3k68YmGirCYZhY/Mrftk (RSA)
    SHA256:6CX2Ll0+7Bb6zgYdCIwnxo10d42A8RQud0cP6x26r2E (ECDSA)

Connect to the Agama installer using these URLs:
    https://redcurrant-10.local
    https://10.145.10.231

redcurrant-10 login:

Here comes my kernel parameters and user space commands in netboot

BOOT_IMAGE=(http,openqa.suse.de)/assets/repo/agama_rfan/boot/ppc64le/linux root=live:http://openqa.suse.de/assets/repo/agama_rfan/agama-installer.ppc64le-10.0.0-SLE-Build3.3.iso live.password=xxxxxxxx Y2DEBUG=1 plymouth.ignore-serial-consoles console=hvc0

Steps to start the installer.

  1. Extract the agama installer iso to openQA "repo" dir and copy the iso image to the same dir as well

    rfan@openqa:/var/lib/openqa/factory/repo/agama_rfan> ll
    total 588672
    -rw-r--r-- 1 root      root    602800128 Nov 11 04:02 agama-installer.ppc64le-10.0.0-SLE-Build3.3.iso
    drwxr-xr-x 4 geekotest nogroup        85 Nov  8 13:34 boot
    drwxr-xr-x 2 geekotest nogroup        34 Nov  8 13:36 LiveOS
    drwxr-xr-x 2 geekotest nogroup        34 Nov  8 13:34 ppc
    
  2. On powerVM lpar [take "redcurrant-10.oqa.prg2.suse.org" as an example], poweron the lpar and select netboot

  3. Once "grub page menu" is seen , switch to edit mode and load the kernel/initrd file as below format:

 linux (http,openqa.suse.de)/assets/repo/agama_rfan/boot/ppc64le/linux root=live:http://openqa.suse.de/assets/repo/agama_rfan/agama-installer.ppc64le-10.0.0-SLE-Build3.3.iso live.password=xxxxxxx Y2DEBUG=1 plymouth.ignore-serial-consoles console=hvc0

initrd (http,openqa.suse.de)/assets/repo/agama_rfan/boot/ppc64le/initrd

4.. boot the system [ctrl+x]

Actions #6

Updated by JERiveraMoya 22 days ago

  • Parent task changed from #163919 to #169654
Actions #7

Updated by JERiveraMoya 18 days ago

Let' have priority normal as we have the hackweek, we can increase it later.

Actions #8

Updated by JERiveraMoya 18 days ago

  • Priority changed from High to Normal
Actions #9

Updated by JERiveraMoya 8 days ago

  • Priority changed from Normal to High
Actions #10

Updated by jfernandez 8 days ago

  • Status changed from Workable to In Progress
Actions #11

Updated by JERiveraMoya about 11 hours ago

  • Tags changed from qe-yam-nov-sprint to qe-yam-dec-sprint-fy25
Actions

Also available in: Atom PDF