Project

General

Profile

Actions

action #180170

open

Add automation test to generate qcows for oemdrv test

Added by leli about 1 month ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
2025-04-08
Due date:
% Done:

0%

Estimated time:

Description

Motivation

To automate the steps to generate qcows for oemdrv test:

qemu-img create agama_oemdrv.qcow2 100M -f qcow2
modprobe nbd max_part=63
qemu-nbd -c /dev/nbd0 agama_oemdrv.qcow2
parted --script /dev/nbd0 mklabel gpt mkpart primary ext4 1MiB 100%
partprobe -s /dev/nbd0
mkfs.ext4 -L OEMDRV /dev/nbd0p1
mount /dev/nbd0p1 /mnt/xxx-ndb
cp autoinst.jsonnet /mnt/xxx-ndb/
umount /mnt/lemon-ndb
qemu-nbd --disconnect /dev/nbd0
rmmod nbd

After generate the qcows, need publish them to OSD server hdd/ folder.

Additional information

Now we have separate profile for qcow on x86_64 and aarch64, refer to https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/21758. It can be combined to one profile then one qcow for the sles_offline_oemdrv_unattended test.
To avoid leak registration code, the profiles with registration code as null, user need replace it with real code manually.

Acceptance criteria

  • AC1: Add automation test to generate qcows for oemdrv test.
  • AC2: Check the generated qcows works with oemdrv test.

Related issues 1 (0 open1 closed)

Related to qe-yam - action #176832: Create default unattended installation for offline medium without network and oemdrv detectionResolvedleli2025-02-09

Actions
Actions #1

Updated by leli about 1 month ago

  • Related to action #176832: Create default unattended installation for offline medium without network and oemdrv detection added
Actions #2

Updated by leli about 1 month ago

  • Description updated (diff)
Actions #3

Updated by leli about 1 month ago

  • Description updated (diff)
Actions

Also available in: Atom PDF