Issue #4279 has been updated by Stefan Schulte.
James Turnbull wrote:
> Hi - can you show me full output of a run with --trace --debug and
> appropriate data on your mounts? Thanks
I have the same Problem (2.6.0) and I found out that it is a problem in
puppet/provider/mount.rb
mount on HP-UX gives you:
<pre>
/foo on server:/foo
</pre>
but mount.rb searches for `'on /foo'` (which matches on Linux) instead of
`'/foo on'`. I could fix that by adding another case at the end of the file
wich is a duplicate of the Solariscase:
<pre>
mounts = mountcmd.split("\n").find do |line|
case platform
when "Darwin"
line =~ / on #{name} / or line =~ %r{ on /private/var/automount#{name}}
when "Solaris"
line =~ /^#{name} on /
+ when "HP-UX"
+ line =~ /^#{name} on /
else
line =~ / on #{name} /
end
end
end
</pre>
----------------------------------------
Bug #4279: HP-UX Remount Error
http://projects.puppetlabs.com/issues/4279
Author: David Britton
Status: Needs more information
Priority: Normal
Assigned to:
Category: HP-UX
Target version:
Affected version: 0.25.5
Keywords:
Branch:
The following error shows up in my hp-ux syslog:
<pre>
Jul 17 22:12:32 SVR104244 puppetd[24639]: (//log::client/Mount[/logs]/ensure)
change from present to mounted failed: Execution of '/sbin/mount -o defaults
/logs' returned 1: mount: log.foo.net:/srv/cast_logs is already mounted on /logs
</pre>
Which it is already mounted, so the message is right, just not sure why it's
trying to mount it again? The same module is working fine on my RHEL boxes.
I'm trying to online some HP-UX systems into puppet, and so far this is the
only thing that has caused me trouble. The initial mount and fstab
modification worked just fine. I even tried adding 'remount' to the 'options',
and it worked! of course, it doesn't work on boot, or if it's not mounted. :)
There is no functional problem here, but it of course shows up as an error on
the report, which is not really acceptable.
<pre>
class logs::client {
file { "/logs":
ensure => directory,
owner => "root",
group => "root",
mode => 0777,
}
mount { "/logs":
device => "logs.foo.net:/srv/cast_logs",
fstype => "nfs",
ensure => "mounted",
options => "defaults",
remounts => "true",
atboot => true,
require => File["/logs"],
}
}
</pre>
--
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.