mount

16 views
Skip to first unread message

Christophe Bonnaud

unread,
Nov 18, 2009, 12:39:04 AM11/18/09
to Puppet Users
Hi,

I defined a nfs mount in puppet:

mount { "/opt/exp_soft/alice":
atboot => true,
device => "vobox-alice.sdfarm.kr:/opt/exp_soft/
alice",
fstype => "nfs",
name => "/opt/exp_soft/alice",
options => "defaults",
ensure => "mounted",
#remounts => false,
require => Package["nfs-utils","nfs-utils-lib"],
require => File["/opt/exp_soft/alice"];
}

If the partition is not mounted, puppet do his job:
puppetd --test
info: Caching catalog at /var/lib/puppet/localconfig.yaml
notice: Starting catalog run
notice: //Node[dpmp0.sdfarm.kr]/wn/mounted::wncealice/Mount[/opt/
exp_soft/alice]/ensure: ensure changed 'present' to 'mounted'
notice: //Node[dpmp0.sdfarm.kr]/wn/mounted::wncealice/Mount[/opt/
exp_soft/alice]: Refreshing self
info: Mount[/opt/exp_soft/alice](provider=parsed): Remounting
notice: Finished catalog run in 2.06 seconds


but if the partition is already mounted, puppet seems to be stuck:
puppetd --test
info: Caching catalog at /var/lib/puppet/localconfig.yaml
notice: Starting catalog run

nothing happen and i have to kill the process (which consuming lot of
ressources)... What i am doing wrong??

Thanks,

Christophe Bonnaud.

Peter Meier

unread,
Nov 23, 2009, 2:26:48 AM11/23/09
to puppet...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> nothing happen and i have to kill the process (which consuming lot of
> ressources)... What i am doing wrong??


can you run it with --debug? And can you set backup for
File["/opt/exp_soft/alice"] to false?

This sounds like puppet is trying to backup all the files in this
directory before remounting it. If I'm not wrong this might be a nasty
bug that have been discussed earlier and which should also have a ticket.

cheers pete
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksKOTYACgkQbwltcAfKi3/4PACcCOXfUpA4e96CYyn3lN91V+Fy
XMIAmwediIhHS+ukyY6pWeMzAs9EHfPM
=OLLM
-----END PGP SIGNATURE-----

Matt

unread,
Dec 17, 2009, 6:56:18 AM12/17/09
to puppet...@googlegroups.com
I can reliably recreate this issue in EC2 now, does anyone require any
debugging on it?

I've tried setting the backup => false but that doesn't work.

Thanks,

Matt

2009/11/23 Peter Meier <peter...@immerda.ch>:

> --
>
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=.
>
>
>

Dan Bode

unread,
Dec 28, 2009, 1:15:31 AM12/28/09
to puppet...@googlegroups.com
Hi,

On Thu, Dec 17, 2009 at 3:56 AM, Matt <mattm...@gmail.com> wrote:
I can reliably recreate this issue in EC2 now, does anyone require any
debugging on it?

can you run with --debug and post the output.

thanks,

Dan
 
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.



Matt

unread,
Jan 26, 2010, 3:48:45 AM1/26/10
to puppet...@googlegroups.com
> Hi,
>
> On Thu, Dec 17, 2009 at 3:56 AM, Matt <mattm...@gmail.com> wrote:
>>
>> I can reliably recreate this issue in EC2 now, does anyone require any
>> debugging on it?
>>
> can you run with --debug and post the output.
>
> thanks,
>
> Dan
>

Running puppet 0.25.1

I've got this failing again on an EC2 instance regularly. The
partition does mount, but it appears to be the check that is causing
puppetd to hang.

I've tried replacing the mount type with a exec mount, and when using
an exec i've tried using 'df' as a check, but this still hangs
puppetd.

debug: //temp/Exec[mount-/var/opt/temp]: Executing check '/bin/df
|/bin/grep /var/opt/temp'
debug: Executing '/bin/df |/bin/grep /var/opt/temp'

Anyone got any ideas on what could be causing this?

Thanks,

Matt

Matt

unread,
Jan 26, 2010, 4:07:44 AM1/26/10
to puppet...@googlegroups.com
2010/1/26 Matt <mattm...@gmail.com>:

Interestingly, if I remove all of the files on the partition that is
mounted, puppetd then executes without issue. Creating the mount
directory with Exec mkdir, or File with backup => false, makes no
difference.

Matt

unread,
Jan 26, 2010, 4:17:58 AM1/26/10
to puppet...@googlegroups.com
2010/1/26 Matt <mattm...@gmail.com>:

I used an unless in the exec mount to see if that made a difference.
unless => "/bin/cat /etc/mtab |/bin/grep /var/opt/temp",

Which still makes it hang at:

debug: //temp/Exec[mount-/var/opt/temp]: Executing check '/bin/cat
/etc/mtab |/bin/grep /var/opt/temp'
debug: Executing '/bin/cat /etc/mtab |/bin/grep /var/opt/temp

Reply all
Reply to author
Forward
0 new messages