Issue #6633 has been updated by Devon Peters. Description updated Category set to mount Status changed from Unreviewed to Accepted Target version set to Telly
Able to reproduce with same behavior on Linux. ---------------------------------------- Bug #6633: Mount provider remounts unnecessarily https://projects.puppetlabs.com/issues/6633 Author: Paul Berry Status: Accepted Priority: Normal Assignee: Category: mount Target version: Telly 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.
