Issue #7986 has been updated by Ben Hughes.
Status changed from Closed to Re-opened
Running 2.7.14rc3 out of source on Solaris 11, I am finding this isn't working
and it's outputting a lot of text, and not working:
<pre>
[root@mundilfari:~]# ~/src/puppet/ext/envpuppet puppet --version
4
2.7.14
[root@mundilfari:~]# ~/src/puppet/ext/envpuppet puppet agent -t --environment
sunosbase
info: Retrieving plugin
info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb
info: Loading facts in /var/lib/puppet/lib/facter/printers.rb
info: Loading facts in /var/lib/puppet/lib/facter/haszfs.rb
info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
info: Loading facts in /var/lib/puppet/lib/facter/certname.rb
info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
info: Loading facts in /var/lib/puppet/lib/facter/systemid.rb
info: Loading facts in /var/lib/puppet/lib/facter/confenv.rb
info: Loading facts in /var/lib/puppet/lib/facter/lastuser.rb
info: Caching catalog for mundilfari.dc1.puppetlabs.net
info: Applying configuration version '980e244'
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line
"archiver/gnu-tar 1.26-0.175.0.0.0.2.537
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line
"compress/bzip2 1.0.6-0.175.0.0.0.2.537
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line
"compress/gzip 1.3.5-0.175.0.0.0.2.537
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line
"compress/p7zip 9.20.1-0.175.0.0.0.2.537
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line
"compress/unzip 6.0-0.175.0.0.0.2.537
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line
"compress/zip 3.0-0.175.0.0.0.2.537
i--"
[... this goes on a few hundred times...]
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line
"x11/library/toolkit/libxaw7 1.0.9-0.175.0.0.0.0.1215
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line
"x11/library/toolkit/libxt 1.0.9-0.175.0.0.0.0.1215
i--"
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line
"shell/bash 4.1.9-0.175.0.0.0.2.537
i--"
err: /Stage[main]/Packages::Shells/Package[shell/bash]/ensure: change from
absent to present failed: Execution of '/usr/bin/pkg install shell/bash'
returned 4: No updates necessary for this image.
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line
"shell/zsh 4.3.12-0.175.0.0.0.2.537
i--"
err: /Stage[main]/Packages::Shells/Package[shell/zsh]/ensure: change from
absent to present failed: Execution of '/usr/bin/pkg install shell/zsh'
returned 4: No updates necessary for this image.
warning: Puppet::Type::Package::ProviderPkg: Failed to match 'pkg list' line
"security/sudo 1.8.1.2-0.175.0.0.0.2.537
i--"
err: /Stage[main]/Sudo/Package[security/sudo]/ensure: change from absent to
present failed: Execution of '/usr/bin/pkg install security/sudo' returned 4:
No updates necessary for this image.
notice: Finished catalog run in 178.34 seconds
</pre>
So even with the update, it still complains for the three packages
(shells/bash, shells/zsh and security/sudo). And in -t mode outputs a lot of
noise due to the Puppet.warning line on
<https://github.com/puppetlabs/puppet/pull/560/files#L0R44>
----------------------------------------
Bug #7986: Solaris 11/OpenSolaris pkg provider needs to accept exit code 4
https://projects.puppetlabs.com/issues/7986#change-61369
Author: Paul Armstrong
Status: Re-opened
Priority: Normal
Assignee:
Category: package
Target version: 2.7.14
Affected Puppet version: 2.6.8
Keywords: solaris opensolaris pkg
Branch: https://github.com/stschulte/puppet/commits/ticket/2.7.x/7986
When a package doesn't require updates, pkg returns with an exit code of 4
instead of 0.
<pre>
$ pkg install bash
No updates necessary for this image.
$ echo $?
4
</pre>
The pkg provider needs to check for exit code 4 and treat that as success for
checks.
--
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.