[chef] Re: Re: Knife ignoring dependencies


Chronological Thread 
  • From: Steven Barre < >
  • To:
  • Subject: [chef] Re: Re: Knife ignoring dependencies
  • Date: Mon, 06 May 2013 10:10:09 -0700
  • Organization: Real Estate Webmasters

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 
' '
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


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





Archive powered by MHonArc 2.6.16.

§