Eric (this will get confusing VERY quickly for others following this) -- When I try and mount the filesystem, using either just a straight "mount <targetdir>" or the full line used by puppet, I get the following:
[r...@ssf-prod-02 disk2]# /bin/mount -o \ vers=3,rsize=32768,wsize=32768,tcp,noatime,nocto,hard,intr,timeo=60,retrans=2,actimeo=30 /var/www/ mount.nfs: /var/www is already mounted or busy [r...@ssf-prod-02 disk2]# echo $? 32 Puppet sees the same thing -- with debug logging turned on: err: //mod-ssf3-testing/Mount[nfs_var_www]/ensure: change from present to mounted failed: Execution of '/bin/mount -o vers=3,rsize=32768,wsize=32768,tcp,noatime,nocto,hard,intr,timeo=60,retrans=2,actimeo=30 /var/www/' returned 32: mount.nfs: /var/www is already mounted or busy This suggests to me that the mount command itself is ok and that Puppet's handling is wrong....it's looking for a successful mount message even though it should accept "is already mounted or busy." -Eric > Eric Sorenson <[email protected]> Mar 26 10:24AM -0700 ^ > > Hi Eric - I'm using a lot of nfs mounts, albeit not on Linux, and I'm > somewhat familiar with the code underlying this activity. In debugging this I > would try to ascertain why the provider thought the filesystem was not > already mounted and therefor thought it had to change the ensure "from > present to mounted" in the first place. The code here is pretty > straightforward: > > puppet/lib/provider/mount.rb:40 > > # Is the mount currently mounted? > def mounted? > platform = Facter.value("operatingsystem") > name = resource[:name] > mounts = mountcmd.split("\n").find do |line| > case platform > when "Darwin" > line =~ / on #{name} / or line =~ %r{ on /private/var/automount#{name}} > when "Solaris" > line =~ /^#{name} on / > else > line =~ / on #{name} / > end > end > end > > So...What does your 'mount' output look like for these filesystems? Are you > changing the $name in a way that would cause it to fail the match? > > -=Eric > > > On Mar 25, 2010, at 1:03 PM, eshamow wrote: > > > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Developers" 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-dev?hl=en. > -- You received this message because you are subscribed to the Google Groups "Puppet Developers" 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-dev?hl=en.
