On Mon, 2007-12-03 at 16:02 -0800, Ryan Dooley wrote:> Anybody else noticed this:
>
> debug: package provider yum: Executing ''/usr/bin/yum -d 0 -e 0
list
> available portmap''
> err: //nfs_server/Package[portmap]: Failed to retrieve current state
> of resource: Could not get latest version: Execution of
''/usr/bin/
> yum -d 0 -e 0 list availaSearching 100% |
> =========================| 16 kB 00:03
> Error: No matching Packages to list
> notice: //nfs_server/Service[portmap]: Dependency package[portmap]
> has 1 failures
> warning: //nfs_server/Service[portmap]: Skipping because of failed
> dependencies
>
>
> But the only reason "yum list available" fails is due to yum
already
> being installed. This is with puppet 0.23.2 on fedora core 6.
That is bug http://reductivelabs.com/trac/puppet/ticket/836, which is
fixed in HEAD, but not in a release yet.
Trouble is that yum changed its behavior when you try to list a package
that has no updates available (before it just printed nothing and
exited, not it signals an error)
A really cheesy, ugly workaround might be to replace /usr/bin/yum with a
wrapper that calls the original yum and suppresses exiting with an error
code. Or try to apply the patch referenced in the ticket ...
David