Issue #6411 has been updated by Andrew Parker. Target version deleted (2.7.x)
---------------------------------------- Bug #6411: Changing mount device when ensuring unmounted causes bogus mount of new device https://projects.puppetlabs.com/issues/6411#change-80342 Author: Paul Berry Status: Accepted Priority: Normal Assignee: Category: mount Target version: Affected Puppet version: development Keywords: Branch: This behavior was observed on Mac OS X. Unsure if it exists on other OSes. First run this manifest: file { '/Volumes/NIKON_D40X': ensure => directory } mount { '/Volumes/NIKON_D40X': ensure => unmounted, device => "/dev/disk1s1", fstype => msdos, options => ro, require => File['/Volumes/NIKON_D40X'] } Then execute: mount /Volumes/NIKON_D40X (Note: this requires you to have a device plugged into /dev/disk1s1--this is the SD card reader on mac laptops) Then run this manifest: mount { '/Volumes/NIKON_D40X': ensure => unmounted, device => "/dev/disk1s2", fstype => msdos, options => ro } You get this error: info: Applying configuration version '1298412039' debug: Puppet::Type::Mount::ProviderParsed: Executing '/sbin/mount' notice: /Stage[main]//Mount[/Volumes/NIKON_D40X]/device: device changed '/dev/disk1s1' to '/dev/disk1s2' debug: Flushing mount provider target /etc/fstab debug: Finishing transaction 2164063200 info: FileBucket adding {md5}6e03fd206f67d67d645b74b0baab9a05 info: /Stage[main]//Mount[/Volumes/NIKON_D40X]: Scheduling refresh of Mount[/Volumes/NIKON_D40X] debug: Puppet::Type::Mount::ProviderParsed: Executing '/sbin/mount' info: Mount[/Volumes/NIKON_D40X](provider=parsed): Remounting debug: Puppet::Type::Mount::ProviderParsed: Executing '/sbin/umount /Volumes/NIKON_D40X' debug: Puppet::Type::Mount::ProviderParsed: Executing '/sbin/mount' debug: Puppet::Type::Mount::ProviderParsed: Executing '/sbin/mount' debug: Flushing mount provider target /etc/fstab debug: Puppet::Type::Mount::ProviderParsed: Executing '/sbin/mount -o ro /Volumes/NIKON_D40X' err: /Stage[main]//Mount[/Volumes/NIKON_D40X]: Failed to call refresh: Execution of '/sbin/mount -o ro /Volumes/NIKON_D40X' returned 1: mount: realpath /Volumes/NIKON_D40X: No such file or directory -- 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.
