Project

General

Profile

Actions

action #38765

closed

[openqa][ipmi] "logs_from_installation_system" step failed due to couldn't "get_installation_partition" when the system isn't in /dev/sda partition

Added by cachen almost 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
2018-07-24
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

https://openqa.nue.suse.com/tests/1853694#step/logs_from_installation_system/11

Similar failure happens quite often on the servers, which has multi hard disks.

diff --git a/lib/ipmi_backend_utils.pm b/lib/ipmi_backend_utils.pm
index 18830256..7a78c963 100644
--- a/lib/ipmi_backend_utils.pm
+++ b/lib/ipmi_backend_utils.pm
@@ -146,7 +146,7 @@ sub umount_installation_disk {
}

sub get_installation_partition {

  • my $partition = script_output("fdisk -l | grep \"\/dev\/sda.*\*\" | cut -d ' ' -f 1");
  • my $partition = script_output("fdisk -l | grep \"\/dev\/sd.*\*\" | cut -d ' ' -f 1"); return $partition; }

This may fix the issue, but I have test in openQA.

Actions

Also available in: Atom PDF