Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Berkshelf 2 compatibility #27

Closed
motns opened this issue Jun 11, 2013 · 11 comments
Closed

Berkshelf 2 compatibility #27

motns opened this issue Jun 11, 2013 · 11 comments
Assignees

Comments

@motns
Copy link
Contributor

motns commented Jun 11, 2013

Trying to use Berkshelf 2.0.3 alongside Strainer 2.1.0 triggers a conflict with the version constraint defined for Berkshelf by Strainer (~> 1.3).

What's strange is that I don't have any problem using Berkshelf 1.4.5. Any ideas?

Also, is there a particular reason why Strainer won't work with a Berkshelf version higher than 1.3?

Thanks, and keep up the good work!

@sethvargo
Copy link
Contributor

@motns this is a known issue. I want to get Berkshelf 2.0 stable before I add the integration (I also work on the Berkshelf project). For now, stick with 1.4.5 please

@ghost ghost assigned sethvargo Jun 11, 2013
@motns
Copy link
Contributor Author

motns commented Jun 11, 2013

No problem - thanks!

@retr0h
Copy link

retr0h commented Jun 13, 2013

Have any idea when it will be considered stable?

Currently hitting a bug where berkshelf seems to be pulling in the wrong cookbook from ~/.berkshelf/ into the dir specified by --path. Even though we have the cookbook explicitly locked to a version in metadata.rb. Jamie suggested giving 2.0 and the .lockfile a go. Anyways, hopefully berkshelf 2.0 will be stable enough to get some strainer love.

http://logs.openstack.org/32299/1/check/gate-cookbook-openstack-block-storage-chef-unit/79/console.html.gz

@sethvargo
Copy link
Contributor

@retr0h yes, this is a know issue. But I can't devote time to strainer until I get Berkshelf 2.0 stable.

@retr0h
Copy link

retr0h commented Jun 13, 2013

Right, which leads to my original question. Are we taking days or weeks?

@sethvargo
Copy link
Contributor

@retr0h watch berkshelf, not here, for those kind of updates. As soon as I get Berkshelf stable, I'll update strainer

@retr0h
Copy link

retr0h commented Jun 13, 2013

Fair enough. Sorry to trouble you for this information.

@sethvargo
Copy link
Contributor

Released 3.0, but it's subject to the bugs of BS 2.0

@retr0h
Copy link

retr0h commented Jun 13, 2013

Would this be a bug in BS 2.0?

emopop:cookbook-openstack-block-storage(resource-fix)☭% bundle exec strainer test
/home/jdewey/.chef
/home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:177:in `cookbooks_paths': undefined method `instance' for Berkshelf::Chef::Config:Class (NoMethodError)
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:136:in `load_cookbook'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:201:in `block (2 levels) in cookbooks_and_dependencies'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:199:in `each'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:199:in `block in cookbooks_and_dependencies'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:196:in `each'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:196:in `cookbooks_and_dependencies'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:103:in `copy_cookbooks'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:64:in `create_sandbox'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:42:in `reset_sandbox'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:34:in `initialize'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/runner.rb:19:in `new'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/runner.rb:19:in `initialize'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/cli.rb:52:in `new'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/cli.rb:52:in `test'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/cli.rb:17:in `dispatch'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/bin/strainer:8:in `<top (required)>'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/bin/strainer:19:in `load'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/bin/strainer:19:in `<main>'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/bin/ruby_noexec_wrapper:14:in `eval'
        from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/bin/ruby_noexec_wrapper:14:in `<main>'

@sethvargo
Copy link
Contributor

3.0.1
On Jun 12, 2013, at 10:54 PM, John Dewey notifications@github.com wrote:

Would this be a bug in BS 2.0?

emopop:cookbook-openstack-block-storage(resource-fix)☭% bundle exec strainer test
/home/jdewey/.chef
/home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:177:in cookbooks_paths': undefined methodinstance' for Berkshelf::Chef::Config:Class (NoMethodError)
from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:136:in load_cookbook' from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:201:inblock (2 levels) in cookbooks_and_dependencies'
from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:199:in each' from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:199:inblock in cookbooks_and_dependencies'
from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:196:in each' from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:196:incookbooks_and_dependencies'
from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:103:in copy_cookbooks' from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:64:increate_sandbox'
from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:42:in reset_sandbox' from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/sandbox.rb:34:ininitialize'
from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/runner.rb:19:in new' from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/runner.rb:19:ininitialize'
from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/cli.rb:52:in new' from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/cli.rb:52:intest'
from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/thor-0.18.1/lib/thor/command.rb:27:in run' from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/thor-0.18.1/lib/thor/invocation.rb:120:ininvoke_command'
from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/thor-0.18.1/lib/thor.rb:363:in dispatch' from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/lib/strainer/cli.rb:17:indispatch'
from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/thor-0.18.1/lib/thor/base.rb:439:in start' from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/gems/strainer-3.0.0/bin/strainer:8:in<top (required)>'
from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/bin/strainer:19:in load' from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/bin/strainer:19:in

'
from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/bin/ruby_noexec_wrapper:14:in eval' from /home/jdewey/.rvm/gems/ruby-1.9.3-p362/bin/ruby_noexec_wrapper:14:in'

Reply to this email directly or view it on GitHub.

@retr0h
Copy link

retr0h commented Jun 13, 2013

Works like a champ! Thx for spending your evening releasing this. Very much appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants