-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling "pkg update -n" on Solaris too frequently causes problems with zones #9298
base: main
Are you sure you want to change the base?
Conversation
Can one of the admins verify this patch? |
…h zones On a Solaris system, running "pkg update -n" in the global zone at the same time that it is running in a non-global zone, can cause the command to fail in one or the other. If we have puppet running this command, it causes the puppet run to fail for that specific resource. This patch removes some unnecessary calls to this command, and appropriately updates rspec.
6ce24fb
to
3fd65d7
Compare
I'm a little confused by how the package { 'git':
ensure => '2.15.2-11.4.0.0.1.9.0:20180618T171726Z'
} Then the
So we never call puppet/lib/puppet/provider/package/pkg.rb Line 188 in 5503fe2
That seems wrong to me... If an exact match is specified, I would expect the provider to compare if the current value (passed in as def insync?(is)
should = @resource[:ensure]
if /^[0-9.]+(,[0-9.]+)?(-[0-9.]+)?:[0-9]+T[0-9]+Z$/.match?(should)
return is == should
else
# search for potential matches
end
end |
With regard to the recent comment about the call to
which lead me to believe that the function is not called in this module if we have an exact match in the type call for it. On checking |
What needs to happen to progress this? It seems to be dragging out. |
On a Solaris system, running "pkg update -n" in the global zone at the same time that it is running in a non-global zone, can cause the command to fail in one or the other.
If we have puppet running this command, it causes the puppet run to fail for that specific resource.
This patch removes some unnecessary calls to this command, and appropriately updates rspec.
Runs cleanly under rubocop.
Fixes #9199