Skip to content

Commit

Permalink
Don't check URL on OSD repo before downloading guest assets as token …
Browse files Browse the repository at this point in the history
…is required
  • Loading branch information
Julie-CAO committed Feb 6, 2025
1 parent 14de8fb commit d4187bc
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions tests/virt_autotest/virt_utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -419,21 +419,6 @@ sub download_guest_assets {
# set OPENQA_URL="your_ip" on openQA web UI
my $openqa_server = get_required_var('OPENQA_URL');

# check if vm xml files have been uploaded
my @available_guests = ();
foreach my $guest (split "\n", $expected_guests) {
my $guest_asset = generate_guest_asset_name("$guest");
my $vm_disk_url = $openqa_server . "/assets/other/" . $guest_asset . '.disk';
$vm_disk_url =~ s#^(?!http://)(.*)$#http://$1#; #add 'http://' at beginning if needed.
if (head($vm_disk_url)) {
push @available_guests, $guest;
}
else {
record_info('Softfail', "$vm_disk_url not found!", result => 'softfail');
}
}
return 0 unless @available_guests;

# clean up vm stuff
my $mount_point = "/tmp/remote_guest";
script_run "[ -d $mount_point ] && { if findmnt $mount_point; then umount $mount_point; rm -rf $mount_point; fi }";
Expand All @@ -451,7 +436,7 @@ sub download_guest_assets {
# copy guest images and xml files to local
# test aborts if failing in copying all the guests
my $guest_count = 0;
foreach my $guest (@available_guests) {
foreach my $guest (split "\n", $expected_guests) {
my $guest_asset = generate_guest_asset_name("$guest");
my $remote_guest_xml_file = $guest_asset . '.xml';
my $remote_guest_disk = $guest_asset . '.disk';
Expand Down

0 comments on commit d4187bc

Please sign in to comment.