Issue #10544 has been updated by Steve Garf.
Support Urls deleted (https://support.puppetlabs.com/tickets/585)
Linux host 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC
2013 x86_64 x86_64 x86_64 GNU/Linux
mount.cifs version: 5.1
Ubuntu 12.04.2 LTS precise pangolin
Puppet version: 2.7.11
My two mounts in custom module:
mount {'/home/me/d':
device => '//romulus/d$',
fstype => 'cifs',
ensure => 'mounted',
options => 'rw,_netdev,user=romulus/remus,uid=1000,gid=1000',
atboot => 'true',
}
mount {'/home/me/e':
device => '//romulus/e$',
fstype => 'cifs',
ensure => 'mounted',
options => 'rw,_netdev,user=romulus/remus,uid=1000,gid=1000',
atboot => 'true',
}
mount before running puppet:
$ mount
/dev/mapper/host-root on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/sda1 on /boot type ext2 (rw)
puppet output:
# puppet agent -t --verbose --no-daemon --debug
debug: Prefetching parsed resources for mount
debug: Puppet::Type::Mount::ProviderParsed: Executing '/bin/mount'
notice: /Stage[main]//Mount[/home/me/d]/ensure: ensure changed 'unmounted'
to 'mounted'
debug: Puppet::Type::Mount::ProviderParsed: Executing '/bin/mount -o
rw,_netdev,user=romulus/remus,uid=1000,gid=1000 /home/me/d'
debug: /Stage[main]//Mount[/home/me/d]: The container Class[Media] will
propagate my refresh event
info: /Stage[main]//Mount[/home/me/d]: Scheduling refresh of
Mount[/home/me/d]
info: Mount[/home/me/d](provider=parsed): Remounting
debug: Puppet::Type::Mount::ProviderParsed: Executing '/bin/mount -o
remount /home/me/d'
notice: /Stage[main]//Mount[/home/me/d]: Triggered 'refresh' from 1 events
debug: /Stage[main]//Mount[/home/me/d]: The container Class[Media] will
propagate my refresh event
info: /Stage[main]//Mount[/home/me/d]: Scheduling refresh of
Mount[/home/me/d]
debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using
pson
debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using
pson
notice: /Stage[main]//Mount[/home/me/e]/ensure: ensure changed 'unmounted'
to 'mounted'
debug: Puppet::Type::Mount::ProviderParsed: Executing '/bin/mount -o
rw,_netdev,user=romulus/remus,uid=1000,gid=1000 /home/me/e'
debug: /Stage[main]//Mount[/home/me/e]: The container Class[Media] will
propagate my refresh event
info: /Stage[main]//Mount[/home/me/e]: Scheduling refresh of
Mount[/home/me/e]
info: Mount[/home/me/e](provider=parsed): Remounting
debug: Puppet::Type::Mount::ProviderParsed: Executing '/bin/mount -o
remount /home/me/e'
notice: /Stage[main]//Mount[/home/me/e]: Triggered 'refresh' from 1 events
debug: /Stage[main]//Mount[/home/me/e]: The container Class[Media] will
propagate my refresh event
info: /Stage[main]//Mount[/home/me/e]: Scheduling refresh of
Mount[/home/me/e]
debug: Class[]: The container Stage[main] will propagate my refresh event
mount after running puppet:
$ mount
/dev/mapper/host-root on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/sda1 on /boot type ext2 (rw)
//romulus/d$ on /home/me/d type cifs (rw)
//romulus/d$ on /home/me/d type cifs (rw)
//romulus/e$ on /home/me/e type cifs (rw)
//romulus/e$ on /home/me/e type cifs (rw)
/etc/mtab after puppet run:
$ cat /etc/mtab
/dev/mapper/home-root / ext4 rw,errors=remount-ro 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0
none /sys/fs/fuse/connections fusectl rw 0 0
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/security securityfs rw 0 0
udev /dev devtmpfs rw,mode=0755 0 0
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=0620 0 0
tmpfs /run tmpfs rw,noexec,nosuid,size=10%,mode=0755 0 0
none /run/lock tmpfs rw,noexec,nosuid,nodev,size=5242880 0 0
none /run/shm tmpfs rw,nosuid,nodev 0 0
/dev/sda1 /boot ext2 rw 0 0
//romulus/d$ /home/me/d cifs rw 0 0
//romulus/d$ /home/me/d cifs rw 0 0
//romulus/e$ /home/me/e cifs rw 0 0
//romulus/e$ /home/me/e cifs rw 0 0
/proc/mounts after puppet run:
$ cat /proc/mounts
rootfs / rootfs rw 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1016024k,nr_inodes=254006,mode=755 0 0
devpts /dev/pts devpts
rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,relatime,size=410228k,mode=755 0 0
/dev/mapper/host-root / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
none /sys/fs/fuse/connections fusectl rw,relatime 0 0
none /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/kernel/security securityfs rw,relatime 0 0
none /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
none /run/shm tmpfs rw,nosuid,nodev,relatime 0 0
/dev/sda1 /boot ext2 rw,relatime,errors=continue 0 0
//romulus/d$ /home/me/d cifs
rw,relatime,vers=1.0,sec=ntlm,cache=loose,unc=\\romulus\d$,username=remus,domain=romulus,uid=1000,forceuid,gid=1000,forcegid,addr=172.16.0.69,file_mode=0755,dir_mode=0755,nounix,serverino,rsize=61440,wsize=65536,actimeo=1
0 0
//romulus/e$ /home/me/e cifs
rw,relatime,vers=1.0,sec=ntlm,cache=loose,unc=\\romulus\e$,username=remus,domain=romulus,uid=1000,forceuid,gid=1000,forcegid,addr=172.16.0.69,file_mode=0755,dir_mode=0755,nounix,serverino,rsize=61440,wsize=65536,actimeo=1
0 0
Also, /etc/mtab is not a symlink
$ ls -lah /etc/mtab
-rw-r--r-- 1 root root 788 Apr 6 14:36 /etc/mtab
----------------------------------------
Bug #10544: CIFS appears to mount twice
https://projects.puppetlabs.com/issues/10544#change-88848
* Author: Nathan Rich
* Status: Re-opened
* Priority: Low
* Assignee: Daniel Pittman
* Category: mount
* Target version:
* Affected Puppet version: 2.7.5
* Keywords: mount,cifs customer
* Branch:
----------------------------------------
package{'samba-client': }
file{'smb credentials':
path => '/etc/auto.smb.credentials',
source => '/puppet/files/etc/auto.smb.credentials',
}
mount{'home directory mount':
name => '/home/mydomainint',
atboot => 'true',
device => '//storage01.mydomainint.com/home',
ensure => 'mounted',
fstype => 'cifs',
options =>
'user=samba,domain=mydomainint,credentials=/etc/auto.smb.credentials',
require => [File['smb credentials'],Package['samba-client'],File['home
mount point']],
}
client:
# mount
/dev/mapper/vg_ws01-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext4 (rw)
/dev/mapper/vg_ws01-lv_home on /home type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
192.168.2.111:/nfs/puppet on /puppet type nfs (rw,addr=192.168.2.111)
# puppet apply /puppet/manifests/site.pp
notice: /Stage[main]/Basics/Mount[home directory mount]/ensure: ensure
changed 'unmounted' to 'mounted'
notice: /Stage[main]/Basics/Mount[home directory mount]: Triggered
'refresh' from 1 events
notice: /Stage[post]/Last_stage/Exec[update puppet last run]/returns:
executed successfully
notice: Finished catalog run in 3.24 seconds
# mount
/dev/mapper/vg_ws01-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext4 (rw)
/dev/mapper/vg_ws01-lv_home on /home type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
192.168.2.111:/nfs/puppet on /puppet type nfs (rw,addr=192.168.2.111)
//storage01.mydomainint.com/home/ on /home/mydomainint type cifs (rw,mand)
//storage01.mydomainint.com/home/ on /home/mydomainint type cifs (rw,mand)
# puppet --version
2.7.5
In reality the second mount seems to not be real, in that umount run twice will
work once and say not mounted the second time. No idea why this happens, but it
doesn't happen on a manual mount.
--
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://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.