Issue #1464 has been updated by eric sorenson.
Affected version changed from 0.24.7 to 0.25.1
Same stack trace, similar error on 0.25.1 -
<pre>
notice: //nfs::minimal/Nfsmount[/dmadmin]/Mount[/dmadmin]/ensure: defined
'ensure' as 'mounted'
debug: Flushing mount provider target /etc/vfstab
info: Filebucket[/var/puppet/clientbucket]: Adding
/etc/vfstab(b5d51cdacc12ba24a61c9b054ae041ec)
/usr/local/lib/ruby/site_ruby/1.8/puppet/util/fileparsing.rb:95:in `join'
/usr/local/lib/ruby/site_ruby/1.8/puppet/util/fileparsing.rb:89:in `collect'
/usr/local/lib/ruby/site_ruby/1.8/puppet/util/fileparsing.rb:89:in `join'
/usr/local/lib/ruby/site_ruby/1.8/puppet/util/fileparsing.rb:341:in `to_line'
/usr/local/lib/ruby/site_ruby/1.8/puppet/util/fileparsing.rb:314:in `to_file'
/usr/local/lib/ruby/site_ruby/1.8/puppet/util/fileparsing.rb:314:in `collect'
/usr/local/lib/ruby/site_ruby/1.8/puppet/util/fileparsing.rb:314:in `to_file'
/usr/local/lib/ruby/site_ruby/1.8/puppet/provider/parsedfile.rb:316:in `to_file'
/usr/local/lib/ruby/site_ruby/1.8/puppet/provider/parsedfile.rb:102:in
`flush_target'
/usr/local/lib/ruby/site_ruby/1.8/puppet/provider/parsedfile.rb:74:in `flush'
/usr/local/lib/ruby/site_ruby/1.8/puppet/provider/parsedfile.rb:72:in `each'
/usr/local/lib/ruby/site_ruby/1.8/puppet/provider/parsedfile.rb:72:in `flush'
/usr/local/lib/ruby/site_ruby/1.8/puppet/provider/parsedfile.rb:356:in `flush'
/usr/local/lib/ruby/site_ruby/1.8/puppet/type.rb:745:in `flush'
[ ... deletia ... ]
err: Got an uncaught exception of type ArgumentError: Field 'blockdevice' is
required
</pre>
What's odd is that it's only one of a number of mounts that are going through
the same define that has trouble.
<pre>
define nfsmount($device) {
# this define wraps the 'mount' type with defaults for our environment
mount { $name:
device => $device,
ensure => "mounted",
fstype => "nfs",
options => $operatingsystem ? {
solaris => "rw,hard,proto=tcp,vers=3",
darwin => $operatingsystemrelease ? {
"8.9.1" => "rw,nosuid,tcp,vers=3,grpid",
default => "rw,nosuid,tcp,vers=3",
}
},
}
}
class nfs::minimal {
case $environment {
int2: { $filer = "int2-filer01a" }
qa3: { $filer = "qa3-filer01" }
}
case $environment {
int2,qa3: {
nfsmount { "/nas/logs": device => "$filer:/vol/vol1/logs", }
nfsmount { "/nas/spool": device => "$filer:/vol/vol1/spool", }
# this one has trouble
# nfsmount { "/dmadmin": device => "$filer:/vol/vol1/dmadmin", }
}
}
}
</pre>
----------------------------------------
Bug #1464: Mount resource complains about missing options field
http://projects.reductivelabs.com/issues/1464
Author: Eric Dennis
Status: Needs more information
Priority: Normal
Assigned to:
Category: mount
Target version:
Patch: None
Affected version: 0.25.1
Keywords:
Branch:
I'm having some problems getting puppet to mount NFS exports.
Here's the relevant portion of my config file:
class base {
# Set up the NFS mount
file { "/mnt/point/here":
ensure => directory,
}
mount {
"/mnt/point/here":
require => File["/mnt/point/here"],
device => "device:/nfs/export",
ensure => mounted,
fstype => nfs,
options => 'defaults',
atboot => true
}
}
The above code gives this message:
Could not set mounted on ensure: Field 'options' is required at /etc/
puppet/manifests/classes/base.pp:20
Clearly, the options field is there, so I'm a little confused by the
above message. Interestingly, when I run the puppet client on a
separate host, the behavior is as expected:
Jul 22 07:53:48 otherhost puppetd[26298]: Starting Puppet client
version 0.24.4
Jul 22 07:53:52 otherhost puppetd[26298]: Starting catalog run
Jul 22 07:53:55 otherhost puppetd[26298]: (//Node[default]/base/Mount[/
mnt/point/here]/ensure) ensure changed 'present' to 'mounted'
Jul 22 07:53:55 otherhost puppetd[26298]: (//Node[default]/base/Mount[/
mnt/point/here]) Refreshing self
Jul 22 07:53:58 otherhost puppetd[26298]: Finished catalog run in 6.28
seconds
Here's the log entry from the non-working host in context (the non-
working host is also the puppetmaster server, hence the message from
puppetmasterd mixed in):
Jul 22 01:01:44 host puppetd[19474]: Starting Puppet client version
0.24.4
Jul 22 01:01:47 host puppetmasterd[17374]: Compiled configuration for
host.xyz.com in 1.79 seconds
Jul 22 01:01:48 host puppetd[19474]: Starting catalog run
Jul 22 01:01:52 host puppetd[19474]: (//Node[default]/base/Mount[/mnt/
point/here]/ensure) change from absent to mounted failed: Could not
set mounted on ensure: Field 'options' is required at /etc/puppet/
manifests/classes/base.pp:20
Jul 22 01:01:52 host puppetd[19474]: Got an uncaught exception of type
ArgumentError: Field 'options' is required
Jul 22 01:01:52 host puppetd[19474]: Finished catalog run in 3.63
seconds
Both machines are running CentOS 5.2 with the EPEL RPM version of
puppet, version 0.24.4.
[host] $ rpm -qa | grep puppet
puppet-server-0.24.4-1.el5
puppet-0.24.4-1.el5
[host] $ uname -a
Linux host.xyz.com 2.6.18-92.1.6.el5 #1 SMP Wed Jun 25 13:49:24 EDT
2008 i686 i686 i386 GNU/Linux
[otherhost] $ rpm -qa | grep puppet
puppet-0.24.4-1.el5
[otherhost] $ uname -a
Linux otherhost.xyz.com 2.6.18-92.el5 #1 SMP Tue Jun 10 18:49:47 EDT
2008 i686 i686 i386 GNU/Linux
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://reductivelabs.com/redmine/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.