Issue #4904 has been updated by Matt Robinson. Status changed from Closed to Re-opened
Tests were written in 2.6.x that specify a behavior of mount refresh that is different than with this patch. I'm not sure what the correct behavior is, so am reverting this patch and marking the tests that motivated it as pending for the sake of getting the merge done. There is currently an RFC out to the puppet-users list for how to rework the mount type and provider so that it's saner, so this ticket can be revisited then. I've also put a reminder on our whiteboard list of tasks to revisit this so that it doesn't get lost. ---------------------------------------- Bug #4904: mount type attempting remount when ensure => present https://projects.puppetlabs.com/issues/4904 Author: John Warburton Status: Re-opened Priority: Normal Assignee: Category: Target version: Statler Affected Puppet version: 0.25.5 Keywords: mount remount tempfs communitypatch Branch: http://github.com/jes5199/puppet/tree/ticket/next/4904 I am on Solaris 10, with puppet 0.25.5, and trying to manage /tmp. Note that /tmp can't be remounted on a live system (http://wikis.sun.com/display/BigAdmin/Talking+about+RAM+disks+in+the+Solaris+OS) Thats fine, I will use "ensure => present" which according to the documentation " set to present to add to fstab but not change mount/unmount status" mount{ "/tmp": atboot => "yes", device => "swap", ensure => present, pass => "-", fstype => "tmpfs", options => "size=4096m", } Changes /etc/vfstab as expected, but yields this error: err: //solaris/Mount[/tmp]/ensure: change from mounted to present failed: Execution of '/usr/sbin/umount /tmp' returned 1: umount: /tmp busy notice: //solaris/Mount[/tmp]: Refreshing self info: Mount[/tmp](provider=parsed): Remounting err: //solaris/Mount[/tmp]: Failed to call refresh on Mount[/tmp]: Execution of '/usr/sbin/umount /tmp' returned 1: umount: /tmp busy My reading of the documentation is that the mount type shouldn't try to remount with "ensure => present" However, it seems as the provider is refreshable, that it overrides any other setting -- 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.
