Giter Club home page Giter Club logo

Comments (5)

bkonick avatar bkonick commented on July 19, 2024

I believe I am seeing this issue also. Trying to test this in kitchen and it just sits in an infinite loop of updating.

BTW I am on Linux not Windows, so this doesn't appear to be isolated to the Windows platform.

The issue lies here:

[2018-04-02T16:13:32+00:00] DEBUG: The current chef-client version is 13.8.5 and the desired version is 2.5.3
[2018-04-02T16:13:32+00:00] DEBUG: A chef-client upgrade is necessary

It is detecting the chef-client version bundled inside of chefdk instead of the actual chefdk version.

from chef_client_updater.

bkonick avatar bkonick commented on July 19, 2024

More info:

ohai chef_packages
[2018-04-02T16:17:02+00:00] INFO: The plugin path /etc/chef/ohai/plugins does not exist. Skipping...
{
  "chef": {
    "version": "13.8.5",
    "chef_root": "/opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5/lib"
  },
  "ohai": {
    "version": "13.8.0",
    "ohai_root": "/opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/ohai-13.8.0/lib/ohai"
  }
}

This seems like it will only work for chef-client rather than both chef-client and ChefDK:
https://github.com/chef-cookbooks/chef_client_updater/blob/master/providers/default.rb#L105-L107
https://github.com/chef-cookbooks/chef_client_updater/blob/master/providers/default.rb#L133-L142

from chef_client_updater.

irvingpop avatar irvingpop commented on July 19, 2024

nice investigation @bkonick - I concur that the current_version method is likely the easiest thing to change to something like:

def current_version
  node['chef_packages'][new_resource.product_name]['version']
end

from chef_client_updater.

bkonick avatar bkonick commented on July 19, 2024

Thanks @irvingpop! .. I'll play around with that function and see what I can come up with.

Seems like an easier way to go is use actual OS package names rather than this which appears to be looking at the gem. Given that the statement in the readme is support of all platforms with a chef-client package download that might work?

from chef_client_updater.

irvingpop avatar irvingpop commented on July 19, 2024

You're right, I think the Ohai packages provider may be more reliable for that.

from chef_client_updater.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.