Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1223524

Summary: error return from iwconfig has changed
Product: Red Hat Enterprise Linux 7 Reporter: Alfred Ganz <alfred-ganz+bugzilla>
Component: initscriptsAssignee: initscripts Maintenance Team <initscripts-maint-list>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: high Docs Contact:
Priority: high    
Version: 7.1CC: alfred-ganz+bugzilla, fleitner, jscotka, lnykryn
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: initscripts-9.49.26-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 11:33:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
a patch for /etc/sysconfig/network-scripts/network-functions none

Description Alfred Ganz 2015-05-20 18:25:15 UTC
Created attachment 1027825 [details]
a patch for /etc/sysconfig/network-scripts/network-functions

Description of problem:
running: "systemctl start network" without NetworkManager installed
fails for non-wireless interfaces because is_wireless_device()
in /etc/sysconfig/network-scripts/network-functions
doesn't return a correct answer for non-wireless interfaces.
This is because iwconfig seems to return "Not connected."
instead of "no wireless extensions" for non-wireless interfaces.

Version-Release number of selected component (if applicable):
This applies to 7.0 and 7.1

How reproducible:
always

Steps to Reproduce:
1) disable NetworkManager
2) disable network
3) define a non-wireless interface with ifcfg-* that has a fixed IP_ADDR
4) reboot
5) start network manually

Actual results:
creating the non-wireless interface fails

Expected results:
the non-wireless is created

Additional info:
The included patch works with the new iwconfig return for a non-wireless
interface while still supporting the older return

Comment 5 Flavio Leitner 2015-08-04 19:43:33 UTC
This actually breaks ifup on vlans.
p5p1 is a ethernet device and p5p1.200 is the vlan on top of it:

initscripts-9.49.26-1.el7.x86_64
iw-3.10-6.el7.x86_64

# /usr/sbin/iw dev p5p1.200 info ; echo $?
nl80211 not found.
1

[...]
+ REALDEVICE=p5p1.200
+ '[' -z '' ']'
+ SYSCTLDEVICE=p5p1/200
+ '[' p5p1.200 '!=' p5p1.200 ']'
+ ISALIAS=no
+ is_false no
+ case "$1" in
+ return 0
+ '[' none = bootp -o none = dhcp ']'
+ is_available p5p1.200
+ '[' -z p5p1.200 ']'
+ '[' -d /sys/class/net/p5p1.200 ']'
+ return 0
+ '[' -n '' ']'
+ '[' OVSPort = Bridge ']'
+ '[' OVSPort = Tap ']'
+ '[' -n '' ']'
+ is_available_wait p5p1.200
+ '[' -z p5p1.200 ']'
+ local retry=
+ is_available p5p1.200
+ '[' -z p5p1.200 ']'
+ '[' -d /sys/class/net/p5p1.200 ']'
+ return 0
+ ret=0
+ '[' 00 -ne 1 ']'
+ return 0
+ '[' -n '' ']'
+ '[' -n '' ']'
+ is_wireless_device p5p1.200
+ '[' -x /usr/sbin/iw ']'
+ LC_ALL=C
+ /usr/sbin/iw dev p5p1.200 info
+ return 0
+ . ./ifup-wireless
++ IW=iw
++ '[' p5p1.200 -a '' ']'
++ exit

As a result the VLAN device remains DOWN.
fbl

Comment 7 Flavio Leitner 2015-08-06 17:52:20 UTC
Patch looks good.
...
+ '[' -n '' ']'
+ '[' -n '' ']'
+ is_wireless_device p5p1.200
+ '[' -x /usr/sbin/iw ']'
+ LC_ALL=C
+ /usr/sbin/iw dev p5p1.200 info
+ return 1
+ '[' -n '' ']'
+ '[' '' = yes -a no = no -a '' '!=' '' ']'
+ '[' no = no ']'
+ is_bonding_device p5p1.200
...

Thanks

Comment 9 errata-xmlrpc 2015-11-19 11:33:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2134.html