Issue #4577 has been updated by David Mikulski.

I have the problems. I try to install the yum package "nrpe" but one of the 
repositorys has a package called "nagios-nrpe" which makes "nrpe" obsolete. So 
non of both is installed:

Debug: Package[nrpe](provider=yum): Ensuring => present
Debug: Executing '/usr/bin/yum -d 0 -e 0 -y install nrpe'
Debug: Executing '/bin/rpm -q nrpe --nosignature --nodigest --qf %{NAME} 
%|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}
'
Error: Could not find package nrpe
Error: /Stage[main]/Nrpe/Package[nrpe]/ensure: change from absent to present 
failed: Could not find package nrpe
Notice: /Stage[main]/Nrpe/File[nrpe.init]: Dependency Package[nrpe] has 
failures: true
Warning: /Stage[main]/Nrpe/File[nrpe.init]: Skipping because of failed 
dependencies
Debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using pson
Debug: Exec[import-EPEL-6](provider=posix): Executing check 'rpm -q 
gpg-pubkey-$(echo $(gpg --throw-keyids < /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6) | 
cut --characters=11-18 | tr [A-Z] [a-z])'
Debug: Executing 'rpm -q gpg-pubkey-$(echo $(gpg --throw-keyids < 
/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6) | cut --characters=11-18 | tr [A-Z] [a-z])'
Debug: /Stage[main]/Epel/Epel::Rpm_gpg_key[EPEL-6]/Exec[import-EPEL-6]/unless: 
gpg-pubkey-0608b895-4bd22942
Notice: /Stage[main]/Nrpe/File[nrpe.conf]: Dependency Package[nrpe] has 
failures: true
Warning: /Stage[main]/Nrpe/File[nrpe.conf]: Skipping because of failed 
dependencies
Debug: /Schedule[never]: Skipping device resources because running on a host
Notice: /Stage[main]/Nrpe/File[nrpe.dir]: Dependency Package[nrpe] has 
failures: true
Warning: /Stage[main]/Nrpe/File[nrpe.dir]: Skipping because of failed 
dependencies
Notice: /Stage[main]/Nrpe/Service[nrpe]: Dependency Package[nrpe] has failures: 
true
Warning: /Stage[main]/Nrpe/Service[nrpe]: Skipping because of failed 
dependencies
Debug: /Schedule[weekly]: Skipping device resources because running on a host
Debug: /Schedule[puppet]: Skipping device resources because running on a host
Debug: Finishing transaction 70324432954020
Debug: Storing state
Debug: Stored state in 0.01 seconds
Notice: Finished catalog run in 1.88 seconds
Debug: Value of 'preferred_serialization_format' (pson) is invalid for report, 
using default (b64_zlib_yaml)
Debug: report supports formats: b64_zlib_yaml raw yaml; using b64_zlib_yaml


----------------------------------------
Bug #4577: Puppet doesn't recognize obsolete packages, errors
https://projects.puppetlabs.com/issues/4577#change-88850

* Author: Nathan Rich
* Status: Needs Decision
* Priority: Normal
* Assignee: David  Lutterkort
* Category: 
* Target version: 
* Affected Puppet version: 
* Keywords: yum
* Branch: 
----------------------------------------
First presented itself with these symptoms:
<pre>
**err: //clam/Package[clamav-update]/ensure: change from absent to present 
failed: Could not find package clamav-update**
notice: //basic_setup/File[/lumalocal]/ensure: created
warning: Value of 'preferred_serialization_format' (pson) is invalid for 
report, using default (marshal)
notice: Finished catalog run in 5.32 seconds
root@sv-tools01:~ # **yum search clam**
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
======================================================= Matched: clam 
=======================================================
...
**clamav-update**.i386 : Auto-updater for the Clam Antivirus scanner data-files
...
</pre>

After using --debug --verbose I saw this:
<pre>

debug: Puppet::Type::Package::ProviderYum: Executing '**/usr/bin/yum -d 0 -e 0 
-y install clamav-update**'
debug: Puppet::Type::Package::ProviderYum: Executing '/bin/rpm -q clamav-update 
--nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} 
%{RELEASE} %{ARCH}                                                              
                 
'                                                                               
                                             
**err: //clam/Package[clamav-update]/ensure: change from absent to present 
failed: Could not find package clamav-update**
</pre>

I then manually ran the yum command:

<pre>
# **yum -d 0 -e 0 -y install clamav-update**
Package **clamav-update is obsoleted by clamav-db**, trying to install 
clamav-db-0.96.2-2.el5.rf.i386 instead
Package **clamav-db-0.96.2-2.el5.rf.i386 already installed and latest version**
</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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to