Project

General

Profile

Actions

action #112886

closed

coordination #103323: [epic] BCI testing

Auto-update non-SLE Hosts for BCI testing

Added by jlausuch about 2 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
2022-06-22
Due date:
% Done:

0%

Estimated time:

Description

The non-SLE hosts we use to validate container images (Leap, RHEL(RES) 7.9, 8.5, Ubuntu, CentOS) are created manually from time to time and then moved to OSD so that the tests use them. They will slowly get obsoleted and updating the system fails sometimes or creates a need to reboot them.

We need to have automatic triggering of HDD creation using the existing ones, no need to do full installation (as we would need a lot of needles and new code to handle new ISOs installation), and they could be placed here: https://openqa.suse.de/group_overview/377

Acceptance criteria

Create new tests that boot the current HDD, run a system update and Publish the same HDD.


Related issues 1 (0 open1 closed)

Related to Containers - action #93588: Improve trigger create hdd scriptClosed2021-06-07

Actions
Actions #1

Updated by jlausuch about 2 years ago

  • Related to action #93588: Improve trigger create hdd script added
Actions #2

Updated by jlausuch about 2 years ago

  • Status changed from Workable to In Progress
  • Assignee set to jlausuch
Actions #3

Updated by jlausuch about 2 years ago

I have tried executing the test loading HDD_1=xyz.qcow2 publishing the same filename PUBLISH_HDD=xyz.qcow2 and it fails, so I have opted to do PUBLISH_HDD=xyz_new.qcow2.
Which means, we will need to manually override those qcows with the newly generated ones, but at least we can do it in OSD directly and the most the costly part is automated.

Proposal:
New module that runs the appropriate update command depending on the host OS.
https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/15160

Needs to go together with:
https://gitlab.suse.de/qac/qac-openqa-yaml/-/merge_requests/869

Actions #4

Updated by jlausuch about 2 years ago

  • Status changed from In Progress to Resolved

It works! https://openqa.suse.de/tests/overview?flavor=Container-Host&groupid=377&build=GM

However, to update the HDDs in OSD, it needs to be done manually.
As geekotest user, you need to do:

cd /var/lib/openqa/share/factory/hdd
mv centOS-Stream-8-x86_64-20220128-minimal_new.qcow2 ./fixed/centOS-Stream-8-x86_64-20220128-minimal.qcow2
mv opensuse-15.2-x86_64-695.1-textmode@64bit_new.qcow2 ./fixed/opensuse-15.2-x86_64-695.1-textmode@64bit.qcow2
mv opensuse-15.3-x86_64-20210906-4-textmode@64bit_new.qcow2 ./fixed/opensuse-15.3-x86_64-20210906-4-textmode@64bit.qcow2
mv opensuse-15.4-x86_64-20220626-1-textmode@64bit_new.qcow2 ./fixed/opensuse-15.4-x86_64-20220626-1-textmode@64bit.qcow2
mv sles-es-7.9_new.qcow2 ./fixed/sles-es-7.9.qcow2
mv sles-es-8.5_new.qcow2 ./fixed/sles-es-8.5.qcow2
mv ubuntu-22.04_new.qcow2 ./fixed/ubuntu-22.04.qcow2
Actions

Also available in: Atom PDF