[chef] Re: Re: Resource is marked as updated, although it should not be


Chronological Thread 
  • From: < >
  • To:
  • Subject: [chef] Re: Re: Resource is marked as updated, although it should not be
  • Date: Mon, 30 Jun 2014 05:29:07 -0700 (PDT)

zypper search -i mysql before the chef run shows the same as after. The reason
ist, that mysql is already installed by another package. I took a look in
https://github.com/opscode/chef/blob/master/lib/chef/provider/package/zypper.rb

The command chef fires executed:
zypper --non-interactive --no-gpg-checks install --auto-agree-with-licenses
mysql=5.0.67-13.20.1
Loading repository data...
Reading installed packages...
'MySQL-server' providing 'mysql=5.0.67-13.20.1' is already installed.
Resolving package dependencies...

Nothing to do.

The return value of this command is 0. The info 'mysql=5.0.67-13.20.1' is
already installed is wrong. Installed is another version by the shown package.
You can reproduce this when you install MySQL-client-5.5.27-1.sles11.i586.rpm 
 
 MySQL-server-5.5.27-1.sles11.x86_64.rpm before the first chef run.



Archive powered by MHonArc 2.6.16.

§