action #32281

Can't locate images in Xen jobs

Added by michalnowak almost 2 years ago. Updated about 1 year ago.

Status:ResolvedStart date:26/02/2018
Priority:NormalDue date:
Assignee:mkittler% Done:

0%

Category:Feature requests
Target version:Done
Difficulty:
Duration:

Description

On Xen svirt (but not on Hyper-V) we rely on finding image on the openQA worker. See bootloader_svirt:

sub copy_image {
    my ($file, $dir) = @_;
    my $basename = basename($file);
    my $path     = `find $dir -name $basename | head -n1 | tr -d '\n'`;
    diag("Path found: $path");
    type_string("# Copying image $basename...\n");
    return $path;
}

and then we copy the image via backend's add_disk's rsync command executed on the Xen host. It seems that openQA workers now don't have NFS with images attached so the find mechanism does not work: https://openqa.suse.de/tests/1502398

find: ‘/var/lib/openqa/share/factory/iso’: No such file or directory
find: ‘/var/lib/openqa/share/factory/iso/fixed’: No such file or directory
[2018-02-26T12:33:07.0446 CET] [debug] Path found: 

On Xen host we have the NFS connected so we still can use it.

I suggest to find & rsync the image in bootloader_svirt on svirt console via type_string & assert_screen (similar to https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/tests/shutdown/svirt_upload_assets.pm#L27).


Related issues

Related to openQA Project - action #32299: Hyper-V relies on NFS to get images New 26/02/2018
Related to openQA Tests - action #44468: [functional][u][labs] Proper handling of assets for svirt... Feedback 28/11/2018

History

#1 Updated by coolo almost 2 years ago

  • Target version set to Ready

Note that the drop of NFS share was just a test to find this issue. We want to get rid of NFS - and needed to know what's left

#2 Updated by michalnowak almost 2 years ago

  • Related to action #32299: Hyper-V relies on NFS to get images added

#3 Updated by michalnowak almost 2 years ago

Hyper-V relies on NFS server as well: #32299.

#4 Updated by coolo almost 2 years ago

  • Priority changed from High to Normal

we put NFS back - and have no real urgency to get rid of it, especially if it only affects remote backends and does not stop people from sharing workers.

#6 Updated by mkittler over 1 year ago

  • Assignee set to mkittler

So there's even already an issue for the troubles I had when trying to run such a job. This is also triggered when using OPENQA_BASEDIR on the worker but the default /var/lib/openqa on the svirt host because then the images are on a different locations and the search is using the wrong prefix.

#7 Updated by mkittler over 1 year ago

  • Status changed from New to In Progress

PRs: https://github.com/os-autoinst/os-autoinst/pull/1050, https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/6191

@michalnowak For verification I've just ran the same jobs as the time with positive results. There was no workaround because of OPENQA_BASEDIR required anymore.

#8 Updated by mkittler over 1 year ago

  • Status changed from In Progress to Feedback

I'm only waiting for https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/6191 to be merged.

Note that I didn't follow the suggestion in the ticket description ("I suggest to find & rsync the image in bootloader_svirt on svirt console via type_string & assert_screen"). But if I understand this correctly, the search needs to be done on the svirt host and not within the SUT. So there's no type_string or assert_screen required or even possible.

#9 Updated by mkittler over 1 year ago

  • Target version changed from Ready to Current Sprint

#10 Updated by mkittler over 1 year ago

  • Status changed from Feedback to Resolved

PR has been merged

#11 Updated by coolo about 1 year ago

  • Target version changed from Current Sprint to Done

#12 Updated by okurz about 1 year ago

  • Related to action #44468: [functional][u][labs] Proper handling of assets for svirt workers added

Also available in: Atom PDF