When using Chef cookbooks in your ServerTemplates, you may see a warning that cookbooks could not be found, such as the following two messages highlighted in red in the screenshots below:
Error when modifying the head version of a cookbook
Error when launching a server
RightScale will only show this warning when designing or launching ServerTemplates on the HEAD revision. We hide the warning on committed revisions. You will get additional warnings when launching, committing, or publishing a ServerTemplate with this condition, though RightScale won't prevent you from taking those actions.
Within the metadata of a Chef cookbook (found in the metadata.rb file), you can specify other cookbooks that this cookbook depends on to run (for more information see the Opscode documentation). When you attach a cookbook to a ServerTemplate, RightScale uses this metadata and tries to resolve all dependencies by looking for the dependent cookbooks in your account in the primary namespace. If RightScale can't find the dependent cookbooks in the primary namespace, this warning message is displayed.
Note: just because a cookbook "depends" on another cookbook doesn't necessarily mean that the dependent cookbook is required for your server to launch successfully. If the cookbook that has the dependency is never used, or its recipes never actually use resources in the dependent cookbook, your server may launch with no errors. RightScale can't parse all the code to make this determination, so we show the warning solely based on the metadata information.
Note: any RightScale-published Chef ServerTemplate prior to v13.5 will list some cookbooks as missing (packages, ruby_enterprise, etc). This is due to RightScale's use of forks of Opscode cookbooks in those ServerTemplates -- all of the dependent cookbooks weren't included because they weren't actually needed even though they were called out (see the Do nothing resolution below). To remove the 'packages, ruby_enterprise' dependency, modify the ServerTemplate and detach the following cookbooks: 'rails_enterprise, passenger_apache2'. As of v13.5, all of these cookbooks have been removed from the ServerTemplates.
If you are seeing this message, there are multiple resolution paths to consider:
© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.