[chef] Re: Forcing a downgrade/upgrade of an apt package


Chronological Thread 
  • From: Jacobo García < >
  • To: Bryan McLellan < >
  • Cc:
  • Subject: [chef] Re: Forcing a downgrade/upgrade of an apt package
  • Date: Thu, 24 Feb 2011 00:17:47 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=HpmDrLIH2WX7+wOu1y493HttEQP/gVcZNK6eMwqzNC8Qty50+tFxmMc9bpJncCko3d DjmeLe9jv0dA3fhAN0hpNwT7NOlpilobeoCUoDwJSQvykiiyQAdExcN1DeJ8NoezrdDJ zIYOGoQ85xqcCQSPzyRIJyFqKxa9IydqIfLfQ=

Hi Brian,

I did not answer sooner (my apologies) because I had to re-create the tests environment, and then I figured it out what was going on.  

It was not a chef problem at all, it was an apt problem.

According to brightbox wiki[1] to "downgrade" to regular ruby you need to do some apt-pinning. The thing got a bit more complicated since there's a bug[2] in aptitude and I had to workaround it through chef (that meant more coding and testing) but now I am able to change back and forth from regular ruby to ree with easily.

Thanks for your time.

[1] http://wiki.brightbox.co.uk/docs:ruby-enterprise
[2] https://bugs.launchpad.net/ubuntu/+source/aptitude/+bug/508545





Jacobo García López de Araujo
blog: http://robotplaysguitar.com
http://workingwithrails.com/person/13395-jacobo-garc-a



On Tue, Feb 22, 2011 at 7:15 PM, Bryan McLellan < " target="_blank"> > wrote:
On Tue, Feb 22, 2011 at 7:07 AM, Jacobo García < " target="_blank"> > wrote:
> My problem: chef does not notice the change (apt-cache show ruby gives the
> candidate though.)

Can you provide the package related output from running chef with "-l
debug"? For example:

[Tue, 22 Feb 2011 17:31:02 +0000] DEBUG: Checking apt-cache policy for
libmysqlclient-dev
[Tue, 22 Feb 2011 17:31:02 +0000] DEBUG: Current version is 5.1.41-3ubuntu12.9
[Tue, 22 Feb 2011 17:31:02 +0000] DEBUG: Current version is 5.1.41-3ubuntu12.9

Note that due to CHEF-1276 [1] the second one is the Candidate version.

Bryan

[1] http://tickets.opscode.com/browse/CHEF-1276




Archive powered by MHonArc 2.6.16.

§