Project

General

Profile

Actions

action #159579

closed

[MinimalVM] vmware assets copy

Added by mloviska 10 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
Start date:
2024-04-24
Due date:
% Done:

100%

Estimated time:

Description

Observation

openQA test in scenario sle-micro-6.0-Default-VMware-x86_64-slem_docker@svirt-vmware70 fails in
bootloader_svirt

This code might be cleaned up as the assets copy is handled by the svirt backend[1] and therefore this part is not used any more.

--- a/tests/installation/bootloader_svirt.pm
+++ b/tests/installation/bootloader_svirt.pm
@@ -144,13 +144,6 @@ sub run {
             if ($hddpath =~ m/vmdk\.xz$/) {
                 my $nfs_ro = $hddpath;
                 $hddpath = "$vmware_openqa_datastore/$hdd" =~ s/vmdk\.xz/vmdk/r;
-                # do nothing if the image is already unpacked in datastore
-                if ($svirt->run_cmd("test -e $hddpath", domain => 'sshVMwareServer')) {
-                    my $ret = $svirt->run_cmd("cp $nfs_ro $vmware_openqa_datastore", domain => 'sshVMwareServer');
-                    die "Image copy to datastore failed!\n" if $ret;
-                    $ret = $svirt->run_cmd("xz --decompress --keep --verbose $vmware_openqa_datastore/$hdd", domain => 'sshVMwareServer');
-                    die "Image decompress in datastore failed!\n" if $ret;
-                }
             }
             $svirt->add_disk(

[1] https://github.com/os-autoinst/os-autoinst/blob/master/consoles/sshVirtsh.pm#L330

Actions

Also available in: Atom PDF