[functional][u][tools] Proper handling of assets for svirt workers
Motivation / Observation¶
The problem with QSF shared workers is that the needed qcow2 image was missing:
was NFS-mounted into
And the image were already cleaned up from openqa.suse.de:/var/lib/openqa/share/factory.
QSF shared-workers (shared-workers.qa.suse.de) have CACHEDIRECTORY configured, but this directory is ignored by the svirt backend.
Only some changes in the test code are necessary to take CACHEDIRECTORY into account, but some configuration is needed at infrastructure level.
needs to be made available from
- AC: SUT's host machine on svirt backends (ie. s390p8.suse.de), which have a jump host (ie. shared-workers.qa.suse.de) with configured CACHEDIRECTORY, have available assets from that CACHEDIRECTORY.
#6 Updated by SLindoMansilla over 1 year ago
- Status changed from New to In Progress
- Assignee set to SLindoMansilla
As others are also affected: http://openqa-apac1.suse.de/tests/2417#step/bootloader_zkvm/6
this ticket is gaining priority:
#7 Updated by SLindoMansilla over 1 year ago
Make a separate PR for the mandatory fix: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/6320
Waiting for mgriessmeier's and nsinger's feedback.
#8 Updated by SLindoMansilla over 1 year ago
- Status changed from In Progress to New
What was done¶
The already merged fix was to look for assets in the right machine. Before, the test was looking for assets on the worker machine. On OSD it was working because the assets were NFS mounted from the webui across the worker and the SUT's host.
On shared-workers.qa.suse.de we don't have the NFS share mounted, which caused the test to not find the assets.
This is fixed now in this PR: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/6191
What is still missing?¶
The worker cache is not propagated to the svirt remote machine, so the assets are missing there.
We need to discuss how to resolve this problem.
My proposal is to NFS-mount the cache directory from the worker into the SUT's host.
After that, some changes in the test code are needed: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/6253
#16 Updated by mgriessmeier about 1 year ago
- Status changed from In Progress to Feedback
- Target version changed from Milestone 26 to Milestone 27
As spoken in the grooming meeting, we want to NFS mount the directory
mounted on s390p8 - please check if it's working as expected, then I will do the rest
#17 Updated by SLindoMansilla 11 months ago
Who should check?
I think we forgot about this ticket.
PR closed and opened draft PR: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/8378
#22 Updated by SLindoMansilla 2 months ago
Sergio, do you really plan to work on this ticket?
Also: xen and hyperv are also part of the svirt thing, i guess all this could be unified, as the directories where things are copied, is the same.
Yes, I "plan" (have the intention) to look into all tickets I have assigned, but I cannot promise any date...
So, if you feel like doing it, please take over. If not, be sure that "some day" I will continue working on this.