Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change regex to search for devices #19960

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

frankenmichl
Copy link
Member

Previously, we explicitely searched for "infiniband" devices from Mellanox.
However, if we have those configured as Ethernet devices, we won't find any devices. We know we only have ConnectX-5 devices for InfiniBand (but on the same machines we have ConnectX-4 LX which only do Ethernet - so let's explicitely search for ConnectX-5 devices instead.

Previously, we explicitely searched for "infiniband" devices from
Mellanox.
However, if we have those configured as Ethernet devices, we won't
find any devices. We know we only have ConnectX-5 devices for
InfiniBand (but on the same machines we have ConnectX-4 LX which only
do Ethernet - so let's explicitely search for ConnectX-5 devices instead.
@schlad schlad merged commit cdfd608 into os-autoinst:master Aug 14, 2024
10 checks passed
@frankenmichl frankenmichl removed the request for review from jlausuch August 14, 2024 09:45
@@ -42,7 +42,7 @@ sub run {
# install dependencies
zypper_call('--quiet in pciutils mstflint', timeout => 200);

my @devices = split(' ', script_output("lspci | grep -i infiniband.*mellanox |cut -d ' ' -f 1"));
my @devices = split(' ', script_output("lspci | grep -i mellanox.*ConnectX-5 |cut -d ' ' -f 1"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say, based on the previous experience during the review. It will be better to catch whole output to lscpi and do regex in openQA. If above fails, we dont know why as lspci output is hidden in pipes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants