ENTRY

"Uploading Chef cookbooks : WARNING: The cookbooks: exist in multiple places in your cookbook_path."

Date:June 30th, 2014
Tags:
Comments: 0
  • Join date: 11-30-99
  • Posts: 12
View Counter:
  • 158 views
Rate it
Ad
Poll
  • What computer language you specialize in?

    View Results

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext

After running knife cookbook upload my_cookbook -V I have got a feedback from chef knife stating it generously merged my source and uploaded whatever the result was…

WARNING: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
WARNING: The cookbooks: my_cookbook exist in multiple places in your cookbook_path.
A composite version of these cookbooks has been compiled for uploading.

IMPORTANT: In a future version of Chef, this behavior will be removed and you will no longer be able to have the same version of a cookbook in multiple places in your cookbook_path.

WARNING: The affected cookbooks are located:
WARNING: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Obviously, chef manages to somehow merge same version of the same cookbook if it finds many.
Well, if you are a developer and one is a legacy version of your code and another is what you are working on, that might probably happen.
The reason was in my case this, I had more than one cookbook_path :

$ grep cookbook_path ~/.chef/knife.rb
cookbook_path [ 'd:/ws/infrastructure/chef-repo/cookbooks', 'd:/ws/infrastructure-old/chef-repo/cookbooks']

Removing second location and uploading again solved the problem.

Be Sociable, Share!
 
Interesting entry?
VN:F [1.8.5_1061]
Rating: 0 (from 0 votes)
0 votes 'YES'  0 votes 'NO'


TAGS

RELATED
Pages
Posts

SOCIAL
Be Sociable, Share!

INCOMING SEARCH TERMS



Responces

Leave a Reply