My knife seems to not be alerting about missing dependencies?
grep depends cookbooks/rew_idxdb/metadata.rb
depends ‘apache2’
knife cookbook upload rew_idxdb
Uploading rew_idxdb [0.1.0]
Uploaded 1 cookbook.
This is a fresh setup, so none on the dependencies exist on the server
already.
Normally I get an error like
ERROR: Cookbook rew_idxdb depends on cookbook ‘apache2’ version ‘>= 0.0.0’,
ERROR: which is not currently being uploaded and cannot be found on the
server.
Why am I not getting this error now?
–
Steven Barre, RHCE, ZCE, MCP
steven@realestatewebmasters.com
Systems Administrator / Programmer
Real Estate Webmasters - 250-753-9893
On Monday, April 29, 2013 at 5:30 PM, Steven Barre wrote:
My knife seems to not be alerting about missing dependencies?
grep depends cookbooks/rew_idxdb/metadata.rb
depends 'apache2'
knife cookbook upload rew_idxdb
Uploading rew_idxdb [0.1.0]
Uploaded 1 cookbook.
This is a fresh setup, so none on the dependencies exist on the server
already.
Normally I get an error like
ERROR: Cookbook rew_idxdb depends on cookbook 'apache2' version '>= 0.0.0',
ERROR: which is not currently being uploaded and cannot be found on the
server.
Why am I not getting this error now?
Can you run this with -VV and share the results?
--
Daniel DeLeo
--
Steven Barre, RHCE, ZCE, MCP
steven@realestatewebmasters.com (mailto:steven@realestatewebmasters.com)
Systems Administrator / Programmer
Real Estate Webmasters - 250-753-9893
knife cookbook upload rew_idxdb -VV
DEBUG: Signing the request as steven
DEBUG: Sending HTTP Request via GET to chef.dfw.rewhosting.com:443/cookbooks
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 200 OK
DEBUG: server: nginx/1.2.3
DEBUG: date: Wed, 01 May 2013 18:08:57 GMT
DEBUG: content-type: application/json
DEBUG: transfer-encoding: chunked
DEBUG: connection: close
DEBUG: x-ops-api-info: flavor=osc;version=11.0.2;erchef=1.2.6
DEBUG: content-encoding: gzip
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: decompressing gzip response
DEBUG: No chefignore file found at
/home/stack/chef-repo/cookbooks/chefignore no files will be ignored
Uploading rew_idxdb [0.1.0]
INFO: Validating ruby files
DEBUG: Ruby file
/home/stack/chef-repo/cookbooks/rew_idxdb/recipes/git_cron.rb is
unchanged, skipping syntax check
DEBUG: Ruby file
/home/stack/chef-repo/cookbooks/rew_idxdb/recipes/default.rb is
unchanged, skipping syntax check
DEBUG: Testing /home/stack/chef-repo/cookbooks/rew_idxdb/metadata.rb for
syntax errors...
Syntax OK
INFO: Validating templates
DEBUG: Template
/home/stack/chef-repo/cookbooks/rew_idxdb/templates/default/idx-cron-update.erb
is unchanged, skipping syntax check
DEBUG: Template
/home/stack/chef-repo/cookbooks/rew_idxdb/templates/default/idx_cron-crontab.txt.erb
is unchanged, skipping syntax check
DEBUG: Template
/home/stack/chef-repo/cookbooks/rew_idxdb/templates/default/user-gitconfig.erb
is unchanged, skipping syntax check
DEBUG: Template
/home/stack/chef-repo/cookbooks/rew_idxdb/templates/default/post-receive-hook.erb
is unchanged, skipping syntax check
INFO: Syntax OK
INFO: Saving rew_idxdb
DEBUG: Signing the request as steven
DEBUG: Sending HTTP Request via POST to
chef.dfw.rewhosting.com:443/sandboxes
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 201 Created
DEBUG: server: nginx/1.2.3
DEBUG: date: Wed, 01 May 2013 18:08:57 GMT
DEBUG: content-type: application/json
DEBUG: content-length: 936
DEBUG: connection: close
DEBUG: x-ops-api-info: flavor=osc;version=11.0.2;erchef=1.2.6
DEBUG: location:
http://com.rewhosting.dfw.chef:80/sandboxes/000000000000dd02430bc29ce30edf0f
DEBUG: ---- End HTTP Status/Header Data ----
INFO: Uploading files
DEBUG: /home/stack/chef-repo/cookbooks/rew_idxdb/CHANGELOG.md has not
changed
DEBUG: /home/stack/chef-repo/cookbooks/rew_idxdb/recipes/default.rb has
not changed
DEBUG: /home/stack/chef-repo/cookbooks/rew_idxdb/recipes/git_cron.rb has
not changed
DEBUG:
/home/stack/chef-repo/cookbooks/rew_idxdb/templates/default/user-gitconfig.erb
has not changed
DEBUG: /home/stack/chef-repo/cookbooks/rew_idxdb/README.md has not changed
DEBUG:
/home/stack/chef-repo/cookbooks/rew_idxdb/templates/default/post-receive-hook.erb
has not changed
DEBUG:
/home/stack/chef-repo/cookbooks/rew_idxdb/templates/default/idx_cron-crontab.txt.erb
has not changed
DEBUG:
/home/stack/chef-repo/cookbooks/rew_idxdb/templates/default/idx-cron-update.erb
has not changed
INFO: Uploading /home/stack/chef-repo/cookbooks/rew_idxdb/metadata.rb
(checksum hex = 7a2ef443c02cc189402ed830a65f7113) to
https://chef.dfw.rewhosting.com:443/bookshelf/organization-00000000000000000000000000000000/checksum-7a2ef443c02cc189402ed830a65f7113?AWSAccessKeyId=55fa7e2a798dcc55a0e7f8cb51b5fc5aab4bd1a8&Expires=1367432637&Signature=BeZjZDN7UnFS2jEGZQJYoUo%2BeLg%3D
DEBUG: Committing sandbox
DEBUG: Signing the request as steven
DEBUG: Sending HTTP Request via PUT to
chef.dfw.rewhosting.com:443/sandboxes/0000000000003f7b02efa091a8ceb77c
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 200 OK
DEBUG: server: nginx/1.2.3
DEBUG: date: Wed, 01 May 2013 18:08:57 GMT
DEBUG: content-type: application/json
DEBUG: transfer-encoding: chunked
DEBUG: connection: close
DEBUG: x-ops-api-info: flavor=osc;version=11.0.2;erchef=1.2.6
DEBUG: content-encoding: gzip
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: decompressing gzip response
DEBUG: Signing the request as steven
DEBUG: Sending HTTP Request via PUT to
chef.dfw.rewhosting.com:443/cookbooks/rew_idxdb/0.1.0
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 200 OK
DEBUG: server: nginx/1.2.3
DEBUG: date: Wed, 01 May 2013 18:08:57 GMT
DEBUG: content-type: application/json
DEBUG: transfer-encoding: chunked
DEBUG: connection: close
DEBUG: x-ops-api-info: flavor=osc;version=11.0.2;erchef=1.2.6
DEBUG: content-encoding: gzip
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: decompressing gzip response
INFO: Upload complete!
Uploaded 1 cookbook.
=================================================
Steven Barre, RHCE, ZCE, MCP
steven@realestatewebmasters.com
Systems Administrator / Programmer
Real Estate Webmasters - 250-753-9893
On 2013-05-01 09:56, Daniel DeLeo wrote:
On Monday, April 29, 2013 at 5:30 PM, Steven Barre wrote:
My knife seems to not be alerting about missing dependencies?
grep depends cookbooks/rew_idxdb/metadata.rb
depends 'apache2'
knife cookbook upload rew_idxdb
Uploading rew_idxdb [0.1.0]
Uploaded 1 cookbook.
This is a fresh setup, so none on the dependencies exist on the server
already.
Normally I get an error like
ERROR: Cookbook rew_idxdb depends on cookbook 'apache2' version '>=
0.0.0',
ERROR: which is not currently being uploaded and cannot be found on the
server.
Why am I not getting this error now?
Can you run this with -VV and share the results?
--
Daniel DeLeo
--
Steven Barre, RHCE, ZCE, MCP
steven@realestatewebmasters.com mailto:steven@realestatewebmasters.com
Systems Administrator / Programmer
Real Estate Webmasters - 250-753-9893
On Wednesday, May 1, 2013 at 11:19 AM, Steven Barre wrote:
knife cookbook upload rew_idxdb -VV
DEBUG: Signing the request as steven
DEBUG: Sending HTTP Request via GET to chef.dfw.rewhosting.com:443/cookbooks (http://chef.dfw.rewhosting.com:443/cookbooks)
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 200 OK
DEBUG: server: nginx/1.2.3
DEBUG: date: Wed, 01 May 2013 18:08:57 GMT
DEBUG: content-type: application/json
DEBUG: transfer-encoding: chunked
DEBUG: connection: close
DEBUG: x-ops-api-info: flavor=osc;version=11.0.2;erchef=1.2.6
DEBUG: content-encoding: gzip
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: decompressing gzip response
DEBUG: No chefignore file found at /home/stack/chef-repo/cookbooks/chefignore no files will be ignored
Uploading rew_idxdb [0.1.0]
Certainly smells like a bug. I can't trivially reproduce it against Hosted Chef:
ddeleo@lorentz chef-oss-dev > knife cookbook upload bad-deps
Uploading bad-deps [0.1.0]
ERROR: Cookbook bad-deps depends on cookbook 'fourohfour' version '>= 0.0.0',
ERROR: which is not currently being uploaded and cannot be found on the server.
ddeleo@lorentz chef-oss-dev > knife -v
Chef: 11.4.2
Can you run knife raw cookbooks
and make sure the output is as expected?
--
Daniel DeLeo
Hi,
On 4/29/13 5:30 PM, Steven Barre wrote:
My knife seems to not be alerting about missing dependencies?
grep depends cookbooks/rew_idxdb/metadata.rb
depends 'apache2'
knife cookbook upload rew_idxdb
Uploading rew_idxdb [0.1.0]
Uploaded 1 cookbook.
This is a fresh setup, so none on the dependencies exist on the server
already.
Normally I get an error like
ERROR: Cookbook rew_idxdb depends on cookbook 'apache2' version '>= 0.0.0',
ERROR: which is not currently being uploaded and cannot be found on the
server.
Why am I not getting this error now?
Can you also confirm which version of knife you are using locally?
Cheers,
Steven
--
Steven Danna
Systems Engineer, Opscode, Inc
GPG Key: http://stevendanna.github.com/downloads/code/public.key
Version Infos
sudo rpm -qa | grep chef
chef-server-11.0.8-1.el6.x86_64
chef-11.4.4-1.el6.x86_64
knife -v
Chef: 11.4.4
cat /etc/redhat-release
CentOS release 6.4 (Final)
Knife Raw output.
knife raw cookbooks
{
"rew_idxdb": {
"url": "https://chef.dfw.rewhosting.com/cookbooks/rew_idxdb",
"versions": [
{
"version": "0.1.0",
"url": "https://chef.dfw.rewhosting.com/cookbooks/rew_idxdb/0.1.0"
}
]
}
}
cat cookbooks/rew_idxdb/metadata.rb
name 'rew_idxdb'
maintainer 'Real Estate Webmasters Inc.'
maintainer_email 'steven@realestatewebmasters.com'
license 'All rights reserved'
description 'Installs/Configures rew_idxdb'
long_description IO.read(File.join(File.dirname(FILE), 'README.md'))
version '0.1.0'
depends 'rew_base'
depends 'users'
depends 'sudo'
I think it must be a bug, since I get the same result setting up a new
instance with the same RPM's and only uploading the one cookbook with
dependencies.
How should I go about reporting this?
=================================================
Steven Barre, RHCE, ZCE, MCP
steven@realestatewebmasters.com
Systems Administrator / Programmer
Real Estate Webmasters - 250-753-9893
On 2013-05-05 09:27, Steven Danna wrote:
Hi,
On 4/29/13 5:30 PM, Steven Barre wrote:
My knife seems to not be alerting about missing dependencies?
grep depends cookbooks/rew_idxdb/metadata.rb
depends 'apache2'
knife cookbook upload rew_idxdb
Uploading rew_idxdb [0.1.0]
Uploaded 1 cookbook.
This is a fresh setup, so none on the dependencies exist on the server
already.
Normally I get an error like
ERROR: Cookbook rew_idxdb depends on cookbook 'apache2' version '>= 0.0.0',
ERROR: which is not currently being uploaded and cannot be found on the
server.
Why am I not getting this error now?
Can you also confirm which version of knife you are using locally?
Cheers,
Steven