Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test-kitchen dependency version is too old #40

Open
zedtux opened this issue Jul 27, 2019 · 9 comments · May be fixed by #43
Open

test-kitchen dependency version is too old #40

zedtux opened this issue Jul 27, 2019 · 9 comments · May be fixed by #43

Comments

@zedtux
Copy link

zedtux commented Jul 27, 2019

It's impossible to use the latest version of this gem:

  In Gemfile:
    test-kitchen

    kitchen-inspec was resolved to 1.1.0, which depends on
      test-kitchen (>= 1.6, < 3)

    kitchen-nodes (~> 0.9.1) was resolved to 0.9.1, which depends on
      test-kitchen (~> 1.13)

    kitchen-vagrant was resolved to 1.5.2, which depends on
      test-kitchen (>= 1.4, < 3)

Without setting a version, it installs the version 0.2.0.dev.1 which doesn't work with actual test-kitchen version.

@Tcharl
Copy link

Tcharl commented Jul 27, 2019

It compiles if I remove the Gemfile lock.

However, the API has changed: when I execute kitchen converge with this provisionner, I have:


>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 2 actions failed.
>>>>>>     Failed to complete #converge action: [undefined method `node_session' for #<Kitchen::Transport::Ssh::Connection:0x00007fd576e31d60>] on glusterstorage0-f-29
>>>>>>     Failed to complete #converge action: [undefined method `node_session' for #<Kitchen::Transport::Ssh::Connection:0x00007fd57bfe9158>] on glusterstorage1-f-29
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

Any Rubyist/Chefist to fix ? I'm just discovering the ecosystem (I'm from Java) and do not understand thinks so well: dependency management is one of the aspects I do not understand

@zedtux
Copy link
Author

zedtux commented Jul 28, 2019

I just removed that gem and I'm using the chef_zero driver with node JSON files at test/fixtures/nodes/ and in my .kitchen.yml file I'm passing:

provisioner:
  nodes_path: test/fixtures/nodes

@Tcharl
Copy link

Tcharl commented Jul 28, 2019

However, it constraints to have a Vagrantfile to setup the node format, which is more cumbersome than using this plugin if it were updated

@zedtux
Copy link
Author

zedtux commented Jul 29, 2019

Heum, no it doesn't, I don't have any Vagrantfile in my project.

@mcascone
Copy link

Not sure if this is the same problem, but i get this:
Message: Unable to activate kitchen-nodes-0.9.1, because test-kitchen-2.2.5 conflicts with test-kitchen (~> 1.13)

I am on chef v15:

ChefDK version: 4.3.13
Chef Infra Client version: 15.2.20
Chef InSpec version: 4.10.4
Test Kitchen version: 2.2.5
Foodcritic version: 16.1.1

@zedtux
Copy link
Author

zedtux commented Oct 7, 2019

@mcascone you seem to have the same issue as me.

@webframp
Copy link

Seeing some related issues. Are there plans to update this or keep it maintained? I'd be happy to send a PR with fixes if it's desired

@scalp42
Copy link

scalp42 commented Nov 1, 2019

please do @webframp !

@mcascone
Copy link

a fork of kitchen-nodes seems to fix this. See #29, #20, and https://rubygems.org/gems/kitchen-nodes-scalp42

@Stromweld Stromweld linked a pull request Aug 28, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants