michaelklishin / cassandra-chef-cookbook

Chef cookbook for Apache Cassandra, DataStax Enterprise (DSE) and DataStax agent
Apache License 2.0
163 stars 228 forks source link

CHEF VERIFY FAILS ON WINDOWS #373

Open Murkor opened 6 years ago

Murkor commented 6 years ago

I just installed chefdk 3.0.36 when go to powershell and execute : chef verify arise an error Verification of component 'generated-cookbooks-pass-chefspec' failed. what's can i do to fix that ?

EVIDENCE

PS C:\WINDOWS\system32> chef verify [WARN] This is an internal command used by the ChefDK development team. If you are a ChefDK user, please do not run it. Running verification for component 'berkshelf' Running verification for component 'test-kitchen' Running verification for component 'tk-policyfile-provisioner' Running verification for component 'chef-client' Running verification for component 'chef-dk' Running verification for component 'chef-provisioning' Running verification for component 'chefspec' Running verification for component 'generated-cookbooks-pass-chefspec' Running verification for component 'fauxhai' Running verification for component 'knife-spork' Running verification for component 'kitchen-vagrant' Running verification for component 'package installation' Running verification for component 'openssl' Running verification for component 'inspec' Running verification for component 'delivery-cli' Running verification for component 'git' Running verification for component 'opscode-pushy-client' Running verification for component 'chef-sugar' ................................................................C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef -provisioning-aws-3.0.2/lib/chef/resource/aws_route53_record_set.rb:48:in `class:AwsRoute53RecordSet' : C:/opscode/che fdk/embedded/lib/ruby/gems/2.5.0/gems/chef-provisioning-aws-3.0.2/lib/chef/resource/aws_route53_record_set.rb:48: warnin g: constant ::Fixnum is deprecated (StructuredWarnings::BuiltInWarning).cannot load such file -- fog .....

An error occurred in a before(:suite) hook. Failure/Error: raise ArgumentError, "same file: #{s} and #{d}" if fu_same?(s, d)

ArgumentError: same file: C:/Users/FHERNA1/AppData/Local/Temp/d20180622-10664-dt74ua/example/../../../../../../fhernandez/AppData/Lo cal/Temp/d20180622-10664-dt74ua/example/.delivery/build_cookbook/.kitchen.yml and C:/Users/FHERNA1/AppData/Local/Temp/v endor20180622-5896-rex13q/example/../../../../../../fhernandez/AppData/Local/Temp/d20180622-10664-dt74ua/example/.delive ry/build_cookbook/.kitchen.yml

C:/opscode/chefdk/embedded/lib/ruby/2.5.0/fileutils.rb:1462:in block in fu_each_src_dest' C:/opscode/chefdk/embedded/lib/ruby/2.5.0/fileutils.rb:1479:infu_each_src_dest0' C:/opscode/chefdk/embedded/lib/ruby/2.5.0/fileutils.rb:1461:in fu_each_src_dest' C:/opscode/chefdk/embedded/lib/ruby/2.5.0/fileutils.rb:358:incp' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/berkshelf-7.0.2/lib/berkshelf/berksfile.rb:663:in `block (3 levels ) in vendor'

C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/berkshelf-7.0.2/lib/berkshelf/berksfile.rb:661:in each' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/berkshelf-7.0.2/lib/berkshelf/berksfile.rb:661:inblock (2 levels ) in vendor'

C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/berkshelf-7.0.2/lib/berkshelf/berksfile.rb:636:in each' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/berkshelf-7.0.2/lib/berkshelf/berksfile.rb:636:inblock in vendor '

C:/opscode/chefdk/embedded/lib/ruby/2.5.0/tmpdir.rb:89:in mktmpdir' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/berkshelf-7.0.2/lib/berkshelf/berksfile.rb:631:invendor' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chefspec-7.2.1/lib/chefspec/berkshelf.rb:39:in block in setup!' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/thor-0.20.0/lib/thor/shell/basic.rb:20:inmute' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chefspec-7.2.1/lib/chefspec/berkshelf.rb:35:in setup!' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chefspec-7.2.1/lib/chefspec/berkshelf.rb:61:inblock (2 levels) i n <top (required)>'

C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:447:in instance_exec' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb:447:ininstance_exec' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb:350:in run' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/configuration.rb:1981:inblock in run_suite_hooks'

C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/configuration.rb:1979:in each' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/configuration.rb:1979:inrun_suit e_hooks'

C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/configuration.rb:1925:in `with_sui te_hooks'

C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:113:in `block in run_spe cs'

C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/reporter.rb:79:in report' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:112:inrun_specs' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:87:in run' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:71:inrun' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb:45:in invoke' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/rspec-core-3.7.1/exe/rspec:4:in<top (required)>' C:/opscode/chefdk/embedded/bin/rspec:23:in load' C:/opscode/chefdk/embedded/bin/rspec:23:in' Showing full backtrace because every line was filtered out. See docs for RSpec::Configuration#backtrace_exclusion_patterns and RSpec::Configuration#backtrace_inclusion_patterns for more information. Finished in 5.58 seconds (files took 7.71 seconds to load) 0 examples, 0 failures, 1 error occurred outside of examples

Verification of component 'package installation' succeeded. Verification of component 'delivery-cli' succeeded. Verification of component 'openssl' succeeded. Verification of component 'tk-policyfile-provisioner' succeeded. Verification of component 'chefspec' succeeded. Verification of component 'chef-client' succeeded. Verification of component 'fauxhai' succeeded. Verification of component 'kitchen-vagrant' succeeded. Verification of component 'opscode-pushy-client' succeeded. Verification of component 'berkshelf' succeeded. Verification of component 'chef-dk' succeeded. Verification of component 'knife-spork' succeeded. Verification of component 'chef-sugar' succeeded. Verification of component 'test-kitchen' succeeded. Verification of component 'inspec' succeeded. Verification of component 'git' succeeded. Verification of component 'chef-provisioning' succeeded. Verification of component 'generated-cookbooks-pass-chefspec' failed. PS C:\WINDOWS\system32>