-
Notifications
You must be signed in to change notification settings - Fork 40
superclass mismatch for class DockerContainer #6
Comments
im having the same issue here, nothing in the readme is working the way its documented, heres a sample of my recipe, @jkeiser what are we doing wrong? include_recipe 'docker' %w{ chef-metal chef-metal-docker }.each do |gem| require 'chef_metal' with_driver 'docker' machine 'deploy' do |
@johnewart you have been in here recently, does this ring offhand bells? |
Thanks atm blocking love to get some feedback |
Haven't seen this one; I just re-ran my configs and they work but I'll try a clean gem installation and see if I get it to blow up. |
Are you testing against a chef server in addition to chef-zero? On Tue, Aug 26, 2014 at 9:59 PM, John Ewart notifications@github.com
|
No but I suspect that it may be a conflict with the docker cookbook; I'll have to double check but I believe the client loads up all the resources in the cookbooks in use. The docker cookbook also declares a DockerContainer Chef resource and if there's a previous resource with the same name then it will complain that it is being redefined. What happens if you don't use that cookbook? I'm trying to reproduce with it at the moment... |
I did try with out the docker cookbook to no avail were you able to reproduce ? |
here is a sample run of what i was able to get working but stuck here, https://gist.github.com/mikemaring/69b80d70b25d953b0b7f |
To clarify -- with the docker cookbook, were you getting the "superclass mismatch" error, and now (without the docker cookbook) you are seeing 403s? I think there may be an issue related to permissions set on nodes that are constructed in hosted Chef, I'll try to reproduce locally. |
There is an issue with hosted nodes, yep. The easiest solution is to add the clients group to the admins group until it is fixed. |
Hosted 403 is the issue I'm currently working on; I've just been peeling the layers of an onion to get at it rather than hack a quick fix directly. |
im not currently getting a 403, im getting this really odd id missing can you check my previous gist? |
maybe its since were not using chef-metal-docker some how, trying now with chef_metal_docker require |
@jkeiser are you on freenode atm? |
It looks to me like the issue here is the docker record was created by a previous driver (not sure though). Try deleting the deploy node from chef and re-running ... (knife delete /nodes/deploy.json) |
I'm not on irc just yet, I'm back and forth on different devices while waking up :) |
→ knife node delete -y deploy same deal, and i think i have all the proper settings in chef gui |
will wait for your thoughts, im running into a wall with this one. |
We're taking a look to see what we can see: two things would help here.
|
@jkeiser theres no node data currently, i dont think its related to the hosted at this point , here is an updated situation as to where we are. https://gist.github.com/mikemaring/401be5d9f14added1466 |
I removed the DockerContainer class from chef-metal-docker after looking at it this morning since we're not using it anyway. Can you try using the HEAD of master for the chef-metal-docker gem? |
trying |
it looks like im at the id issue i spoke of earlier, any idea what im missing https://gist.github.com/mikemaring/b45b5b0911a7cb5bcca1 |
seems no matter where i declare id it doesnt work, trying anything i can think of to no avail. |
I believe sol was actaully brand new at the time. |
@jdblack are you around atm on irc? |
Fixed in 89c108f - we don't need the DockerContainer resource anyway |
@mikemaring Did you solve the "Must have id, got: {"id"=>nil, :headers=>{}}"? Im stuck with the same thing |
this fix is surely worth a release :) |
I'm attempting to use the follow recipe, named "role_docker":
The result is the following:
The text was updated successfully, but these errors were encountered: