chef_solo's People
Forkers
munsongr crboyd quikvoip freepenguins grengojbo davemay99 dschreiber jmordica jeai2600hz drykod snelgoedkoop soitun asherbondchef_solo's Issues
update or install of Kazoo
an error occurs after running chef-solo and it gets stuck at yum_package[kazoo]. This is latest chef-solo cluster and noticed this on the whapps boxes ofcourse. here is the output of it
[2013-01-22T18:58:27+00:00] INFO: Processing yum_package[kazoo] action upgrade (whistle::rpm line 22)
Error executing action upgrade
on resource 'yum_package[kazoo]'
RegexpError
Stack overflow in regexp matcher: /^(\S+) ([0-9]+) (\S+) (\S+) (\S+) [(.*)] ([i,a,r]) (\S+)$/
Resource Declaration:
In /var/chef_solo/cookbooks/whistle/recipes/rpm.rb
22: yum_package "kazoo" do
23: action :upgrade
24: flush_cache [ :before ]
25: notifies :restart, resources(:bluepill_service => "whapps")
26: notifies :restart, resources(:bluepill_service => "ecallmgr")
27: end
28:
Compiled Resource:
Declared in /var/chef_solo/cookbooks/whistle/recipes/rpm.rb:22:in `from_file'
yum_package("kazoo") do
retry_delay 2
flush_cache {:before=>true, :after=>false}
recipe_name "rpm"
provider Chef::Provider::Package::Yum
retries 0
cookbook_name :whistle
action [:upgrade]
package_name "kazoo"
end
[2013-01-22T18:59:13+00:00] DEBUG: Re-raising exception: RegexpError - yum_package[kazoo](whistle::rpm line 22) had an error: RegexpError: Stack overflow in regexp matcher: /^(\S+) ([0-9]+) (\S+) (\S+) (\S+) [(.*)] ([i,a,r]) (\S+)$/
Permissions issues on /srv/db after a deployment
We are using the following for bigcouch service:
https://github.com/2600hz/chef_solo/blob/master/cookbooks/bigcouch/recipes/default.rb#L71-L75
The problem is that the init script will start bigcouch as root and mess the permissions on the shard files. We should be using bluepill, as we do for the other services.
new cluster with chef-solo
here is info after chef-solo run and it errors out here.....
[2013-01-22T18:58:27+00:00] INFO: Processing yum_package[kazoo] action upgrade (whistle::rpm line 22)
Error executing action upgrade
on resource 'yum_package[kazoo]'
RegexpError
Stack overflow in regexp matcher: /^(\S+) ([0-9]+) (\S+) (\S+) (\S+) [(.*)] ([i,a,r]) (\S+)$/
Resource Declaration:
In /var/chef_solo/cookbooks/whistle/recipes/rpm.rb
22: yum_package "kazoo" do
23: action :upgrade
24: flush_cache [ :before ]
25: notifies :restart, resources(:bluepill_service => "whapps")
26: notifies :restart, resources(:bluepill_service => "ecallmgr")
27: end
28:
Compiled Resource:
Declared in /var/chef_solo/cookbooks/whistle/recipes/rpm.rb:22:in `from_file'
yum_package("kazoo") do
retry_delay 2
flush_cache {:before=>true, :after=>false}
recipe_name "rpm"
provider Chef::Provider::Package::Yum
retries 0
cookbook_name :whistle
action [:upgrade]
package_name "kazoo"
end
[2013-01-22T18:59:13+00:00] DEBUG: Re-raising exception: RegexpError - yum_package[kazoo](whistle::rpm line 22) had an error: RegexpError: Stack overflow in regexp matcher: /^(\S+) ([0-9]+) (\S+) (\S+) (\S+) [(.*)] ([i,a,r]) (\S+)$/
Move BigCouch logs to /var/log
Currently, all logs are going to /var/log/ except BigCouch, which are going to /opt/bigcouch/var/log
Could we standardize their location to /var/log?
In etc/local.ini:
[log]
file = /var/log/bigcouch.log
should be all that's required.
Create /etc/kazoo/config.ini
The new version (v2.13.X) uses /etc/kazoo/config.ini as a configuration file. This file needs to be set and added in the newest version to run properly.
Rabbitmq Version Issue
When I ran the chef script today to look at your Kazoo product, I got errors. Your script refers to an older version of rabbitmq. The version installed on my machine is rabbitmq_server-3.1.5. I edited the local cookbook on my server but maybe it needs to be updated on github. Using Centos 6.4 64bit.
ecallmgr and whapps don't start after reboot
hi Steve,
I'm trying to install Kazoo by following these instructions
https://2600hz.atlassian.net/wiki/display/docs/Deploying+Kazoo+with+Chef+Solo
after chef finishes, ecallmgr and whapps processes are run by bluepill, but after a reboot they are not started automatically.
This is CentOS 6.3 64-bit.
I'll be glad to help in further testing, but I'm not (yet) fully familiar with Kazoo internals, chef and bluepill.
Here's the difference in processes before and after reboot:
https://gist.github.com/3390275
regards,
stanislav
Error on Chef Solo Script
when i run this command : chef-solo -j node.json -c solo.rb -l debug
im getting this error on the process
- template[/etc/selinux/config] action create[2013-03-23T03:35:57+03:00] INFO: Processing template[/etc/selinux/config] actio n create (selinux::default line 16)
* Parent directory /etc/selinux does not exist.
Error executing action
create
on resource 'template[/etc/selinux/config]'
Chef::Exceptions::EnclosingDirectoryDoesNotExist
Parent directory /etc/selinux does not exist.
Resource Declaration:
In /var/chef_solo/cookbooks/selinux/recipes/default.rb
16: template "/etc/selinux/config" do
17: source "config.erb"
18: owner "root"
19: group "root"
20: notifies :run, resources(:execute => "disable_selinux"), :immediately
21: end
Compiled Resource:
Declared in /var/chef_solo/cookbooks/selinux/recipes/default.rb:16:in `from_file'
template("/etc/selinux/config") do
provider Chef::Provider::Template
source "config.erb"
owner "root"
cookbook_name :selinux
backup 5
action "create"
group "root"
retry_delay 2
path "/etc/selinux/config"
retries 0
recipe_name "default"
end
[2013-03-23T03:35:57+03:00] INFO: Running queued delayed notifications before re-raising exception
[2013-03-23T03:35:57+03:00] DEBUG: Re-raising exception: Chef::Exceptions::EnclosingDirectoryDoesNotExist - template[/etc/selin ux/config](selinux::default line 16) had an error: Chef::Exceptions::EnclosingDirectoryDoesNotExist: Parent directory /etc/sel inux does not exist.
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/mixin/why_run.rb:241:in run' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/mixin/why_run.rb:322:in
run'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/mixin/why_run.rb:321:in each' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/mixin/why_run.rb:321:in
run'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/provider.rb:128:in process_resource_requirements' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/provider.rb:104:in
run_action'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/resource.rb:603:in run_action' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/runner.rb:50:in
run_action'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/runner.rb:82:in converge' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/runner.rb:82:in
each'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/runner.rb:82:in converge' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/resource_collection.rb:94:in
execute_each_resource'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in call' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in
call_it erator_block'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in step' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in
iterate '
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in each_wit h_index' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/resource_collection.rb:92:in
execute_each_resource'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/runner.rb:81:in converge' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/client.rb:404:in
converge'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/client.rb:469:in do_run' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/client.rb:200:in
run'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/application.rb:190:in run_chef_client' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/application/solo.rb:239:in
run_application'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/application/solo.rb:231:in loop' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/application/solo.rb:231:in
run_application'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/application.rb:73:in run' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/chef-solo:25 /usr/local/rvm/gems/ruby-1.8.7-p371/bin/chef-solo:19:in
load'
/usr/local/rvm/gems/ruby-1.8.7-p371/bin/chef-solo:19
/usr/local/rvm/gems/ruby-1.8.7-p371/bin/ruby_noexec_wrapper:14
[2013-03-23T03:35:57+03:00] ERROR: Running exception handlers
[2013-03-23T03:35:57+03:00] ERROR: Exception handlers complete
Chef Client failed. 5 resources updated
[2013-03-23T03:35:57+03:00] FATAL: Stacktrace dumped to /var/chef_solo/chef-stacktrace.out
[2013-03-23T03:35:57+03:00] DEBUG: Chef::Exceptions::EnclosingDirectoryDoesNotExist: template[/etc/selinux/config](selinux::de fault line 16) had an error: Chef::Exceptions::EnclosingDirectoryDoesNotExist: Parent directory /etc/selinux does not exist.
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/mixin/why_run.rb:241:in run' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/mixin/why_run.rb:322:in
run'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/mixin/why_run.rb:321:in each' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/mixin/why_run.rb:321:in
run'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/provider.rb:128:in process_resource_requirements' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/provider.rb:104:in
run_action'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/resource.rb:603:in run_action' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/runner.rb:50:in
run_action'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/runner.rb:82:in converge' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/runner.rb:82:in
each'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/runner.rb:82:in converge' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/resource_collection.rb:94:in
execute_each_resource'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in call' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in
call_iter ator_block'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in step' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in
iterate'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in each_with_ index' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/resource_collection.rb:92:in
execute_each_resource'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/runner.rb:81:in converge' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/client.rb:404:in
converge'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/client.rb:469:in do_run' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/client.rb:200:in
run'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/application.rb:190:in run_chef_client' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/application/solo.rb:239:in
run_application'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/application/solo.rb:231:in loop' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/application/solo.rb:231:in
run_application'
/usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/../lib/chef/application.rb:73:in run' /usr/local/rvm/gems/ruby-1.8.7-p371/gems/chef-11.4.0/bin/chef-solo:25 /usr/local/rvm/gems/ruby-1.8.7-p371/bin/chef-solo:19:in
load'
/usr/local/rvm/gems/ruby-1.8.7-p371/bin/chef-solo:19
/usr/local/rvm/gems/ruby-1.8.7-p371/bin/ruby_noexec_wrapper:14
[2013-03-23T03:35:57+03:00] FATAL: Chef::Exceptions::EnclosingDirectoryDoesNotExist: template[/etc/selinux/config](selinux::de fault line 16) had an error: Chef::Exceptions::EnclosingDirectoryDoesNotExist: Parent directory /etc/selinux does not exist.
Apps node should point to the same RabbitMQ and have a failover set
Right now, we are doing:
Which set each apps node to use its own rabbit. All apps node of a cluster should point to the same rabbit and have a failover.
Supports encrypted data bag?
I have a created data bag using knife_solo_data_bag and I am getting this error:
NoMethodError: users_manage[mb](financeRails::default line 9) had an error: NoMethodError: undefined method `has_key?' for #Chef::EncryptedDataBagItem:0x00000002143e60
Might be related to this:
thbishop/knife-solo_data_bag#6
Kazoo 2.9. Chef solo upgrade:Parent directory does not exist
I'm running Chef to upgrade to Kazoo 2.9 and get an error message which looks like it's related to the directory structure changing:
[2013-02-12T22:28:22+00:00] DEBUG: Rendered content's checksum: f1bba5782e9cefc0a70ea2efd3cb743056cf5ec679b416405125a198de8c281b
--- /opt/kazoo/whistle_apps/priv/startup.config 2013-02-08 01:50:32.000000000 +0000
+++ /tmp/chef-rendered-template20130212-8611-1vkb6r0-0 2013-02-12 22:28:22.538314141 +0000
@@ -1 +1,2 @@
-{whapps, [registrar,stepswitch,sysconf,media_mgr,callflow,notify,cdr,crossbar,trunkstore,conference,fax,hangups]}.
+{whapps, [sysconf, notify, cdr, conference, stepswitch, callflow, crossbar, media_mgr, hangups, registrar]}.
+{nodes, []}.
[2013-02-12T22:28:22+00:00] INFO: template[/opt/kazoo/whistle_apps/priv/startup.config] backed up to /var/chef/backup/opt/kazoo/whistle_apps/priv/startup.config.chef-20130212222822
[2013-02-12T22:28:22+00:00] INFO: template[/opt/kazoo/whistle_apps/priv/startup.config] updated content
[2013-02-12T22:28:22+00:00] INFO: template[/opt/kazoo/whistle_apps/priv/startup.config] owner changed to 5001
[2013-02-12T22:28:22+00:00] INFO: template[/opt/kazoo/whistle_apps/priv/startup.config] group changed to 5001
[2013-02-12T22:28:22+00:00] INFO: template[/opt/kazoo/whistle_apps/priv/startup.config] mode changed to 644
[2013-02-12T22:28:22+00:00] INFO: Processing template[/opt/kazoo/lib/whistle_couch-1.0.0/priv/startup.config] action create (whistle::rpm line 77)
Error executing action create
on resource 'template[/opt/kazoo/lib/whistle_couch-1.0.0/priv/startup.config]'
Chef::Exceptions::EnclosingDirectoryDoesNotExist
Parent directory /opt/kazoo/lib/whistle_couch-1.0.0/priv does not exist.
Resource Declaration:
In /var/chef_solo/cookbooks/whistle/recipes/rpm.rb
77: template "#{node[:kazoo][:homedir]}/lib/whistle_couch-1.0.0/priv/startup.config" do
78: source "whistle_couch-1.0.0_priv_startup.config.erb"
79: owner "kazoo"
80: group "kazoo"
81: mode "0644"
82: end
83:
Compiled Resource:
Declared in /var/chef_solo/cookbooks/whistle/recipes/rpm.rb:77:in `from_file'
template("/opt/kazoo/lib/whistle_couch-1.0.0/priv/startup.config") do
recipe_name "rpm"
action "create"
mode "0644"
cookbook_name :whistle
path "/opt/kazoo/lib/whistle_couch-1.0.0/priv/startup.config"
retry_delay 2
group "kazoo"
provider Chef::Provider::Template
source "whistle_couch-1.0.0_priv_startup.config.erb"
backup 5
retries 0
owner "kazoo"
end
[2013-02-12T22:28:22+00:00] DEBUG: Re-raising exception: Chef::Exceptions::EnclosingDirectoryDoesNotExist - template[/opt/kazoo/lib/whistle_couch-1.0.0/priv/startup.config](whistle::rpm line 77) had an error: Chef::Exceptions::EnclosingDirectoryDoesNotExist: Parent directory /opt/kazoo/lib/whistle_couch-1.0.0/priv does not exist.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.