action #32281
closedCan't locate images in Xen jobs
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).
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
Updated by michalnowak almost 7 years ago
- Related to action #32299: Hyper-V relies on NFS to get images added
Updated by michalnowak almost 7 years ago
Hyper-V relies on NFS server as well: #32299.
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.
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.
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.
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.
Updated by mkittler about 6 years ago
- Target version changed from Ready to Current Sprint
Updated by coolo about 6 years ago
- Target version changed from Current Sprint to Done
Updated by okurz about 6 years ago
- Related to action #44468: [qe-core] Proper handling of assets for svirt workers added