I am having a problem running Vagrant provision. It seems to be a problem with the python cookbook because of the version of Chef. I am unsure of how to fix this and it is currently required for a class. Copied below is the output from "vagrant provision."
==> default: Running provisioner: chef_solo...
==> default: Detected Chef (latest) is already installed
==> default: Generating chef JSON and uploading...
==> default: Running chef-solo...
==> default: [2017-08-29T18:08:52+00:00] INFO: Started chef-zero at chefzero://localhost:1 with repository at /tmp/vagrant-chef/1c2d76d97e3888f2f9e8d38864e9cc1d
==> default: One version per cookbook
==> default: [2017-08-29T18:08:52+00:00] INFO: Forking chef instance to converge...
==> default: Starting Chef Client, version 13.3.42
==> default:
==> default: [2017-08-29T18:08:52+00:00] INFO: *** Chef 13.3.42 ***
==> default: [2017-08-29T18:08:52+00:00] INFO: Platform: x86_64-linux
==> default: [2017-08-29T18:08:52+00:00] INFO: Chef-client pid: 3318
==> default: [2017-08-29T18:08:52+00:00] INFO: The plugin path /etc/chef/ohai/plugins does not exist. Skipping...
==> default: [2017-08-29T18:08:56+00:00] INFO: Setting the run_list to ["recipe[mtsw2e::default]"] from CLI options
==> default: [2017-08-29T18:08:56+00:00] INFO: Run List is [recipe[mtsw2e::default]]
==> default: [2017-08-29T18:08:56+00:00] INFO: Run List expands to [mtsw2e::default]
==> default: [2017-08-29T18:08:56+00:00] INFO: Starting Chef Run for vagrant-24196e8a
==> default: [2017-08-29T18:08:56+00:00] INFO: Running start handlers
==> default: [2017-08-29T18:08:56+00:00] INFO: Start handlers complete.
==> default: resolving cookbooks for run list: ["mtsw2e::default"]
==> default: W, [2017-08-29T18:08:58.565730 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:08:58.566614 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:08:58.567311 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:08:58.568464 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:08:58.621307 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:08:58.624125 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:08:58.624837 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:08:58.628878 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:09:02.634212 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:09:02.637913 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:09:02.638023 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:09:02.638077 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: [2017-08-29T18:09:05+00:00] INFO: Loading cookbooks [mtsw2e@0.2.0, apt@2.0.1, runit@1.0.4, python@1.3.6, build-essential@1.4.2, yum@2.3.0]
==> default: Synchronizing Cookbooks:
==> default:
==> default: - mtsw2e (0.2.0)
==> default:
==> default: - apt (2.0.1)
==> default:
==> default: - runit (1.0.4)
==> default:
==> default: - python (1.3.6)
==> default:
==> default: - build-essential (1.4.2)
==> default:
==> default: - yum (2.3.0)
==> default: Installing Cookbook Gems:
==> default: Compiling Cookbooks...
==> default:
==> default: ================================================================================
==> default: Recipe Compile Error in /var/chef/cache/cookbooks/python/attributes/default.rb
==> default: ================================================================================
==> default:
==> default:
==> default: NoMethodError
==> default:
==> default: -------------
==> default: undefined method python' for #<Chef::Node::Attribute:0x000000052d7648> ==> default: ==> default: Cookbook Trace: ==> default: --------------- ==> default: /var/chef/cache/cookbooks/python/attributes/default.rb:23:in from_file'
==> default:
==> default: Relevant File Content:
==> default: ----------------------
==> default: /var/chef/cache/cookbooks/python/attributes/default.rb:
==> default:
==> default: 16: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
==> default: 17: # See the License for the specific language governing permissions and
==> default: 18: # limitations under the License.
==> default: 19: #
==> default: 20:
==> default: 21: default['python']['install_method'] = 'package'
==> default: 22:
==> default: 23>> if python['install_method'] == 'package'
==> default: 24: case platform
==> default: 25: when "smartos"
==> default: 26: default['python']['prefix_dir'] = '/opt/local'
==> default: 27: else
==> default: 28: default['python']['prefix_dir'] = '/usr'
==> default: 29: end
==> default: 30: else
==> default: 31: default['python']['prefix_dir'] = '/usr/local'
==> default: 32: end
==> default:
==> default: System Info:
==> default: ------------
==> default: chef_version=13.3.42
==> default: platform=ubuntu
==> default: platform_version=14.04
==> default: ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
==> default: program_name=chef-solo worker: ppid=3313;start=18:08:52;
==> default: executable=/opt/chef/bin/chef-solo
==> default:
==> default:
==> default:
==> default: Running handlers:
==> default: [2017-08-29T18:09:06+00:00] ERROR: Running exception handlers
==> default: Running handlers complete
==> default:
==> default: [2017-08-29T18:09:06+00:00] ERROR: Exception handlers complete
==> default: Chef Client failed. 0 resources updated in 14 seconds
==> default: [2017-08-29T18:09:06+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: [2017-08-29T18:09:06+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
==> default: [2017-08-29T18:09:06+00:00] ERROR: undefined method `python' for #Chef::Node::Attribute:0x000000052d7648
==> default: [2017-08-29T18:09:06+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
I am having a problem running Vagrant provision. It seems to be a problem with the python cookbook because of the version of Chef. I am unsure of how to fix this and it is currently required for a class. Copied below is the output from "vagrant provision."
==> default: Running provisioner: chef_solo...
==> default: Detected Chef (latest) is already installed
==> default: Generating chef JSON and uploading...
==> default: Running chef-solo...
==> default: [2017-08-29T18:08:52+00:00] INFO: Started chef-zero at chefzero://localhost:1 with repository at /tmp/vagrant-chef/1c2d76d97e3888f2f9e8d38864e9cc1d
==> default: One version per cookbook
==> default: [2017-08-29T18:08:52+00:00] INFO: Forking chef instance to converge...
==> default: Starting Chef Client, version 13.3.42
==> default:
==> default: [2017-08-29T18:08:52+00:00] INFO: *** Chef 13.3.42 ***
==> default: [2017-08-29T18:08:52+00:00] INFO: Platform: x86_64-linux
==> default: [2017-08-29T18:08:52+00:00] INFO: Chef-client pid: 3318
==> default: [2017-08-29T18:08:52+00:00] INFO: The plugin path /etc/chef/ohai/plugins does not exist. Skipping...
==> default: [2017-08-29T18:08:56+00:00] INFO: Setting the run_list to ["recipe[mtsw2e::default]"] from CLI options
==> default: [2017-08-29T18:08:56+00:00] INFO: Run List is [recipe[mtsw2e::default]]
==> default: [2017-08-29T18:08:56+00:00] INFO: Run List expands to [mtsw2e::default]
==> default: [2017-08-29T18:08:56+00:00] INFO: Starting Chef Run for vagrant-24196e8a
==> default: [2017-08-29T18:08:56+00:00] INFO: Running start handlers
==> default: [2017-08-29T18:08:56+00:00] INFO: Start handlers complete.
==> default: resolving cookbooks for run list: ["mtsw2e::default"]
==> default: W, [2017-08-29T18:08:58.565730 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:08:58.566614 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:08:58.567311 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:08:58.568464 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:08:58.621307 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:08:58.624125 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:08:58.624837 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:08:58.628878 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:09:02.634212 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:09:02.637913 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:09:02.638023 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: W, [2017-08-29T18:09:02.638077 #3318] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
==> default: [2017-08-29T18:09:05+00:00] INFO: Loading cookbooks [mtsw2e@0.2.0, apt@2.0.1, runit@1.0.4, python@1.3.6, build-essential@1.4.2, yum@2.3.0]
==> default: Synchronizing Cookbooks:
==> default:
==> default: - mtsw2e (0.2.0)
==> default:
==> default: - apt (2.0.1)
==> default:
==> default: - runit (1.0.4)
==> default:
==> default: - python (1.3.6)
==> default:
==> default: - build-essential (1.4.2)
==> default:
==> default: - yum (2.3.0)
==> default: Installing Cookbook Gems:
==> default: Compiling Cookbooks...
==> default:
==> default: ================================================================================
==> default: Recipe Compile Error in /var/chef/cache/cookbooks/python/attributes/default.rb
==> default: ================================================================================
==> default:
==> default:
==> default: NoMethodError
==> default:
==> default: -------------
==> default: undefined method
python' for #<Chef::Node::Attribute:0x000000052d7648> ==> default: ==> default: Cookbook Trace: ==> default: --------------- ==> default: /var/chef/cache/cookbooks/python/attributes/default.rb:23:infrom_file'==> default:
==> default: Relevant File Content:
==> default: ----------------------
==> default: /var/chef/cache/cookbooks/python/attributes/default.rb:
==> default:
==> default: 16: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
==> default: 17: # See the License for the specific language governing permissions and
==> default: 18: # limitations under the License.
==> default: 19: #
==> default: 20:
==> default: 21: default['python']['install_method'] = 'package'
==> default: 22:
==> default: 23>> if python['install_method'] == 'package'
==> default: 24: case platform
==> default: 25: when "smartos"
==> default: 26: default['python']['prefix_dir'] = '/opt/local'
==> default: 27: else
==> default: 28: default['python']['prefix_dir'] = '/usr'
==> default: 29: end
==> default: 30: else
==> default: 31: default['python']['prefix_dir'] = '/usr/local'
==> default: 32: end
==> default:
==> default: System Info:
==> default: ------------
==> default: chef_version=13.3.42
==> default: platform=ubuntu
==> default: platform_version=14.04
==> default: ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
==> default: program_name=chef-solo worker: ppid=3313;start=18:08:52;
==> default: executable=/opt/chef/bin/chef-solo
==> default:
==> default:
==> default:
==> default: Running handlers:
==> default: [2017-08-29T18:09:06+00:00] ERROR: Running exception handlers
==> default: Running handlers complete
==> default:
==> default: [2017-08-29T18:09:06+00:00] ERROR: Exception handlers complete
==> default: Chef Client failed. 0 resources updated in 14 seconds
==> default: [2017-08-29T18:09:06+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> default: [2017-08-29T18:09:06+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
==> default: [2017-08-29T18:09:06+00:00] ERROR: undefined method `python' for #Chef::Node::Attribute:0x000000052d7648
==> default: [2017-08-29T18:09:06+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.