action #32281
closed
Can't locate images in Xen jobs
Added by michalnowak about 6 years ago.
Updated over 5 years ago.
Category:
Feature requests
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).
- 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
- Related to action #32299: Hyper-V relies on NFS to get images added
Hyper-V relies on NFS server as well: #32299.
- 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.
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.
- Status changed from New to In Progress
- 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.
- Target version changed from Ready to Current Sprint
- Status changed from Feedback to Resolved
- Target version changed from Current Sprint to Done
- Related to action #44468: [qe-core][functional][tools] Proper handling of assets for svirt workers added
Also available in: Atom
PDF