Bug 1391453 - Network configuration device not present in ifcfg-XXX
Summary: Network configuration device not present in ifcfg-XXX
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: anaconda
Version: 7.2
Hardware: x86_64
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Anaconda Maintenance Team
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-03 11:00 UTC by G Crivellari
Modified: 2021-01-15 07:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-15 07:28:10 UTC
Target Upstream Version:


Attachments (Terms of Use)
anaconda.log (8.64 KB, text/plain)
2016-11-03 13:16 UTC, G Crivellari
no flags Details
storage.log (130.38 KB, text/plain)
2016-11-03 13:18 UTC, G Crivellari
no flags Details
ifcfg.log (4.70 KB, text/plain)
2016-11-03 13:22 UTC, G Crivellari
no flags Details
program.log (45.18 KB, text/plain)
2016-11-03 13:25 UTC, G Crivellari
no flags Details

Description G Crivellari 2016-11-03 11:00:47 UTC
Description of problem:
DEVICE property set in KS file is not written in ifcfg-<DEVICE>.
All information passed in kickstart file with field "network" are applied in the related ifcfg-<DEVICE>, except for DEVICE. This cause ifupcfg init script to fails looking for target DEVICE for passed configuration.

Version-Release number of selected component (if applicable):
21.48.22.56-1

How reproducible:
Run dracut with options net.ifnames=0 biosdevname=0 ksdevice=bootif 

Steps to Reproduce:
1. pxe installation of rhel 7.2 using ks file from http and inst.repo from nfs 
2. ks file are two: default + custom (network and disk layout)
3. NetworkManager is disabled and network enable in ks file 
4. run dracut with options net.ifnames=0 biosdevname=0 ksdevice=bootif  

Actual results:
Anaconda seems to find an eth0 net card but in file ifcfg-eth0 all properties are written except for DEVICE=etho, this mean that during network service bootstrap ifupcfg is not able to pair interface. 


Expected results:
DEVICE=eth0 should be present when NetworkManager is disabled (I guess). 

Additional info:
I've applied a work around adding DEVICE=eth0 in the %%post kickstart phase and configuration is perfectly applied on first reboot.

Comment 3 Radek Vykydal 2016-11-03 11:49:30 UTC
Please attach installation logs as separate text/plain attachments. They can be gathered (eg using scp) from shell in tty2 in installation environment from /tmp or from installed system from /var/log/anaconda. We need these log files:

anaconda.log
ifcfg.log
syslog
program.log

Also it would be helpful to try to reproduce with RHEL 7.3 release when available.

Comment 4 G Crivellari 2016-11-03 13:16:57 UTC
Created attachment 1216968 [details]
anaconda.log

Comment 5 G Crivellari 2016-11-03 13:18:11 UTC
Created attachment 1216969 [details]
storage.log

Comment 6 G Crivellari 2016-11-03 13:20:35 UTC
Created attachment 1216983 [details]
syslog

Comment 7 G Crivellari 2016-11-03 13:22:47 UTC
Created attachment 1216984 [details]
ifcfg.log

Comment 8 G Crivellari 2016-11-03 13:25:00 UTC
Created attachment 1216985 [details]
program.log

Comment 10 Radek Vykydal 2016-11-04 10:58:50 UTC
Dracut is not writing DEVICE value in ifcfg file in case kernel network device naming is used (net.ifnames=0 biosdevname=0) which makes sense as in this case the device names are not assigned predictably (can change across reboots) so the configuration is bound to MAC address. I think network service should be able to cope with such ifcfg file though and in my tests it does so.

Could you please attach the error messages you are getting when the service is unable to pair the interface?
Are we talking about network service here or some other service (ifupcfg?).
Are you installing and booting on the same system (ie the MAC address of the NIC the same)?

Also it could be helpful to attach also kickstart (at least network configuration) you are using.

Comment 12 G Crivellari 2016-11-04 11:20:39 UTC
This setup should use "net.ifnames=0 biosdevname=0" to obtain ethX naming on installation and boot. This cause all customer customizations are based on old nic naming. It's that approach still correct?

I'll attach ifupcfg error asap. 

Consider that we're using a post-installation command to add device=ethx to ifcfg-XXX file and works perfectly.

Comment 13 Robert Smith 2017-08-19 05:54:26 UTC
You can attach the installation logs as separate text/plain attachments.
http://www.followthesteps.net/hsbc-contact-phone-number/

Comment 14 Robert Smith 2018-02-07 09:59:51 UTC
Adding DEVICE=eth0 in the post kickstart phase and configuration is perfectly applied on first reboot.
http://www.fixithere.net/sky-customer-service/

Comment 16 RHEL Program Management 2021-01-15 07:28:10 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


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