Issue #4904 has been updated by John Warburton.
File puppet-0.25.5-mount.patch added
File puppet-2.6.2rc1-mount.patch added
Ugh. I hoped you wouldn't ask that Nigel. I am exponentially low on the ruby (&
puppet) learning curve, but here goes...
Please find attached patches for 0.25.5 and 2.6.rc2, which are essentially the
same.
I am not really happy with the logic, as 'refresh' is being triggered and my
logic is in refresh. I really don't understand enough to say no to the refresh
in newvalue(:defined)
With the same mount type at the top, I now get:
notice: /Stage[main]//Mount[/tmp]/options: options changed '-' to
'size=666m'
info: FileBucket got a duplicate file /etc/vfstab
({md5}686ba0547479fe56ab65e4a1e74f44cb)
info: /Stage[main]//Mount[/tmp]: Scheduling refresh of Mount[/tmp]
notice: /Stage[main]//Mount[/tmp]: Triggered 'refresh' from 1 events
info: /Stage[main]//Mount[/tmp]: Scheduling refresh of Mount[/tmp]
----------------------------------------
Bug #4904: mount type attempting remount when ensure => present
http://projects.puppetlabs.com/issues/4904
Author: John Warburton
Status: Accepted
Priority: Normal
Assignee:
Category:
Target version:
Affected version: 0.25.5
Keywords: mount remount tempfs
Branch:
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.