Bug 964139

Summary: Ignored content in /etc/sysconfig/network-scripts/ifcfg-*
Product: [Fedora] Fedora Reporter: Thomas Schweikle <tschweikle>
Component: NetworkManagerAssignee: Dan Williams <dcbw>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 20CC: cristis53, dcbw, jklimes, tschweikle
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-17 10:21:31 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:

Description Thomas Schweikle 2013-05-17 10:57:52 UTC
Description of problem:
If "NM_CONTROLLED="no"" no address assigned to interface
If "NM_CONTROLLED="yes"" dynamic address assigned to interface. Definitiones in "/etc/sysconfig/network-scripts/ifcfg-ens33" are ignored.


Version-Release number of selected component (if applicable):
NetworkManager-0.9.9.0-2.git20130515.fc20.x86_64


How reproducible:
Always


Steps to Reproduce:
1. Install fedora latest, migrate up to fc20
2. Configure your network to use static defined address
3. 
  
Actual results:
No address for interface, or dynamically assigned address.


Expected results:
Use the definitions given in /etc/sysconfig/network-scripts/ifcfg-ens33


Additional info:

Comment 1 Fedora Admin XMLRPC Client 2013-05-20 16:33:03 UTC
The Fedora 20 component was created in error. We only create new Fedora versions when we branch a new release. These bugs are all being moved to rawhide. 

Please retarget them to 19 if they also apply to the Fedora 19 branched release. 

Thanks.

Comment 2 Dan Williams 2013-05-22 19:08:14 UTC
Can you post the contents of your /etc/sysconfig/network-scripts/ifcfg-ens33 file?

Comment 3 Cristian Sava 2013-06-09 11:50:22 UTC
I reported related/similar network problems on the test list (for F19, still present now):

https://lists.fedoraproject.org/pipermail/test/2013-May/115582.html

And here is a sample of /etc/sysconfig/network-scripts/ifcfg-... working files (that stop working correctly without NM).

[root@physics network-scripts]# cat ifcfg-enp4s0
TYPE=Ethernet
#BOOTPROTO=dhcp
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=enp4s0
UUID=4fd3476d-2423-4c26-99f9-28b5f6d18b05
ONBOOT=yes
HWADDR=00:08:54:41:46:01
PEERDNS=yes
PEERROUTES=yes
IPADDR=172.16.0.1
PREFIX=16

[root@physics network-scripts]# cat ifcfg-enp5s0
DOMAIN="central.ucv.ro"
IPV6_PEERDNS="yes"
IPV6INIT="yes"
UUID="df0a5629-9f3f-4c85-a5c0-ad72e8bbbbf6"
IPADDR0="193.x.y.130"
DNS1="193.x.y.254"
PREFIX0="26"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="yes"
HWADDR="00:25:22:F9:71:3D"
BOOTPROTO="none"
IPV6_DEFROUTE="yes"
GATEWAY0="193.x.y.129"
IPV6_AUTOCONF="yes"
IPV6_FAILURE_FATAL="no"
IPV6_PEERROUTES="yes"
TYPE="Ethernet"
ONBOOT="yes"
NAME="enp5s0"

So I had to add alias interfaces via /etc/rc.d/rc.local

[root@physics network-scripts]# cat /etc/rc.d/rc.local
#!/usr/bin/sh
ifconfig p4p1:0 192.168.1.1 netmask 255.255.255.0 up
ifconfig p5p1:0 193.x.y.142 netmask 255.255.255.192 up
ifconfig p5p1:1 193.x.y.143 netmask 255.255.255.192 up

[root@physics ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         g129.a.b.c      0.0.0.0         UG    0      0        0 p5p1
172.16.0.0      *               255.255.0.0     U     1      0        0 p4p1
192.168.1.0     *               255.255.255.0   U     0      0        0 p4p1
193.x.y.128     *               255.255.255.192 U     1      0        0 p5p1

Same problem appeared yesterday on a F19 LXDE install on VirtualBox but not on F19 Gnome on kvm.
I did not find somewhere explained what is enp4s0 (ifcfg-enp4s0) ..., why enp4s0 and not p4p1 as in F17, F18.

These bugs must be fixed before F19 is out.

Comment 4 Fedora End Of Life 2013-09-16 13:57:46 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 20 development cycle.
Changing version to '20'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora20

Comment 5 Jirka Klimes 2014-02-11 13:40:21 UTC
Still an issue?
If so please include ifcfg file and NM logs (/var/log/messages or journalctl -u NetworkManager)

Network device names are not changed by NetworkManager but rather biosdevname/systemd.
https://fedoraproject.org/wiki/Features/ConsistentNetworkDeviceNaming

Comment 6 Thomas Schweikle 2014-10-29 08:33:39 UTC
The problem seems to be that names shown by "ip addr" or "ifconfig -a" are shortened:

real name: enc1377737
name shown by "ip addr" or "ifconfig -a": enc13777

if you now try to use "ifconfig enc13777 10.10.10.10/24 up" this leads to an error message, because the device enc13777 really does not exist. Since none of the commands displays the full name you're a bit lost about what name the device really has.

At least in one case I could even give the full name to "ifconfig enc1377737 10.10.10.10/24 up" and got an error message, since the command shortened the device name to enc13777 and tried to use this one, while the system used enc1377737. This leads to situations where the device is listed giving

ip addr or
ifconfig -a

but you can't configure it, even looking up the full name, because the tools only accept device names max. eight characters in length!

Comment 7 Jirka Klimes 2014-11-10 09:16:53 UTC
There is no limitation to eight characters and I don't see any interface name truncation in ip or ifconfig commands. What versions do you use?

Interface names in linux can be up to 16 characters long and the tools show them all. (See e.g. http://books.google.cz/books?id=96V4AgAAQBAJ&pg=PA493)

So, if you have a problem with an ifcfg file, please post its content here and also logs from NetworkManager (from startup, including the activation of the file).

You can get list of all connection profiles know to NetworkManager with:
$ nmcli con
You can activate a profile with
$ nmcli con up <profile-name>

Comment 8 Fedora End Of Life 2015-05-29 09:04:05 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 9 Thomas Schweikle 2015-06-17 10:21:31 UTC
Works since some time for Fedora 20,21,rawhide