Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion puppet thinks yum fails when it doesn't
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Luke Kanies  
View profile  
 More options May 20 2008, 11:02 am
From: Luke Kanies <l...@madstop.com>
Date: Tue, 20 May 2008 10:02:31 -0500
Local: Tues, May 20 2008 11:02 am
Subject: Re: [Puppet Users] puppet thinks yum fails when it doesn't
On May 20, 2008, at 6:14 AM, Rob Fay wrote:

> The package is successfully updated to 1.21 though, and the yum  
> command -
> '/usr/bin/yum -d 0 -e 0 -y install test-1.21' - also works fine with  
> returncode
> 0 and no errors when run independently. So I'm not sure why puppet  
> is reporting
> 'failed to update'.

>   Any ideas? O/S is Scientific Linux 4 (RHEL4), yum version is 2.4.2,
> puppet version is 0.24.4.

This is a result of the following code:

         is = self.query
         unless is
             raise Puppet::Error, "Could not find package %s" %  
self.name
         end

         # FIXME: Should we raise an exception even if should == :latest
         # and yum updated us to a version other than  
@param_hash[:ensure] ?
         if should && should != is[:ensure]
             raise Puppet::Error, "Failed to update to version  
#{should}, got version #{is[:ensure]} instead"
         end

I *think* that code is in place because yum always exits 0, so we need  
to do extra checking to see if it actually installed or not.

It looks like the query isn't actually running again, which is your  
problem.

Please file this as a bug; it should be relatively straightforward to  
fix.

--
Honest criticism is hard to take, particularly from a relative, a
friend, an acquaintance, or a stranger. -- Franklin P. Jones
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.