RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1899397 - ifup-ib in rdma-core-22.4-5.el7.x86_64 always shows error messages in setting device MTU wrongly.
Summary: ifup-ib in rdma-core-22.4-5.el7.x86_64 always shows error messages in setting...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rdma-core
Version: 7.9
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Honggang LI
QA Contact: Infiniband QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-19 05:35 UTC by sstcosaka
Modified: 2020-11-23 12:23 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-23 12:23:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
CentOS 17851 0 None None None 2020-11-19 05:35:44 UTC

Description sstcosaka 2020-11-19 05:35:45 UTC
Description of problem:
ifup-ib in rdma-core-22.4-5.el7.x86_64  or later always  shows error messages wrongly
 like
[root@sandy01 network-scripts]# ifup ib0
ERROR     : [/etc/sysconfig/network-scripts/ifup-ib] Error setting device ib0 MTU to 1500, using HW default.

What's wrong is only the error messages.
MTU is set as specified succesfully.

[root@sandy01 network-scripts]# ip link show ib0
4: ib0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 256
    link/infiniband 80:00:02:08:fe:80:00:00:00:00:00:00:00:02:c9:03:00:f9:2a:51 brd 00:ff:ff:ff:ff:12:40:1b:ff:ff:00:00:00:00:00:00:ff:ff:ff:ff


Version-Release number of selected component (if applicable):
# rpm -qf /etc/sysconfig/network-scripts/ifup-ib 
rdma-core-22.4-5.el7.x86_64

How reproducible:
static IP address for ib0 is better.
Because DHCP logic is more complicated.

Steps to Reproduce:
1. ifdown ib0
2. ifup ib0
3.

Actual results:
functional but with message like
ERROR     : [/etc/sysconfig/network-scripts/ifup-ib] Error setting device ib0 MTU to 1500, using HW default.


Expected results:
functional without any message as long as ifup is successful


Additional info:
- Originally, we found this problem in centOS7.8.
  And we reported  this problem to https://bugs.centos.org/view.php?id=17851
  bugs.centos.org adviced us to report this problem to bugzilla.redhat.com.
- We also checked  following RPMs and ifup-ib in them are identical.
cent7.8/rdma-core-22.4-1.el7_8.x86_64.rpm
cent7.8/rdma-core-22.4-2.el7_8.x86_64.rpm
cent7.8/rdma-core-22.4-4.el7_8.x86_64.rpm
cent7.9/rdma-core-22.4-5.el7.x86_64.rpm


- Since rdma-core-22.4-1.el7.x86_64 in 7.8.2003,
/etc/sysconfig/network-scripts/ifup-ib] in rdma-core-22.4-1.el7.x86_64 was modified.
- We want to focus on 
 secstion for setting  ib0's MTU.
    127 if [ -n "${MTU}" ]; then
    128     ip link set dev ${DEVICE} mtu ${MTU}
    129     if [ "$?" ]; then
    130         net_log $"Error setting device ${DEVICE} MTU to ${MTU}, using HW default."
    131     fi
    132 fi

return value should be treated more carefully like
[root@sandy01 network-scripts]# diff ifup-ib.sstc ifup-ib
129c129
<     if [ "$?" -gt 0 ]; then
---
>     if [ "$?" ]; then

- even return value is 0, the if [$? ] is true.

Comment 2 Honggang LI 2020-11-20 11:53:20 UTC
(In reply to sstcosaka from comment #0)

> What's wrong is only the error messages.
> MTU is set as specified succesfully.

First of all, I admit the wrong message is annoy. The problem is that rhel-7.9 is the last
RHEL7 release. We have to file z-stream bug to fix this. To file a z-stream bug, business
justification MUST be provide. So, this minor bug is unlikely get approved.

> return value should be treated more carefully like
> [root@sandy01 network-scripts]# diff ifup-ib.sstc ifup-ib
> 129c129
> <     if [ "$?" -gt 0 ]; then
> ---
> >     if [ "$?" ]; then

The patch looks good.

I'm closing this bug as WONTFIX in next week. Please let me know if you can provide business
justification for this bug before I close it.


Note You need to log in before you can comment on or make changes to this bug.