On Wednesday, September 12, 2012 at 11:43 PM, Nanuk Krinner wrote:
Hi,On 09/12/2012 05:48 PM, Daniel DeLeo wrote:[...]Can you reproduce this? What I described is how it's supposed to workand how it works most of the time, so it might be a tricky bug.It is reproducable for me. Look:=================================node31:/var/chef/cookbooks # knife cookbook create ntp** Creating cookbook ntp** Creating README for cookbook: ntp** Creating metadata for cookbook: ntpnode31:/var/chef/cookbooks # vi ntp/recipes/default.rbnode31:/var/chef/cookbooks # vi ntp/templates/default/ntp.conf.erbnode31:/var/chef/cookbooks # knife cookbook upload ntp -VVDEBUG: Using configuration from /root/.chef/knife.rbDEBUG: No chefignore file found at /var/chef/cookbooks/chefignore nofiles will be ignoredDEBUG: No chefignore file found at /var/chef/site-cookbooks/chefignoreno files will be ignoredDEBUG: Signing the request as bobDEBUG: Sending HTTP Request via GET to node31.cluster.xs:4000/cookbooksUploading ntp [0.0.1]INFO: Saving ntpINFO: Validating ruby filesINFO: Validating templatesINFO: Syntax OKDEBUG: Signing the request as bobDEBUG: Sending HTTP Request via POST to node31.cluster.xs:4000/sandboxesINFO: Uploading filesINFO: Uploading /var/chef/cookbooks/ntp/recipes/default.rb (checksum hex= d54d5cd27b8f37dbeb6fd5232a1883b0) toINFO: Uploading /var/chef/cookbooks/ntp/templates/default/ntp.conf.erb(checksum hex = 1a2e519cdc43799100bf074f4b96a50b) toINFO: Uploading /var/chef/cookbooks/ntp/metadata.rb (checksum hex =875e8e64f01fb64df4f69b2c7eac7d30) toDEBUG: /var/chef/cookbooks/ntp/README.md has not changedDEBUG: Committing sandboxDEBUG: Signing the request as bobDEBUG: Sending HTTP Request via PUT tonode31.cluster.xs:4000/sandboxes/2f1537a02aee4492b7af2e6f731272d2DEBUG: Signing the request as bobDEBUG: Sending HTTP Request via PUT tonode31.cluster.xs:4000/cookbooks/ntp/0.0.1INFO: Upload complete!Uploaded 1 cookbook.node31:/var/chef/cookbooks # knife cookbook download ntp -VVDEBUG: Using configuration from /root/.chef/knife.rbDEBUG: Signing the request as bobDEBUG: Sending HTTP Request via GET to node31.cluster.xs:4000/cookbooks/ntpDownloading ntp cookbook version 0.0.1DEBUG: Signing the request as bobDEBUG: Sending HTTP Request via GET tonode31.cluster.xs:4000/cookbooks/ntp/0.0.1Downloading resourcesDownloading providersDownloading recipesDEBUG: Downloading recipes/default.rb to/var/chef/cookbooks/ntp-0.0.1/recipes/default.rbDEBUG: Signing the request as bobDEBUG: Sending HTTP Request via GET tonode31.cluster.xs:4000/cookbooks/ntp/0.0.1/files/d54d5cd27b8f37dbeb6fd5232a1883b0DEBUG: Streaming download fromto tempfile /tmp/chef-rest20120913-13347-6bhvf4Downloading definitionsDownloading librariesDownloading attributesDownloading filesDownloading templatesDEBUG: Downloading templates/default/ntp.conf.erb to/var/chef/cookbooks/ntp-0.0.1/templates/default/ntp.conf.erbDEBUG: Signing the request as bobDEBUG: Sending HTTP Request via GET tonode31.cluster.xs:4000/cookbooks/ntp/0.0.1/files/1a2e519cdc43799100bf074f4b96a50bDEBUG: Streaming download fromto tempfile /tmp/chef-rest20120913-13347-4hc635Downloading root_filesDEBUG: Downloading metadata.rb to /var/chef/cookbooks/ntp-0.0.1/metadata.rbDEBUG: Signing the request as bobDEBUG: Sending HTTP Request via GET tonode31.cluster.xs:4000/cookbooks/ntp/0.0.1/files/875e8e64f01fb64df4f69b2c7eac7d30DEBUG: Streaming download fromto tempfile /tmp/chef-rest20120913-13347-105f2d8DEBUG: Downloading README.md to /var/chef/cookbooks/ntp-0.0.1/README.mdDEBUG: Signing the request as bobDEBUG: Sending HTTP Request via GET tonode31.cluster.xs:4000/cookbooks/ntp/0.0.1/files/6e21094b7a920e374e7261f50e9c4eef/usr/lib64/ruby/1.9.1/net/protocol.rb:141:in `read_nonblock': end offile reached (EOFError)from /usr/lib64/ruby/1.9.1/net/protocol.rb:141:in `rbuf_fill'from /usr/lib64/ruby/1.9.1/net/protocol.rb:122:in `readuntil'from /usr/lib64/ruby/1.9.1/net/protocol.rb:132:in `readline'from /usr/lib64/ruby/1.9.1/net/http.rb:2562:in `read_status_line'from /usr/lib64/ruby/1.9.1/net/http.rb:2551:in `read_new'from /usr/lib64/ruby/1.9.1/net/http.rb:1319:in `block intransport_request'from /usr/lib64/ruby/1.9.1/net/http.rb:1316:in `catch'from /usr/lib64/ruby/1.9.1/net/http.rb:1316:in `transport_request'from /usr/lib64/ruby/1.9.1/net/http.rb:1293:in `request'from /usr/lib64/ruby/1.9.1/net/http.rb:1286:in `block in request'from /usr/lib64/ruby/1.9.1/net/http.rb:745:in `start'from /usr/lib64/ruby/1.9.1/net/http.rb:1284:in `request'from/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/rest/rest_request.rb:99:in`block in call'from/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/rest/rest_request.rb:114:in`hide_net_http_bug'from/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/rest/rest_request.rb:98:in`call'from/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/rest.rb:299:in`block in streaming_request'from/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/rest.rb:334:in`retriable_rest_request'from/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/rest.rb:297:in`streaming_request'from/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/rest.rb:128:in`get_rest'from/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/knife/cookbook_download.rb:90:in`block (2 levels) in run'from/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/knife/cookbook_download.rb:85:in`each'from/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/knife/cookbook_download.rb:85:in`block in run'from/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/knife/cookbook_download.rb:82:in`each'from/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/knife/cookbook_download.rb:82:in`run'from/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/knife.rb:402:in`run_with_pretty_exceptions'from/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/knife.rb:168:in `run'from/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/application/knife.rb:123:in`run'from/usr/lib64/ruby/gems/1.9.1/gems/chef-10.12.0/bin/knife:25:in `<top(required)>'from /usr/bin/knife:23:in `load'from /usr/bin/knife:23:in `<main>'node31:/var/chef/cookbooks # knife cookbook show ntpntp 0.0.1node31:/var/chef/cookbooks # knife cookbook test ntpchecking ntpERROR: Errno::ENOENT: No such file or directory -/var/chef/cookbooks/ntp-0.0.1/README.mdnode31:/var/chef/cookbooks # ls ntp-0.0.1/*ntp-0.0.1/metadata.rbntp-0.0.1/recipes:default.rbntp-0.0.1/templates:default=========================================================================Let me know if you need more information. If I edit README.md beforeuploading, it gets uploaded too as it has changed. Then the recipe canbe downloaded too. To create this recipe I followed closely the guide at.Regards,Nanuk
Archive powered by MHonArc 2.6.16.