Bug 1537977

Summary: fedora-import-state not enabled in installer -> kickstart network configuration is broken
Product: [Fedora] Fedora Reporter: Radek Vykydal <rvykydal>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: anaconda-maint-list, dan, deekej, jonathan, kellin, vanmeeuwen+fedora, v.podzimek+fedora, vponcova, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-05 07:39:39 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:
Bug Depends On: 1493479    
Bug Blocks: 467765    

Description Radek Vykydal 2018-01-24 08:42:18 UTC
Description of problem:

In installer fedora-import-service is responsible for copying ifcfg files created in initramfs to installer environment after switch root.

initscripts used to enable fedora-import-service in rpm scriptlet. In F27 the service is enabled via presets mechanism (see bug 1493479) by /usr/lib/systemd/system-preset/90-default.preset from fedora-release package (the fedora-impore-service is no more enabled in F28/rawhide).

Nevertheless, anaconda never used the 90-default.preset. Instead, some required services are enabled via lorax template (https://github.com/rhinstaller/lorax/blob/master/share/templates.d/99-generic/runtime-postinstall.tmpl).

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

latest rawhide, Fedora-Rawhide-20180117.n.1

How reproducible:

Always

Steps to Reproduce:

1. Run installation with network configured in kickstart
2. At the beginning of stage 2 of installation (after Anaconda is started) look at /tmp/ifcfg.log, or into /etc/sysconfig/network-scripts and compare with /run/initramfs/state/etc/sysconfig/network-scripts

Actual results:

ifcfg files created in initramfs (eg kickstart network configuration) are not imported into Anaconda environment (root), fedora-import-state service is disabled

Expected results:

fedora-import-state is enabled, ifcfg files imported from initramfs

Additional info:

I think we can update lorax template to enable the service. Or to go deeper we could probably start using 92-anaconda.preset ?

Comment 1 Radek Vykydal 2018-01-24 08:58:47 UTC
(In reply to Radek Vykydal from comment #0)

> I think we can update lorax template to enable the service. Or to go deeper
> we could probably start using 92-anaconda.preset ?

Patch for the lorax template:
https://github.com/rhinstaller/lorax/pull/306

Comment 2 David Kaspar // Dee'Kej 2018-01-24 16:35:54 UTC
IMHO, this will become an urgent issue quite fast, once F28 Beta is out. We should fix this in BZ #1493479 ASAP.

Comment 3 Radek Vykydal 2018-01-31 13:59:20 UTC
(In reply to Radek Vykydal from comment #0)
 
> Nevertheless, anaconda never used the 90-default.preset. Instead, some
> required services are enabled via lorax template
> (https://github.com/rhinstaller/lorax/blob/master/share/templates.d/99-
> generic/runtime-postinstall.tmpl).

I was wrong here.
 
> I think we can update lorax template to enable the service. Or to go deeper
> we could probably start using 92-anaconda.preset ?

We shouldn't enable the service by lorax template. We should let the presets do the trick.

Comment 4 Radek Vykydal 2018-02-05 07:36:49 UTC
*** Bug 1538638 has been marked as a duplicate of this bug. ***

Comment 5 Radek Vykydal 2018-02-05 07:39:39 UTC
Should be fixed in latest rawhide Fedora-Rawhide-20180204.n.0.

*** This bug has been marked as a duplicate of bug 1493479 ***