Bug 979966 - kickstart snippet post_install_network_config creates deprecated modprobe.conf on RHEL6
kickstart snippet post_install_network_config creates deprecated modprobe.con...
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Provisioning (Show other bugs)
Unspecified Linux
unspecified Severity unspecified
: ---
: ---
Assigned To: Michael Mráka
Lukas Pramuk
Depends On:
Blocks: sat570-blockers
  Show dependency treegraph
Reported: 2013-07-01 04:43 EDT by Ron van der Wees
Modified: 2015-01-25 17:19 EST (History)
5 users (show)

See Also:
Fixed In Version: cobbler-2.0.7-47
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-01-25 17:19:21 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
cobbler-modprobe-d.patch (2.89 KB, patch)
2013-11-12 07:06 EST, Michael Mráka
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 417243 None None None Never

  None (edit)
Description Ron van der Wees 2013-07-01 04:43:01 EDT
Description of problem:
The kickstart snippet post_install_network_config creates deprecated modprobe.conf on RHEL6

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

How reproducible:

Steps to Reproduce:
1. Create kickstart profile
2. Add a post install script
3. Add $SNIPPET('post_install_network_config')
4. kickstart a machine using this profile

Actual results:
Restarting iptables after the systems is kicstarted:
[root@hostname ~]# service iptables restart
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Unloading modules:                               [  OK  ]
iptables: Applying firewall rules: WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
                                                           [  OK  ]

Expected results:
Distinct between RHEL versions and create the proper config file:
RHEL5: /etc/modprobe.conf
RHEL6: /etc/modprobe.d/<name>.conf
to avoid warnings about the deprecated use of modprobe.conf in RHEL6.

Additional info:
Although modprobe.conf is still supported, it is depecated. Upsteam cobbler does not make a difference between RHEL versions as well:
Comment 2 Michael Mráka 2013-11-12 07:06:20 EST
Created attachment 822886 [details]

Don't create deprecated modprobe.conf on RHEL6+
Comment 3 Michael Mráka 2014-09-10 09:27:52 EDT
Patch committed to SAETLLITE-5.7 as
commit aa14047f59d01caa2fea520df4cc7ecb0d184c1e
    979966 - support modprobe.d on RHEL6
Comment 6 Lukas Pramuk 2014-10-22 08:26:26 EDT
VERIFIED. cobbler-2.0.7-48.el6sat.noarch

To hit the creation of modprobe files we need to use provisioning with set-up bonding. Bonding canbe be set up only for novirt ks profiles.
We need to provision either physical machine or flex guest using novirt ks profile.

1) @webui: navifgate to Provisioning - Kickstart - Schedule - Advanced Kickstart Configuration
(o) Create a bonded network interface after installation, use DHCP
Configure bond Name: bond0, Interfaces: select "eth0" , Options: mode=1

2) @client:
# rhn_check -vv
# shutdown -c
# reboot

3) @client: after a machine was provisioned check created files

# cat /etc/modprobe.d/post_install_network_config.conf 
options bonding max_bonds=1
alias bond0 bonding


# cat /etc/modprobe.conf
options bonding max_bonds=1
alias bond0 bonding

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