Hi, again, I tried as much as possible to avoid installing this patch in prod but unfortunately is necessary on my situation.
The problem now is that I'm not able to see the yum.rb change in the
clients, while in the Test environment works without issues.
My Test environment uses the same Repo as my other environments(Dev, Prod),
so I could see the client pick up the new changes and downgraded to what I
require.
--snipet--
0a1,2
> require 'puppet/util/package'
>
56a59
> operation = :install
65a69,74
>
> is = self.query
> if is && Puppet::Util::Package.versioncmp(should, is[:ensure])
< 0
> self.debug "Downgrading package #...@resource[:name]} from
version #{is[:ensure]} to #{should}"
> operation = :downgrade
> end
68c77
< output = yum "-d", "0", "-e", "0", "-y", :install, wanted
---
> output = yum "-d", "0", "-e", "0", "-y", operation, wanted
notice: /File[/var/lib/puppet/lib/puppet/provider/package/yum.rb]/checksum:
checksum changed '{md5}177e93a8fb936921a582ac9ddae93159' to
'{md5}14a80f5ee6a033ec568c617b08fd71db'
notice: /File[/var/lib/puppet/lib/puppet/provider/package/yum.rb]/source:
replacing from source puppet://
puppetclient.example.com/plugins/puppet/provider/package/yum.rb with
contents {md5}177e93a8fb936921a582ac9ddae93159
Then it downgrades the package:
--snipet--
notice:
//Node[puppetclient.example.com]/common/common::nagios/Package[nrpe_custom]/ensure:
ensure changed '01.2-20' to '01.2-10'
My Test Env is using:
puppet-0.24.8-4.el5
puppet-server-0.24.8-4.el5
While Dev/Prod uses:
puppet-server-0.24.8-1.el5.1
puppet-0.24.8-4.el5
The yum.rb remains the same on the clients when getting in contact with the
puppetmaster.
On the Dev Env I've deleted the $vardir to pull the full content, but still
gets the old yum.rb
Any ideas of what might be going wrong?
Thanks!
On Wed, Dec 23, 2009 at 11:02 AM, Tony G. <[email protected]> wrote:
> I was able to perform the downgrade with the
> patch<http://projects.reductivelabs.com/attachments/807/puppet-yum-downgrade.diff>provided
> in the feature request #2866.
>
> Dec 23 10:28:00 puppetclient puppetd[17147]: (//Node[
> puppetclient.example.com]/common/common::nagios/Package[nrpe_custom]/ensure)
> ensure changed '01.2-20' to '01.1-10'
>
> Thanks
>
>
> On Wed, Dec 23, 2009 at 11:53 AM, Silviu Paragina <[email protected]>wrote:
>
>> Hello,
>> On 23.12.2009 19:45, R.I.Pienaar wrote:
>> > hello,
>> >
>> > ----- "Silviu Paragina"<[email protected]> wrote:
>> >
>> >
>> >> AFAIK for apt/dpkg everything is fine as it is. But I might be wrong,
>> >> it wouldn't be the first time my mind plays tricks on me. :-)
>> >> Haven't used other package providers :">
>> >>
>> > downgrades fail on debian too.
>> >
>> >
>> hmmm, I thought I've done this. What can I say, except....
>>
>> ups
>>
>>
>> Silviu
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "Puppet Users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<puppet-users%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/puppet-users?hl=en.
>>
>>
>>
>
>
> --
> Tony
>
--
Tony
-- You received this message because you are subscribed to the Google Groups "Puppet Users" 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-users?hl=en.
