Issue #1464 has been updated by bje.

Hi,

I get the same error.  '--debug --trace' output as requested.

# puppet -V
0.24.4

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 8.04
Release:        8.04
Codename:       hardy

--
        mount { "/mailspool/mail0":
                device => "172.18.22.10:/mailspool/mail0",
                blockdevice => "-",
                fstype => "nfs",
                ensure => "mounted",
                options => 
"rw,vers=3,proto=tcp,hard,intr,timeo=600,retrans=2,wsize=32768,rsize=32768",
                atboot => "true",
                pass =>  "-",
                dump => 0,
        }
--

debug: 
//Node[mx00.mail.sysarch.eu.clara.net]/claramail2_nodes/Mount[/mailspool/mail0]:
 Changing ensure
debug: 
//Node[mx00.mail.sysarch.eu.clara.net]/claramail2_nodes/Mount[/mailspool/mail0]:
 1 change(s)
debug: Puppet::Type::Mount::ProviderParsed: Executing '/bin/mount'
debug: Puppet::Type::Mount::ProviderParsed: Executing '/bin/mount'
debug: Flushing mount provider target /etc/fstab
/usr/lib/ruby/1.8/puppet/util/fileparsing.rb:95:in `join'
/usr/lib/ruby/1.8/puppet/util/fileparsing.rb:89:in `collect'
/usr/lib/ruby/1.8/puppet/util/fileparsing.rb:89:in `join'
/usr/lib/ruby/1.8/puppet/util/fileparsing.rb:341:in `to_line'
/usr/lib/ruby/1.8/puppet/util/fileparsing.rb:314:in `to_file'
/usr/lib/ruby/1.8/puppet/util/fileparsing.rb:314:in `collect'
/usr/lib/ruby/1.8/puppet/util/fileparsing.rb:314:in `to_file'
/usr/lib/ruby/1.8/puppet/provider/parsedfile.rb:290:in `to_file'
/usr/lib/ruby/1.8/puppet/provider/parsedfile.rb:86:in `flush_target'
/usr/lib/ruby/1.8/puppet/provider/parsedfile.rb:74:in `flush'
/usr/lib/ruby/1.8/puppet/provider/parsedfile.rb:72:in `each'
/usr/lib/ruby/1.8/puppet/provider/parsedfile.rb:72:in `flush'
/usr/lib/ruby/1.8/puppet/provider/parsedfile.rb:330:in `flush'
/usr/lib/ruby/1.8/puppet/provider/mount.rb:20:in `mount'
/usr/lib/ruby/1.8/puppet/type/mount.rb:52:in `set_mounted'
/usr/lib/ruby/1.8/puppet/property.rb:164:in `send'
/usr/lib/ruby/1.8/puppet/property.rb:164:in `call_valuemethod'
/usr/lib/ruby/1.8/puppet/property.rb:350:in `set'
/usr/lib/ruby/1.8/puppet/property.rb:422:in `sync'
/usr/lib/ruby/1.8/puppet/propertychange.rb:81:in `go'
/usr/lib/ruby/1.8/puppet/propertychange.rb:109:in `forward'
/usr/lib/ruby/1.8/puppet/transaction.rb:117:in `apply_changes'
/usr/lib/ruby/1.8/puppet/transaction.rb:109:in `collect'
/usr/lib/ruby/1.8/puppet/transaction.rb:109:in `apply_changes'
/usr/lib/ruby/1.8/puppet/transaction.rb:81:in `apply'
/usr/lib/ruby/1.8/puppet/transaction.rb:238:in `eval_resource'
/usr/lib/ruby/1.8/puppet/util.rb:445:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'
/usr/lib/ruby/1.8/puppet/util.rb:444:in `thinmark'
/usr/lib/ruby/1.8/puppet/transaction.rb:237:in `eval_resource'
/usr/lib/ruby/1.8/puppet/transaction.rb:309:in `evaluate'
/usr/lib/ruby/1.8/puppet/util.rb:445:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'
/usr/lib/ruby/1.8/puppet/util.rb:444:in `thinmark'
/usr/lib/ruby/1.8/puppet/transaction.rb:308:in `evaluate'
/usr/lib/ruby/1.8/puppet/transaction.rb:302:in `collect'
/usr/lib/ruby/1.8/puppet/transaction.rb:302:in `evaluate'
/usr/lib/ruby/1.8/puppet/node/catalog.rb:118:in `apply'
/usr/lib/ruby/1.8/puppet/network/client/master.rb:264:in `run'
/usr/lib/ruby/1.8/puppet/util.rb:212:in `benchmark'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'
/usr/lib/ruby/1.8/puppet/util.rb:211:in `benchmark'
/usr/lib/ruby/1.8/puppet/network/client/master.rb:263:in `run'
/usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
/usr/lib/ruby/1.8/puppet/network/client/master.rb:245:in `run'
/usr/sbin/puppetd:439
/usr/lib/ruby/1.8/puppet/util/fileparsing.rb:95:in `join'
/usr/lib/ruby/1.8/puppet/util/fileparsing.rb:89:in `collect'
/usr/lib/ruby/1.8/puppet/util/fileparsing.rb:89:in `join'
/usr/lib/ruby/1.8/puppet/util/fileparsing.rb:341:in `to_line'
/usr/lib/ruby/1.8/puppet/util/fileparsing.rb:314:in `to_file'
/usr/lib/ruby/1.8/puppet/util/fileparsing.rb:314:in `collect'
/usr/lib/ruby/1.8/puppet/util/fileparsing.rb:314:in `to_file'
/usr/lib/ruby/1.8/puppet/provider/parsedfile.rb:290:in `to_file'
/usr/lib/ruby/1.8/puppet/provider/parsedfile.rb:86:in `flush_target'
/usr/lib/ruby/1.8/puppet/provider/parsedfile.rb:74:in `flush'
/usr/lib/ruby/1.8/puppet/provider/parsedfile.rb:72:in `each'
/usr/lib/ruby/1.8/puppet/provider/parsedfile.rb:72:in `flush'
/usr/lib/ruby/1.8/puppet/provider/parsedfile.rb:330:in `flush'
/usr/lib/ruby/1.8/puppet/provider/mount.rb:20:in `mount'
/usr/lib/ruby/1.8/puppet/type/mount.rb:52:in `set_mounted'
/usr/lib/ruby/1.8/puppet/property.rb:164:in `send'
/usr/lib/ruby/1.8/puppet/property.rb:164:in `call_valuemethod'
/usr/lib/ruby/1.8/puppet/property.rb:350:in `set'
/usr/lib/ruby/1.8/puppet/property.rb:422:in `sync'
/usr/lib/ruby/1.8/puppet/propertychange.rb:81:in `go'
/usr/lib/ruby/1.8/puppet/propertychange.rb:109:in `forward'
/usr/lib/ruby/1.8/puppet/transaction.rb:117:in `apply_changes'
/usr/lib/ruby/1.8/puppet/transaction.rb:109:in `collect'
/usr/lib/ruby/1.8/puppet/transaction.rb:109:in `apply_changes'
/usr/lib/ruby/1.8/puppet/transaction.rb:81:in `apply'
/usr/lib/ruby/1.8/puppet/transaction.rb:238:in `eval_resource'
/usr/lib/ruby/1.8/puppet/util.rb:445:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'
/usr/lib/ruby/1.8/puppet/util.rb:444:in `thinmark'
/usr/lib/ruby/1.8/puppet/transaction.rb:237:in `eval_resource'
/usr/lib/ruby/1.8/puppet/transaction.rb:309:in `evaluate'
/usr/lib/ruby/1.8/puppet/util.rb:445:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'
/usr/lib/ruby/1.8/puppet/util.rb:444:in `thinmark'
/usr/lib/ruby/1.8/puppet/transaction.rb:308:in `evaluate'
/usr/lib/ruby/1.8/puppet/transaction.rb:302:in `collect'
/usr/lib/ruby/1.8/puppet/transaction.rb:302:in `evaluate'
/usr/lib/ruby/1.8/puppet/node/catalog.rb:118:in `apply'
/usr/lib/ruby/1.8/puppet/network/client/master.rb:264:in `run'
/usr/lib/ruby/1.8/puppet/util.rb:212:in `benchmark'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'
/usr/lib/ruby/1.8/puppet/util.rb:211:in `benchmark'
/usr/lib/ruby/1.8/puppet/network/client/master.rb:263:in `run'
/usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
/usr/lib/ruby/1.8/puppet/network/client/master.rb:245:in `run'
/usr/sbin/puppetd:439
err: 
//Node[mx00.mail.sysarch.eu.clara.net]/claramail2_nodes/Mount[/mailspool/mail0]/ensure:
 change from absent to mounted failed: Could not set mounted on ensure: Field 
