Issue #1464 has been updated by Jesse Wolfe.

Status changed from Investigating to Ready for Testing
Branch set to http://github.com/jes5199/puppet/tree/ticket/0.25.x/1464


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

Author: Eric Dennis
Status: Ready for Testing
Priority: Normal
Assigned to: Jesse Wolfe
Category: mount
Target version: 0.25.3
Patch: None
Affected version: 0.25.1
Keywords: 
Branch: http://github.com/jes5199/puppet/tree/ticket/0.25.x/1464


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