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

Error using docker_image LWRP #158

Closed
vblessing opened this issue May 23, 2014 · 2 comments
Closed

Error using docker_image LWRP #158

vblessing opened this issue May 23, 2014 · 2 comments

Comments

@vblessing
Copy link

I'm trying to use the docker_image LWRP to pull an image, but I'm getting an error.

Environment stuffs:

  • Platform: Ubuntu 12.04
  • Cookbook version: 0.34.2
  • Chef version: 11.14.0.alpha.1

Error:

================================================================================       
Error executing action `pull` on resource 'docker_image[bradrydzewski/go]'       
================================================================================       


NameError       
---------       
No resource, method, or local variable named `cmd' for `Chef::Provider::DockerImage ""'       


Cookbook Trace:       
---------------       
/tmp/kitchen/cookbooks/docker/providers/image.rb:147:in `command_timeout_error_message'       
/tmp/kitchen/cookbooks/docker/libraries/helpers.rb:235:in `rescue in execute_cmd'       
       /tmp/kitchen/cookbooks/docker/libraries/helpers.rb:232:in `execute_cmd'
       /tmp/kitchen/cookbooks/docker/libraries/helpers.rb:248:in `execute_cmd!'
       /tmp/kitchen/cookbooks/docker/libraries/helpers.rb:242:in `docker_cmd!'
       /tmp/kitchen/cookbooks/docker/providers/image.rb:213:in `pull'
       /tmp/kitchen/cookbooks/docker/providers/image.rb:70:in `block in class_from_file'


       Resource Declaration:

       ---------------------
       # In /tmp/kitchen/cookbooks/tamu-drone/recipes/default.rb

        31: docker_image 'bradrydzewski/go'
        32: 



       Compiled Resource:

       ------------------
       # Declared in /tmp/kitchen/cookbooks/tamu-drone/recipes/default.rb:31:in `from_file'

       docker_image("bradrydzewski/go") do
         action :pull
         retries 0
         retry_delay 2
         guard_interpreter :default
         cookbook_name :"tamu-drone"
         recipe_name "default"
         cmd_timeout 300
         image_name "bradrydzewski/go"
       end



       [2014-05-23T16:34:58+00:00] INFO: Running queued delayed notifications before re-raising exception


Running handlers:       
[2014-05-23T16:34:58+00:00] ERROR: Running exception handlers       
       Running handlers complete


       [2014-05-23T16:34:58+00:00] ERROR: Exception handlers complete
[2014-05-23T16:34:58+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out       
Chef Client failed. 18 resources updated in 582.169880032 seconds       
[2014-05-23T16:34:58+00:00] ERROR: docker_image[bradrydzewski/go] (tamu-drone::default line 31) had an error: NameError: No resource, method, or local variable named `cmd' for `Chef::Provider::DockerImage ""'       
[2014-05-23T16:34:58+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)       
>>>>>> Converge failed on instance <default-ubuntu-1204>.
>>>>>> Please see .kitchen/logs/default-ubuntu-1204.log for more details
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: SSH exited (1) for command: [sudo -E chef-solo --config /tmp/kitchen/solo.rb --json-attributes /tmp/kitchen/dna.json  --log_level info]
>>>>>> ----------------------
@vblessing
Copy link
Author

I did try the change that @jperville made in #160, but that didn't totally solve this issue. When I tried it last week, it would give me an error that the repository could not be found.

@bflad
Copy link
Contributor

bflad commented Jun 24, 2014

Hi @vblessing, I just merged in #160 which should fix this issue. Can you please open another one if you're having additional trouble afterwards? Thanks!

@bflad bflad closed this as completed in cc926d8 Jun 24, 2014
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

No branches or pull requests

2 participants