Issue #7236 has been updated by Nick Bausch.
Hello,
I had a (possibly) similar issue where the nimclient command was coming back
with exit status of 1 and refusing to install a package. However, if I put the
same command on the command line the exit status was 0 and the package
installed correctly. This may be related to warning messages from my NIM
configuration, but I am unsure.
<pre>
package { "idsldap.cltbase61.rte":
ensure => installed,
source => "lpp-aix61tl7sp2",
provider => nim,
}
</pre>
<pre>
err:
/Stage[main]/S_base_aix_dev::C_packages/Package[idsldap.cltbase61.rte]/ensure:
change from absent to present failed: Execution of '/usr/sbin/nimclient -o cust
-a installp_flags=acgwXY -a lpp_source=lpp-aix61tl7sp2 -a
filesets='idsldap.cltbase61.rte'' returned 1:
+-----------------------------------------------------------------------------+
Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...
FAILURES
--------
Filesets listed in this section failed pre-installation verification
and will not be installed.
Missing Filesets
----------------
The following filesets could not be found on the installation media.
If you feel these filesets really are on the media, check for typographical
errors in the name specified or, if installing from directory, check for
discrepancies between the Table of Contents file (.toc) and the images that
reside in the directory.
'idsldap.cltbase61.rte'
<< End of Failure Section >>
WARNINGS
--------
Problems described in this section are not likely to be the source of any
immediate or serious failures, but further actions may be necessary or
desired.
Multiple install types for same fileset
---------------------------------------
The following filesets have both a base-level and an update fileset on the
installation media at the same level. Since they have the same name and
level, the last fileset on the installation media will be used.
devices.serial.sb1.X11 6.1.4.0
devices.pciex.2514310025140100.diag 6.1.4.0
devices.pci.df1080f9.rte 6.1.2.0
devices.pci.df1000fa.rte 6.1.2.0
devices.pci.14109f00.diag 6.1.2.0
devices.pci.00105000.rte 6.1.4.0
bos.terminfo.svprint.data 6.1.2.0
bos.terminfo.pc.data 6.1.4.0
bos.terminfo.dec.data 6.1.1.0
bos.mls.smit 6.1.1.0
bos.mls.adt 6.1.1.0
bos.iconv.ucs.pc 6.1.4.0
bos.iconv.ucs.ebcdic 6.1.4.0
bos.iconv.ucs.baltic 6.1.4.0
bos.iconv.ucs.Zh_CN 6.1.4.0
bos.iconv.ucs.ZH_CN 6.1.4.0
bos.adt.prt_tools 6.1.3.0
bos.adt.lib 6.1.2.0
X11.samples.lib.Core 6.1.1.0
X11.samples.apps.motifdemos 6.1.2.0
X11.fnt.ksc5601.ttf 6.1.4.0
X11.fnt.defaultFonts 6.1.2.0
X11.compat.lib.X11R3 6.1.1.0
X11.compat.lib.Motif10 6.1.1.0
X11.adt.lib 6.1.2.0
X11.adt.include 6.1.4.0
<< End of Warning Section >>
Verifying requisites...done
Results...
FAILURES
--------
Filesets listed in this section failed pre-installation verification
and will not be installed.
Missing Filesets
----------------
The following filesets could not be found on the installation media.
If you feel these filesets really are on the media, check for typographical
errors in the name specified or, if installing from directory, check for
discrepancies between the Table of Contents file (.toc) and the images that
reside in the directory.
'idsldap.cltbase61.rte'
<< End of Failure Section >>
+-----------------------------------------------------------------------------+
BUILDDATE Verification ...
+-----------------------------------------------------------------------------+
Verifying build dates...done
FILESET STATISTICS
------------------
1 Selected to be installed, of which:
1 FAILED pre-installation verification
----
0 Total to be installed
Pre-installation Failure/Warning Summary
----------------------------------------
Name Level Pre-installation Failure/Warning
-------------------------------------------------------------------------------
'idsldap.cltbase61.rte' Not found on the installation media
0042-001 nimclient: processing error encountered on "aixengsb302p":
0042-175 c_script: An unexpected result was returned by the
"nim01p:/export/nim/scripts/aixengsb302p.script" command:
See the log file:
/var/adm/ras/nim.installp
for details or use the "showlog" operation.
notice: Finished catalog run in 13.46 seconds
</pre>
My solution (for now) is to change the following line in
puppet/provider/package/nim.rb from:
<pre>
nimclient "-o", "cust", "-a", "installp_flags=acgwXY", "-a", "lpp_source=#{s
ource}", "-a", "filesets='#{pkg}'"
</pre>
to:
<pre>
cmd = [command(:nimclient)]
cmd << "-o cust"
cmd << "-a installp_flags=acgwXY"
cmd << "-a lpp_source=#{source}"
cmd << "-a filesets='#{pkg}'"
execute(cmd.join(' '))
</pre>
This seems to continue with the installation that was previously being
interpreted as failing.
<pre>
notice:
/Stage[main]/S_base_aix_dev::C_packages/Package[idsldap.cltbase61.rte]/ensure:
created
</pre>
<pre>
$ lslpp -l | grep idsldap.cltbase61
idsldap.cltbase61.adt 6.1.0.40 COMMITTED Directory Server - Base Client
idsldap.cltbase61.rte 6.1.0.40 COMMITTED Directory Server - Base Client
idsldap.cltbase61.rte 6.1.0.40 COMMITTED Directory Server - Base Client
</pre>
However, this still seems to capture an error when invalid package is given.
<pre>
err:
/Stage[main]/S_base_aix_dev::C_packages/Package[asdfa.cltbase61.rte]/ensure:
change from absent to present failed: Execution of '/usr/sbin/nimclient -o cust
-a installp_flags=acgwXY -a lpp_source=lpp-aix61tl7sp2 -a
filesets='asdfa.cltbase61.rte'' returned 1:
</pre>
Thanks,
Nick
----------------------------------------
Bug #7236: Nim Package Provider for AIX Fails to install Packages. Fix included!
https://projects.puppetlabs.com/issues/7236#change-59729
Author: Parker Johnson
Status: Requires CLA to be signed
Priority: Normal
Assignee: Parker Johnson
Category: provider
Target version:
Affected Puppet version: development
Keywords: AIX nimclient nim.rb packages
Branch:
Found a minor bug in puppet/provider/package/nim.rb. Filesets fail to install.
After removing the single quotes around the "filesets" argument to nimclient,
works fine. I have been talking with James Turnbull about this and he
suggested I file a bug. See the diff below.
<pre>
[root@autobuild-m /]# diff
/usr/local/lib/ruby/site_ruby/1.8/puppet/provider/package/nim.rb
/usr/local/lib/ruby/site_ruby/1.8/puppet/provider/package/nim.rb.orig
33c33
< nimclient "-o", "cust", "-a", "installp_flags=acgwXY", "-a",
"lpp_source=#{source}", "-a", "filesets=#{pkg}"
---
> nimclient "-o", "cust", "-a", "installp_flags=acgwXY", "-a",
>"lpp_source=#{source}", "-a", "filesets='#{pkg}'"
[root@autobuild-m /]#
</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.