bflad / chef-stash

Chef Cookbook for Atlassian Stash
Other
37 stars 42 forks source link

Chef 14 recipe compile error #193

Closed djessich closed 3 years ago

djessich commented 5 years ago

During converge of this cookbook with Chef 14, the Chef Client fails with the following compile error.

Recipe Compile Error in /tmp/kitchen/cache/cookbooks/stash/attributes/default.rb  
================================================================================

Chef::Node::AttributeDoesNotExistError
--------------------------------------
No attribute `node['set']' exists on
the current node. Specifically the `set' attribute is not
defined. Please make sure you have spelled everything correctly.

Cookbook Trace:
---------------
/tmp/kitchen/cache/cookbooks/stash/attributes/default.rb:3:in `from_file'

Relevant File Content:
----------------------
/tmp/kitchen/cache/cookbooks/stash/attributes/default.rb:

1:  # frozen_string_literal: true
2:
3>> set['build-essential']['compile_time'] = true
4:
5:  default['stash']['version']      = '5.9.0'
6:  default['stash']['product']      = Chef::Version.new(node['stash']['version']) >= Chef::Version.new('4.0.0') ? 'bitbucket' : 'stash'
7:
8:  default['stash']['home_path'] = if Dir.exist?('/var/atlassian/application-data/stash')
9:                                    '/var/atlassian/application-data/stash'
10:                                  else
11:                                    "/var/atlassian/application-data/#{node['stash']['product']}"
12:                                  end

System Info:
------------
chef_version=14.12.9
platform=centos
platform_version=7.6.1810
ruby=ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]
program_name=/opt/chef/bin/chef-client
executable=/opt/chef/bin/chef-client

Running handlers:
[2019-05-25T22:46:03+00:00] ERROR: Running exception handlers
Running handlers complete
[2019-05-25T22:46:03+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 25 seconds
[2019-05-25T22:46:04+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
[2019-05-25T22:46:04+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2019-05-25T22:46:04+00:00] FATAL: Chef::Node::AttributeDoesNotExistError: No attribute `node['set']' exists on
the current node. Specifically the `set' attribute is not
defined. Please make sure you have spelled everything correctly.
djessich commented 3 years ago

Close. Chef 14 is EOF.