Project

General

Profile

Actions

action #32281

closed

Can't locate images in Xen jobs

Added by michalnowak about 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2018-02-26
Due date:
% Done:

0%

Estimated time:

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 2 (1 open1 closed)

Related to openQA Project - action #32299: Hyper-V relies on NFS to get imagesRejectedokurz2018-02-26

Actions
Related to openQA Tests - action #44468: [qe-core][functional][tools] Proper handling of assets for svirt workersWorkable2018-11-28

Actions
Actions

Also available in: Atom PDF