chef-provisioning-aws: Error when converging cookbooks depending on 'aws' cookbook

Whenever a cookbook using the chef-provisioning-aws driver depends on the ‘aws’ cookbook, converging fails at cookbooks compilation time with the following error:

[..]
Compiling Cookbooks...

================================================================================
Recipe Compile Error in /path/to/your/cookbook/development/directory/.chef/local-mode-cache/cache/cookbooks/aws-bug-cookbook/recipes/default.rb
================================================================================

TypeError
---------
superclass mismatch for class AwsEbsVolume

Cookbook Trace:
---------------
  /path/to/your/cookbook/development/directory/.chef/local-mode-cache/cache/cookbooks/aws-bug-cookbook/recipes/default.rb:15:in `require'
  /path/to/your/cookbook/development/directory/.chef/local-mode-cache/cache/cookbooks/aws-bug-cookbook/recipes/default.rb:15:in `from_file'

Relevant File Content:
----------------------
/path/to/your/cookbook/development/directory/.chef/local-mode-cache/cache/cookbooks/aws-bug-cookbook/recipes/default.rb:

  8:  #
  9:  # Licensed under the Apache License, Version 2.0 (the "License");
 10:  # you may not use this file except in compliance with the License.
 11:  # You may obtain a copy of the License at
 12:  #
 13:  #     http://www.apache.org/licenses/LICENSE-2.0
 14:  
 15>> require 'chef/provisioning/aws_driver'
 16:  with_driver 'aws'
 17:  
[..]

Full instructions on https://gist.github.com/esciara/d0921bded64568dc6424

This stops me completly from deploying cookbooks such as https://github.com/bflad/chef-confluence .

About this issue

  • Original URL
  • State: open
  • Created 9 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

This is sloppy, this is what’s driving people from Chef. You guys maintain BOTH repositories.