Project

Profile

Help

Task #6923

'provider' file is not generated

Added by Mark Zaslavskiy over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
High
Assignee:
Timofey Turenko
Category:
mdbci testing
Sprint/Milestone:
Start date:
31.03.2016
Due date:
% Done:

0%

Estimated time:
2:00 h
Target branch:
Test scenario:

Description

[13:25:30] Тимофей Туренко: [ec2-user@ip-10-209-156-208 ~]$ sudo cat /var/chef/cache/chef-stacktrace.out
Generated at 2016-03-31 10:20:30 +0000
Errno::ENOENT: No such file or directory @ rb_sysopen - /vagrant/provider
/tmp/vagrant-chef/5647e9fbc8a74e8fe1cfa518d9f38f42/cookbooks/galera/recipes/default.rb:253:in `read'
/tmp/vagrant-chef/5647e9fbc8a74e8fe1cfa518d9f38f42/cookbooks/galera/recipes/default.rb:253:in `from_file'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/mixin/from_file.rb:30:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/mixin/from_file.rb:30:in `from_file'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/cookbook_version.rb:233:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/run_context.rb:332:in `load_recipe'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/run_context/cookbook_compiler.rb:140:in `block in compile_recipes'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/run_context/cookbook_compiler.rb:138:in `each'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/run_context/cookbook_compiler.rb:138:in `compile_recipes'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/run_context/cookbook_compiler.rb:75:in `compile'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/run_context.rb:167:in `load'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/policy_builder/expand_node_object.rb:97:in `setup_run_context'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/client.rb:508:in `setup_run_context'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/client.rb:278:in `run'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/application.rb:270:in `block in fork_chef_client'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/application.rb:258:in `fork'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/application.rb:258:in `fork_chef_client'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/application.rb:223:in `block in run_chef_client'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/local_mode.rb:44:in `with_server_connectivity'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/application.rb:211:in `run_chef_client'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/application/solo.rb:301:in `block in interval_run_chef_client'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/application/solo.rb:290:in `loop'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/application/solo.rb:290:in `interval_run_chef_client'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/application/solo.rb:269:in `run_application'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/lib/chef/application.rb:58:in `run'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.7/bin/chef-solo:25:in `<top (required)>'
/bin/chef-solo:50:in `load'
[13:25:47] Тимофей Туренко: файла provider действительно нет
[13:26:07] Тимофей Туренко: еще нет и на хосте
[13:26:36] Тимофей Туренко: вот лог http://max-tst-01.mariadb.com:8089/view/test/job/run_named_test/6/console

1.2.1-binlog_router_trx-mar31-libvirt.json (4.99 KB) 1.2.1-binlog_router_trx-mar31-libvirt.json failed coonfig Timofey Turenko, 31.03.2016 17:38
1.2.1-binlog_router_trx-mar31.json (3.94 KB) 1.2.1-binlog_router_trx-mar31.json failed coonfig Timofey Turenko, 31.03.2016 17:38

History

#2 Updated by Timofey Turenko over 5 years ago

here are two configuration - try to "mdbci generate " with them and get directory with missing 'provider' file

#3 Updated by Timofey Turenko over 5 years ago

  • Subject changed from AWS deploy failed to 'provider' file is not generated

#4 Updated by Mark Zaslavskiy over 5 years ago

по поводу 6923: там что-то не так не только с AWS, но и с libvirt. Конфигурации я прицепил. Но там еще и вот такая вещь: вместо m1.large машин как определено в боксе, там поднялись m1.micro. Я посмотрел варгант файл, там всё нормально:
[19:50]
  1. --> Begin definition for machine: node0
    config.vm.define :node0 do |node0|
node0.vm.provider :aws do |aws,override|
aws.ami = "ami-1c2e8b6b"
aws.instance_type = "m1.large"
override.ssh.username = "ec2-user"
end
node0.vm.synced_folder "~/build-scripts/test-setup-scripts/cnf", "/home/vagrant/cnf_templates", type: "rsync"
##--- Chef binding ---
node0.vm.provision "chef_solo" do |chef|
chef.cookbooks_path = "../recipes/cookbooks/"
chef.roles_path = "."
chef.add_role "node0"
chef.synced_folder_type = "rsync"
end #<-- end of chef binding

end # <-- End AWS definition for machine: node0

#5 Updated by Mark Zaslavskiy over 5 years ago

  • Assignee changed from Mark Zaslavskiy to Alexander Kaluzhny

#6 Updated by Mark Zaslavskiy over 5 years ago

  • Priority changed from Normal to High

#7 Updated by Mark Zaslavskiy over 5 years ago

Пробую сгенерировать конфиги, получаю

INFO:  Repo key is maxscale@default+centos^7 ... FOUND
ERROR:  /home/vagrant/mdbci/core/generator.rb:518:in `generate'
/home/vagrant/mdbci/core/session.rb:464:in `generate'
/home/vagrant/mdbci/core/session.rb:409:in `commands'
./mdbci:112:in `<main>'
ERROR:  Generated Vagrantfile is empty! Please check configuration file and regenerate it.

#8 Updated by Alexander Kaluzhny over 5 years ago

  • Status changed from New to Active / In progress

#9 Updated by Alexander Kaluzhny over 5 years ago

  • Estimated time set to 2:00 h

#11 Updated by Alexander Kaluzhny over 5 years ago

#14 Updated by Alexander Kaluzhny over 5 years ago

#15 Updated by Alexander Kaluzhny over 5 years ago

  • Status changed from Active / In progress to Review
  • Assignee changed from Alexander Kaluzhny to Mark Zaslavskiy

#16 Updated by Alexander Kaluzhny over 5 years ago

  • Status changed from Review to Testing
  • Assignee changed from Mark Zaslavskiy to Timofey Turenko

#17 Updated by Timofey Turenko over 5 years ago

  • Status changed from Testing to Closed

fixed, works. Tested with 15 VMs AWS configuration. Closing.

Also available in: Atom PDF