Closed yourabi closed 9 years ago
Closing - my bad.
Referenced incorrect cookbook name in metadata.rb
Glad you figured it out! Let us know if we can help in any way; we're using this internally but there could easily be bugs all over. Thanks!
I have met the same error: undefined method `new' for Zookeeper:Module, when using it in chef solo json file: "run_list": ["recipe[zookeeper]"].
Could you tell where i am wrong? Thank you.
@crax I had this problem using chef 12. Use version 11.8.2 (like in the .kitchem.yml file in the cookbook) and you should be fine.
I too ran into this error. "Fixed" by using Chef < 12. 11.16.4 seemed to work fine.
Oh weird. Let's reopen and dig. I am going to devote some time today to running through a bunch of PRs so hopefully can figure this one out ... thanks for reporting, all.
I'm not sure these are related. I ran into this problem when doing something that should have required no entries in metadata.rb (I had added it to a test kitchen run list).
So if it helps, this is most likely because you are using chef 12. In my case, I was running the latest chef 11 in our environments and locally, but i was missing a line in our .kitchen.yml file that ensures that when kitchen.ci provisions the instance, it will use the appropriate chef version.
For example:
provisioner: name: chef_zero require_chef_omnibus: 11.16.4-1
Will ensure that any provisioned vagrant VMs use chef 11.16.4-1 and not chef 12 (the latest).
This does mean that this cookbook is incompatible with chef 12, something that should be looked into though.
@chkelly I assume this doesn't mean that you're saying it's a bug in Chef 12, right?
@eherot @chkelly This looks like a chef-client error. Others are seeing it too: opscode/chef#2575
Hi -
No matter how I try to use the chef-zookeeper cookbook I get the following 'undefined method'... Could someone point out what I'm doing wrong? Thanks!
I have a wrapper cookbook (cl-zookeeper) and it depends on 'java' and 'chef-zookeeper' cookbooks.
cl-zookeeper::default.rb looks like this