'options' is required at /etc/puppet/manifests/development/roles.pp:107
debug: Flushing mount provider target /etc/fstab
/usr/lib/ruby/1.8/puppet/util/fileparsing.rb:95:in `join'
/usr/lib/ruby/1.8/puppet/util/fileparsing.rb:89:in `collect'
/usr/lib/ruby/1.8/puppet/util/fileparsing.rb:89:in `join'
/usr/lib/ruby/1.8/puppet/util/fileparsing.rb:341:in `to_line'
/usr/lib/ruby/1.8/puppet/util/fileparsing.rb:314:in `to_file'
/usr/lib/ruby/1.8/puppet/util/fileparsing.rb:314:in `collect'
/usr/lib/ruby/1.8/puppet/util/fileparsing.rb:314:in `to_file'
/usr/lib/ruby/1.8/puppet/provider/parsedfile.rb:290:in `to_file'
/usr/lib/ruby/1.8/puppet/provider/parsedfile.rb:86:in `flush_target'
/usr/lib/ruby/1.8/puppet/provider/parsedfile.rb:74:in `flush'
/usr/lib/ruby/1.8/puppet/provider/parsedfile.rb:72:in `each'
/usr/lib/ruby/1.8/puppet/provider/parsedfile.rb:72:in `flush'
/usr/lib/ruby/1.8/puppet/provider/parsedfile.rb:330:in `flush'
/usr/lib/ruby/1.8/puppet/metatype/evaluation.rb:54:in `flush'
/usr/lib/ruby/1.8/puppet/transaction.rb:90:in `apply'
/usr/lib/ruby/1.8/puppet/transaction.rb:238:in `eval_resource'
/usr/lib/ruby/1.8/puppet/util.rb:445:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'
/usr/lib/ruby/1.8/puppet/util.rb:444:in `thinmark'
/usr/lib/ruby/1.8/puppet/transaction.rb:237:in `eval_resource'
/usr/lib/ruby/1.8/puppet/transaction.rb:309:in `evaluate'
/usr/lib/ruby/1.8/puppet/util.rb:445:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'
/usr/lib/ruby/1.8/puppet/util.rb:444:in `thinmark'
/usr/lib/ruby/1.8/puppet/transaction.rb:308:in `evaluate'
/usr/lib/ruby/1.8/puppet/transaction.rb:302:in `collect'
/usr/lib/ruby/1.8/puppet/transaction.rb:302:in `evaluate'
/usr/lib/ruby/1.8/puppet/node/catalog.rb:118:in `apply'
/usr/lib/ruby/1.8/puppet/network/client/master.rb:264:in `run'
/usr/lib/ruby/1.8/puppet/util.rb:212:in `benchmark'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'
/usr/lib/ruby/1.8/puppet/util.rb:211:in `benchmark'
/usr/lib/ruby/1.8/puppet/network/client/master.rb:263:in `run'
/usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
/usr/lib/ruby/1.8/puppet/network/client/master.rb:245:in `run'
/usr/sbin/puppetd:439
err: Got an uncaught exception of type ArgumentError: Field 'options' is 
required
debug: Storing state
debug: Stored state in 0.15 seconds
notice: Finished catalog run in 1.31 seconds

-Jaco
----------------------------------------
Bug #1464: Mount resource complains about missing options field
http://reductivelabs.com/redmine/issues/show/1464

Author: threetee
Status: Needs more information
Priority: Normal
Assigned to: 
Category: mount
Target version: 
Complexity: Unknown
Patch: None
Affected version: 0.24.4
Keywords: 


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
-~----------~----~----~----~------~----~------~--~---

Reply via email to