Project

General

Profile

Actions

action #32281

closed

Can't locate images in Xen jobs

Added by michalnowak almost 7 years ago. Updated about 6 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 (public) - action #32299: Hyper-V relies on NFS to get imagesRejectedokurz2018-02-26

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

Actions
Actions #1

Updated by coolo almost 7 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

Actions #2

Updated by michalnowak almost 7 years ago

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

Updated by michalnowak almost 7 years ago

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

Actions #4

Updated by coolo almost 7 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.

Actions #6

Updated by mkittler about 6 years 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.

Actions #7

Updated by mkittler about 6 years 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.

Actions #8

Updated by mkittler about 6 years 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.

Actions #9

Updated by mkittler about 6 years ago

  • Target version changed from Ready to Current Sprint
Actions #10

Updated by mkittler about 6 years ago

  • Status changed from Feedback to Resolved

PR has been merged

Actions #11

Updated by coolo about 6 years ago

  • Target version changed from Current Sprint to Done
Actions #12

Updated by okurz about 6 years ago

  • Related to action #44468: [qe-core] Proper handling of assets for svirt workers added
Actions

Also available in: Atom PDF