Issue #10544 has been updated by Louis Bouchard.

File puppet_apply.log added

Hi,

This issue is also reproducible on Ubuntu/Precise 
(https://bugs.launchpad.net/ubuntu/+source/puppet/+bug/1144612) and other 
versions. Reading the bug comments, I saw that you were asking for debug 
output. Since this is easily reproducible, here is the output of a "puppet 
apply --debug" (it refused to accept --test) :

notice: /Stage[main]//Package[samba-client]/ensure: ensure changed 'purged' to 
'present'
debug: /Stage[main]//Package[samba-client]: The container Class[Main] will 
propagate my refresh event
debug: Prefetching parsed resources for mount
debug: Puppet::Type::Mount::ProviderParsed: Executing '/bin/mount'
notice: /Stage[main]//Mount[home directory mount]/ensure: ensure changed 
'unmounted' to 'mounted'
debug: Puppet::Type::Mount::ProviderParsed: Executing '/bin/mount -o 0 
/mnt/target'
debug: /Stage[main]//Mount[home directory mount]: The container Class[Main] 
will propagate my refresh event
info: /Stage[main]//Mount[home directory mount]: Scheduling refresh of 
Mount[home directory mount]
info: Mount[home directory mount](provider=parsed): Remounting
debug: Puppet::Type::Mount::ProviderParsed: Executing '/bin/mount -o remount 
/mnt/target'
notice: /Stage[main]//Mount[home directory mount]: Triggered 'refresh' from 1 
events
debug: /Stage[main]//Mount[home directory mount]: The container Class[Main] 
will propagate my refresh event
info: /Stage[main]//Mount[home directory mount]: Scheduling refresh of 
Mount[home directory mount]
debug: /Schedule[never]: Skipping device resources because running on a host
debug: /Schedule[weekly]: Skipping device resources because running on a host
debug: /Schedule[puppet]: Skipping device resources because running on a host
debug: Class[Main]: The container Stage[main] will propagate my refresh event
debug: Finishing transaction 69893283508100
debug: Storing state
debug: Stored state in 0.00 seconds
notice: Finished catalog run in 1.23 seconds
debug: Executing '/etc/puppet/etckeeper-commit-post'
debug: Finishing transaction 69893284093880
debug: Received report to process from precises-samba
debug: Processing report from precises-samba with processor 
Puppet::Reports::Store

I'm attaching the full log.

I'm more than happy to help in testing any patch that you can send my way.

Kind regards,
...Louis
----------------------------------------
Bug #10544: CIFS appears to mount twice
https://projects.puppetlabs.com/issues/10544#change-84530

Author: Nathan Rich
Status: Re-opened
Priority: Low
Assignee: Daniel Pittman
Category: mount
Target version: 
Affected Puppet version: 2.7.5
Keywords: mount,cifs
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.


Reply via email to