Operational Defect Database

BugZero found this defect 1614 days ago.

Hewlett Packard Enterprise | a00094251en_us

Advisory: Red Hat Enterprise Linux 8 - "mlnx_tune" Script Does Not Complete on Red Hat Enterprise Linux 8 with Certain Mellanox Drivers

Last update date:

2/12/2024

Affected products:

HPE EDR InfiniBand Adapters

HPE Ethernet 10/25Gb 2-port FLR-SFP28 MCX4121A-ACFT Adapter

HPE Ethernet 10/25Gb 2-port SFP28 MCX4121A-ACUT Adapter

HPE Ethernet 100Gb 1-port QSFP28 MCX515A-CCAT Adapter

HPE Ethernet 10Gb 2-port 546FLR-SFP+ Adapter

HPE Ethernet 10Gb 2-port 546SFP+ Adapter

HPE FDR InfiniBand Adapters

HPE HDR InfiniBand Adapters

HPE QDR InfiniBand Adapters

HPE Synergy 6410C 25/50Gb Ethernet Adapter

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

On an HPE system running Red Hat Enterprise Linux 8, the "mlnx_tune" script does not complete as shown below: [root@localhost ~]# /usr/sbin/mlnx_tune Traceback (most recent call last): File "/usr/sbin/mlnx_tune", line 3454, in <module> force_sw_dependencies(options.profile) File "/usr/sbin/mlnx_tune", line 3033, in force_sw_dependencies if "mlx" not in output: TypeError: a bytes-like object is required, not 'str'

Scope

Any HPE system running Red Hat Enterprise Linux 8 and attempting to run the "mlnx_tune" script included with the following driver versions: MLNX OFED 4.7-1.0.0.1 for Red Hat Enterprise Linux 8 MLNX-OFED 4.6-1.0.1.1 for Red Hat Enterprise Linux 8 Mellanox Ethernet+RoCE driver v4.7 (mlnx-ofa_kernel-4.7) for Red Hat Enterprise Linux 8

Resolution

Red Hat Enterprise Linux 8 installs the Python 3 package by default. The current version of "mlnx_tune" script does not support Python 3. As a workaround, run the script with Python 2 after installing the Python 2 package from the OS repository as described below: Install Python 2 if not already installed, by typing the following command: # yum install python2 Note : The OS YUM repository must be setup to use the above installation command. Run the "mlnx_tune" script explicitly with Python 2 as shown in the example below: # python2 `which mlnx_tune` -p HIGH_THROUGHPUT Alternatively, the following changes can be done to the script to make it use "python2" permanently. a. Type the command # vim /usr/sbin/mlnx_tune b. The First line is #!/usr/libexec/platform-python c. Remove "!" from this line, as follows: #/usr/libexec/platform-python d. Above #/usr/libexec/platform-python, add the line #!/usr/bin/env python2.7 e. Save the file. The file should display as shown below. f. Run "mlnx_tune" as is, for example, # mlnx_tune -p HIGH_THROUGHPUT RECEIVE PROACTIVE UPDATES : Receive support alerts (such as Customer Advisories), as well as updates on drivers, software, firmware, and customer replaceable components, proactively via e-mail through HPE Subscriber's Choice. Sign up for Subscriber's Choice at the following URL: Proactive Updates Subscription Form. NAVIGATION TIP : For hints on navigating HPE.com to locate the latest drivers, patches, and other support software downloads for HPE systems and Options, refer to the Navigation Tips document . SEARCH TIP : For hints on locating similar documents on HPE.com, refer to the Search Tips Document . To search for additional advisories related to Linux, use the following search string: +Advisory +ProLiant -"Software and Drivers" +Linux

Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Unavailable

Learn More

Search:

...