Bug 1374092

Summary: Does not reconfigure network as specified in kickstart if it was activated in dracut, as docs claim it does
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 25CC: anaconda-maint-list, g.kaviyarasu, jonathan, mkolman, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-12 10:16:55 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:

Description Adam Williamson 2016-09-07 23:47:09 UTC
The kickstart docs:

https://github.com/rhinstaller/pykickstart/blob/master/docs/kickstart-docs.rst#network

claim this:

"--activate

Activate this device in the installation environment.

If the device has already been activated (for example, an interface you configured with boot options so that the system could retrieve the Kickstart file) the device is reactivated to use the configuration specified in the Kickstart file."

However, it seems to be a lie. If I run an install using a kickstart that specifies a static network configuration, and uses --activate:

network --device=link --activate --bootproto=static --ip=192.168.1.105 --netmask=255.255.255.0 --gateway=192.168.1.1 --hostname=client001.happyassassin.net --nameserver=192.168.1.1

but retrieve the kickstart over the network - so dracut has to activate the adapter in order to retrieve it - anaconda does *not* reconfigure the interface as the docs claim it will. It just sticks with the configuration dracut got via DHCP. If I check the interface config while the install is in progress, I see it has a DHCP-assigned IP address, not 192.168.1.105.

This is a real problem when I'm testing FreeIPA client enrolment via kickstart; any old network configuration will suffice to retrieve the kickstart, but in order to actually enrol into the domain, we have to use a specific DNS server and hostname. So because anaconda doesn't reconfigure the network, I have to pass the same static configuration to dracut using its horrible, horrible configuration syntax, which I inevitably get wrong about ten times until I read wwoods' instructions again carefully.

I most recently re-checked this with Fedora-Server-dvd-x86_64-25-20160907.n.0.iso , but it's actually been broken for years, since I started testing FreeIPA enrolment at least. I used to think it was just an unfortunate limitation of anaconda, but the other day I noticed the docs actually claim that re-initialization should happen, which makes it a bug. ;)

Comment 1 Adam Williamson 2016-09-07 23:48:46 UTC
Looking in /etc/sysconfig/network-scripts (of the installer environment, not the installed system root) while the install is in progress, there is an ifcfg-ens3 file with the right settings in there. But I guess it's never properly loaded/applied? The NetworkManager journal output shows it basically accepting the existing DHCP configuration.

Comment 2 Fedora End Of Life 2017-11-16 19:40:25 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. 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 '25'.

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 25 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 3 Fedora End Of Life 2017-12-12 10:16:55 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.