[PUP-1030] FreeBSD: Puppet triggers loading of ZFS module Created: 2013/12/16  Updated: 2014/11/11  Resolved: 2014/11/11

Status: Closed
Project: Puppet
Component/s: Types and Providers
Affects Version/s: PUP 3.3.1, PUP 3.4.2, PUP 3.4.3
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: redmine.exporter Assignee: Unassigned
Resolution: Duplicate Votes: 2
Labels: redmine
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

FreeBSD 9.2


Issue Links:
Duplicate
duplicates FACT-633 Puppet loads ZFS module on FreeBSD wh... Closed
Template:
QA Contact: Narmadha Perumal
UX Priority: Normal

 Description   

When puppet starts the puppet ZFS provider issues the zfs command. On FreeBSD this automatically loads the ZFS kernel module. Even when ZFS is not used on that host. The provider should first check if ZFS is enabled or not. If it's not enabled it shouldn't execute any zpool or zfs commands as those will trigger the automatic load of the kernel module.



 Comments   
Comment by Remko Catersels [ 2014/02/10 ]

Issue also happens with Puppet 3.4.2.

Comment by Remko Catersels [ 2014/02/10 ]

root@w4:~ # kldstat
Id Refs Address Size Name
1 1 0xffffffff80200000 15b9440 kernel
root@w4:~ # puppet agent -v --test
Info: Retrieving plugin
Info: Loading facts in /var/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/puppet/lib/facter/concat_basedir.rb
Info: Loading facts in /var/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/puppet/lib/facter/pkgng.rb
Info: Loading facts in /var/puppet/lib/facter/role.rb
Info: Loading facts in /var/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/puppet/lib/facter/mountpoints.rb
Info: Loading facts in /var/puppet/lib/facter/pe_version.rb
/usr/local/lib/ruby/site_ruby/1.9/puppet/provider/package/freebsd.rb:18: warning: class variable access from toplevel
/usr/local/lib/ruby/site_ruby/1.9/puppet/provider/package/freebsd.rb:19: warning: class variable access from toplevel
Info: Caching catalog for w4.example.com
Info: Applying configuration version '1391422624'
Notice: Finished catalog run in 15.41 seconds
root@w4:~ # kldstat
Id Refs Address Size Name
1 9 0xffffffff80200000 15b9440 kernel
4 1 0xffffffff81812000 1583db zfs.ko
5 1 0xffffffff8196b000 56f7 opensolaris.ko

Comment by Remko Catersels [ 2014/04/07 ]

Issue still exists with Puppet 3.4.3.

Comment by Michael Moll [ 2014/09/17 ]

I think that's because of facter.

Generated at Sat Aug 08 08:36:56 PDT 2020 using Jira 8.5.2#805002-sha1:a66f9354b9e12ac788984e5d84669c903a370049.