Bug 1371188

Summary: [anaconda ibft] Disabling ibft plugin by removing conf.d/10-ibft-plugin.conf stopped working in 7.3
Product: Red Hat Enterprise Linux 7 Reporter: Radek Vykydal <rvykydal>
Component: anacondaAssignee: Radek Vykydal <rvykydal>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team>
Severity: high Docs Contact:
Priority: high    
Version: 7.2CC: aloughla, atragler, bgalvani, lmiksik, lrintel, mhruscak, rkhan, rvykydal, sbueno, thaller
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-21.48.22.88-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-03 23:27:46 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 Radek Vykydal 2016-08-29 14:23:57 UTC
In Anaconda installer we need a way to disable automatic configuration of devices from iBFT (done via NM ibft plugin since 7.2). We used to do that by removing NM's 10-ibft-plugin.conf service by our service preceding NM service (based on ip=ibft boot option). This no longer works in 7.3 (eg nightly 0824, NM 1.4.0-1)  as ibft plugin seems to be turned on by default and the config file was removed from NM package?

Comment 1 Thomas Haller 2016-08-29 14:51:13 UTC
originally, the ibft plugin was handled by ifcfg-rh plugin.


Later, we split that out to a separate plugin. The default plugins on RHEL are "ifcfg-rh,ibft,keyfile". However, the user quite possibly had an explicitly configured "plugins=ifcfg-rh" in his NetworkManager.conf. Thus, to avoid problems with the split, we added 10-ibft-plugin.conf.



Now, for NetworkManager core package, we would rather not install any configuration snippets. Thus, the previous behavior was restored, by having "ifcfg-rh" automatically loading "ibft" plugin -- unless, the user explicitly configured the "ibft" or "no-ibft" plugin.

also explained in `man NetworkManager.conf`.



Thus, to disable loading of the plugin, now you'd have to do:


cat <<EOF > /etc/NetworkManager/conf.d/80-anaconda-no-ibft.conf
[main]
plugins=no-ibft
EOF



Is that an acceptable change in behavior?

Comment 2 Thomas Haller 2016-08-29 14:52:10 UTC
typo:

 [main]
-plugins=no-ibft
+plugins+=no-ibft
 EOF

Comment 4 Radek Vykydal 2016-08-30 07:32:02 UTC
Yes it is, thank you for the explanation.

Comment 5 Radek Vykydal 2016-08-30 07:59:12 UTC
https://github.com/rhinstaller/anaconda/pull/758

Comment 8 Marek Hruscak 2016-09-16 20:03:04 UTC
Issue is fixed. If ip=ibft is not added to kernel cmdline, NIC is NOT automatically set by configuration from iBFT. This behaviour is expected.
Plugin no-ibft is now added to NetworkManager in Anaconda by default.

Comment 10 errata-xmlrpc 2016-11-03 23:27:46 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/RHEA-2016-2158.html