Issue #6633 has been updated by Daniel Pittman. Target version changed from 3.X to 3.0.0
---------------------------------------- Bug #6633: Mount provider remounts unnecessarily https://projects.puppetlabs.com/issues/6633#change-62305 Author: Paul Berry Status: Duplicate Priority: Normal Assignee: Category: mount Target version: 3.0.0 Affected Puppet version: development Keywords: Branch: I observed this behavior on Mac OS X. I suspect a similar bug exists on other OSes. The following repro steps assume an msdos-formatted device `/dev/disk1s1`, but should be easy to adapt to other devices: * Ensure that `/dev/disk1s1` is not mounted and not listed in `/etc/fstab` * Execute the following manifest to create the mount point and fstab entry, but not actually do the mount: file { '/mnt': ensure => directory } file { '/mnt/NIKON_D40X': ensure => directory } mount { '/mnt/NIKON_D40X': ensure => present, device => "/dev/disk1s1", fstype => msdos, options => ro, require => File['/mnt/NIKON_D40X'] } * Mount the device using: mount /dev/disk1s1 * Manually edit `/etc/fstab` to remove the newly created entry. * Run the following manifest using `--debug`: mount { '/mnt/NIKON_D40X': ensure => mounted, device => "/dev/disk1s1", fstype => msdos, options => ro } * Expected behavior: Puppet rebuilds the missing fstab entry, but does not mount or unmount the device (since it is already mounted, as desired). * Observed behavior: Puppet rebuilds the missing fstab entry, then unmounts the device using `umount` and remounts using `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 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.
