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


Chronological Thread 
  • From: "Julian C. Dunn" < >
  • To: " " < >
  • Subject: [chef] Re: Re: Re: Resource is marked as updated, although it should not be
  • Date: Mon, 30 Jun 2014 21:41:31 -0400

I think the key is probably this line:

'MySQL-server' providing 'mysql=5.0.67-13.20.1' is already installed.

I don't know where this 'MySQL-server' package is from. Is it
Oracle's? It must 'provide' the virtual package / capability 'mysql'.

- Julian

On Mon, Jun 30, 2014 at 8:29 AM,  
< >
 wrote:
> 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.



-- 
[ Julian C. Dunn 
< >
          * Sorry, I'm    ]
[ WWW: http://www.aquezada.com/staff/julian    * only Web 1.0  ;]
gopher://sdf.org/1/users/keymaker/           * compliant!    ;]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9       ]



Archive powered by MHonArc 2.6.16.

§