Git Product home page Git Product logo

chef-repo's People

Contributors

logesheswar avatar morpheyesh avatar rajesh-rajagopal avatar ranjithamca avatar subashsethurajan avatar vinov-megam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chef-repo's Issues

couchdb cookbook execting error while run make install

execute[install couchdb] ran successfully\n\n
execute wget http://ftp.fau.de/apache/couchdb/source/1.6.1/apache-couchdb-1.6.1.tar.gz\x1b[0m * execute[tar xvzf apache-couchdb-] action run[2016-03-18T13:12:09+00:00]
INFO: Processing execute[tar xvzf apache-couchdb-
] action run (megam_couchdb::default line 35)\n[2016-03-18T13:12:09+00:00]
INFO: execute[tar xvzf apache-couchdb-] ran successfully\n\n execute tar xvzf apache-couchdb-\x1b[0m * bash[make] action run[2016-03-18T13:12:09+00:00]

INFO: Processing bash[make] action run (megam_couchdb::default line 37)\n\n

\x1b[31mError executing action run on resource 'bash[make]' =============================================================================

Mixlib::ShellOut::ShellCommandFailed ------------------------------------ Expected process to exit with [0], but received '2' ---- Begin output of "bash" "/tmp/chef-script20160318-1335-16jbd88" ---- STDOUT: checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk checking whether make sets $(MAKE)... yes checking how to create a ustar tar archive... gnutar checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept Ision compatibility... detected Erlang version: 0.0.0... STDERR: ./configure: line 18138: fg: no job control configure: error: The installed Erlang version must be >= R14B (erts-5.8.1) and =< 17 (erts-6.0) major_version does not match make: *** No rule to make target `install'. Stop. ---- End output of "bash" "/tmp/chef-script20160318-1335-16jbd88" ---- Ran "bash" "/tmp/chef-script20160318-1335-16jbd88" returned 2 Resource Declaration: ---------------------

In /var/lib/megam/gulp/chef-repo/cookbooks/megam_couchdb/recipes/default.rb

37: bash 'make' do
38: code <<-EOH
39: cd apache-couchdb-*
40: ./configure && make
41: make install
42: EOH
43: end
44: Compiled Resource: ------------------

Declared in /var/lib/megam/gulp/chef-repo/cookbooks/megam_couchdb/recipes/default.rb:37:in`from_file' bash("make") do action "run" retries 0 retry_delay 2 default_guard_interpreter :default command "make" backup 5 returns 0

code " cd apache-couchdb-\n
./configure && make\n
make install\n"
interpreter "bash"
declared_type :bash
cookbook_name :megam_couchdb recipe_name "default" end [2016-03-18T13:12:21+00:00] INFO: Running queued delayed notifications before re-raising exception\nRunning handlers:\x1b[0m\n[2016-03-18T13:12:21+00:00] ERROR: Running exception handlers\nRunning handlers complete[2016-03-18T13:12:21+00:00] ERROR: Exception handlers complete\n[2016-03-18T13:12:21+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out\nChef Client failed. 14 resources updated in 772.983609777 seconds\x1b[0m\n[2016-03-18T13:12:21+00:00] ERROR: bash[make](megam_couchdb::default line
37) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2'\n---- Begin output of
"bash" "/tmp/chef-script20160318-1335-16jbd88" ----\nSTDOUT: checking for a BSD-compatible install... /usr/bin/install -c\nchecking whether build environment is sane... yes\nchecking for a thread-safe mkdir -p... /bin/mkdir -p\nchecking for gawk... gawk\nchecking whether make sets $(MAKE)... yes\nchecking how to create a ustar tar archive... gnutar\nchecking for style of include used by make... GNU\nchecking -prototypes -Wwrite-strings \nchecking ICU_CXXFLAGS... -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long --std=c++0x \nchecking ICU_LIBS... -Wl,-Bsymbolic-functions -Wl,-z,relro -ldl -lm -L/usr/lib/x86_64-linux-gnu -licui18n -licuuc -licudata -ldl -lm \nchecking for curl-config... /usr/bin/curl-config\nchecking for curl (7.35.0) >= 7.18.0... yes\nchecking Erlang version compatibility... detected Erlang version: 0.0.0...\nSTDERR: ./configure: line 18138: fg: no job control\nconfigure: error: The installed Erlang version must be >= R14B (erts-5.8.1) and =< 17 (erts-6.0) major_version does not match\nmake: *
* No rule to make target `install'. Stop.\n---- End output of "bash" "/tmp/chef-script20160318-1335-16jbd88" ----\nRan "bash" "/tmp/chef-script20160318-1335-16jbd88" returned 2\n[2016-03-18T13:12:21+00:00]

FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)\n chefsolo run ended failed.\nexit status 1"
time="2016-03-18T13:12:21Z" level=error msg="Unable to stateup box : exit status 1"
time="2016-03-18T13:12:21Z" level=debug msg="contrasting.megambox.com_log:{18 Mar 16 13:12 UTC exit status 1 gulp overcompensation COM7873979593084011110}"

seru updates

  • seru to mask its command
  • seru to be loaded internally in the image

buildpacks changes

Now we move from separate builders to combined buildpacks repository.

Autouser creation for zarafa

At the very least we need to document how somebody can create an user in zarafa.
Also this can be automated in the zarafa cookbook.

$ ssh -i ~/.ssh/gce.key [email protected]
$ sudo -s
$ zarafa-admin -c demo -p demo@megam -e [email protected] -f "MEGAM" -a 2

( zarafa-admin -c -p -e -f -a )

Version upgrade of chef cookbooks

Keeping cookbooks perpertually upgradable is good, but we need to baseline and release incremental fixes.

What is our design and how will this approach work with our agent gulpd.?

chef-solo error on megam_rabbitmq cookbook

Recipe Compile Error in /var/lib/megam/gulp/chef-repo/cookbooks/megam_run/recipes/default.rb

NoMethodError

Undefined node attribute or method push' onnode'. To set an attribute, use `push=value' instead.

Cookbook Trace:

/var/lib/megam/gulp/chef-repo/cookbooks/megam_rabbitmq/recipes/default.rb:24:in from_file' /var/lib/megam/gulp/chef-repo/cookbooks/megam_route/definitions/route.rb:47:inblock in from_file'
/var/lib/megam/gulp/chef-repo/cookbooks/megam_route/recipes/default.rb:9:in from_file' /var/lib/megam/gulp/chef-repo/cookbooks/megam_run/recipes/default.rb:39:infrom_file'

Relevant File Content:

/var/lib/megam/gulp/chef-repo/cookbooks/megam_rabbitmq/recipes/default.rb:

17: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18: # See the License for the specific language governing permissions and
19: # limitations under the License.
20: #
21:
22: rsyslog_inputs=[]
23: rsyslog_inputs = node.default['rsyslog']['logs']
24>> rsyslog_inputs.push("/var/log/rabbitmq/rabbit@#{hostname}.log", "/var/log/megam/megamgulpd/megamgulpd.log")
25: node.override['rsyslog']['logs']= rsyslog_inputs
26:
27: node.set['heka']['logs']["#{node['megam']['deps']['component']['name']}"] = ["/var/log/rabbitmq/rabbit@#{hostname}.log", "/var/log/megam/megamgulpd/megamgulpd.log"]
28:
29: dir = "rabbitmq"
30:
31: include_recipe "erlang"
32:
33: #include_recipe "megam_ganglia::rabbit"

Running handlers:
[2016-01-22T14:04:32+01:00] ERROR: Running exception handlers
Running handlers complete
[2016-01-22T14:04:32+01:00] ERROR: Exception handlers complete
[2016-01-22T14:04:32+01:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 2.730853115 seconds
[2016-01-22T14:04:32+01:00] ERROR: Undefined node attribute or method push' onnode'. To set an attribute, use `push=value' instead.
[2016-01-22T14:04:32+01:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

separate recipes for all frameworks in megam_deps

megam_deps needs to load all the components of an assembly and checks the component type.
megam_deps::default(load assembly json to get domain and include it in megam_dns)
megam_deps::java
megam_deps::play

cookbook rabbitmq doesn't enable UI and restart service

t on servicerabbitmq-server, as it's already been queued\n * execute[Enable rabbitmq-plugin for rabbitmq_management ] action run[2016-03-18T13:07:44+00:00] INFO: Processing execute[Enable rabbitmq-plugin for rabbitmq_management ] action run (megam_rabbitmq::default line 118)\n\n

================================================================================ \x1b[31m
Error executing action run on resource 'execute[Enable rabbitmq-plugin for rabbitmq_management ]' ================================================================================

   Mixlib::ShellOut::ShellCommandFailed   ------------------------------------   Expected process to exit with [0], but received '1'    ---- Begin output of rabbitmq-plugins enable rabbitmq_management ----    STDOUT:     STDERR: erlexec: HOME must be set    ---- End output of rabbitmq-plugins enable rabbitmq_management ----    Ran rabbitmq-plugins enable rabbitmq_management returned 1       Resource Declaration:   ---------------------   # In /var/lib/megam/gulp/chef-repo/cookbooks/megam_rabbitmq/recipes/default.rb        118: execute \"Enable rabbitmq-plugin for rabbitmq_management \" do    119:   command \"rabbitmq-plugins enable rabbitmq_management\"    120: end    121:         Compiled Resource:   ------------------   # Declared in /var/lib/megam/gulp/chef-repo/cookbooks/megam_rabbitmq/recipes/default.rb:118:in `from_file'        execute(\"Enable rabbitmq-plugin for rabbitmq_management \") do      action \"run\"      retries 0      retry_delay 2      default_guard_interpreter :execute      command \"rabbitmq-plugins enable rabbitmq_management\"      backup 5      returns 0      declared_type :execute      cookbook_name :megam_rabbitmq      recipe_name \"default\"    end    [2016-03-18T13:07:44+00:00] INFO: Running queued delayed notifications before re-raising exception\n[2016-03-18T13:07:44+00:00] INFO: template[/etc/rabbitmq/rabbitmq-env.conf] sending restart action to service[rabbitmq-server] (delayed)\n  * service[rabbitmq-server] action restart[2016-03-18T13:07:44+00:00] INFO: Processing service[rabbitmq-server] action restart (megam_rabbitmq::default line 178)\n\n       ================================================================================   \

x1b[31mError executing action restart on resource 'service[rabbitmq-server]'
================================================================================ Mixlib::ShellOut::ShellCommandFailed ------------------------------------ Expected process to exit with [0], but received '1' ---- Begin output of stop rabbitmq-server && start rabbitmq-server ---- STDOUT: STDERR: stop: Unknown job: rabbitmq-server ---- End output of stop rabbitmq-server && start rabbitmq-server ---- Ran stop rabbitmq-server && start rabbitmq-server returned 1 Resource Declaration: --------------------- # In /var/lib/megam/gulp/chef-repo/cookbooks/megam_rabbitmq/recipes/default.rb 178: service node['rabbitmq']['service_name'] do 179: provider Chef::Provider::Service::Upstart 180: action [:enable, :start] 181: restart_command "stop #{node['rabbitmq']['service_name']} && start #{node['rabbitmq']['service_name']}" 182: only_if { File.exist?('/etc/init.d/rabbitmq-server') } 183: end 184: Compiled Resource: ------------------ # Declared in /var/lib/megam/gulp/chef-repo/cookbooks/megam_rabbitmq/recipes/default.rb:178:in `from_file' service("rabbitmq-server") do provider Chef::Provider::Service::Upstart action [:enable, :start] supports {:restart=>false, :reload=>false, :status=>false} retries 0 retry_delay 2 default_guard_interpreter :default service_name "rabbitmq-server" pattern "rabbitmq-server" restart_command "stop rabbitmq-server && start rabbitmq-server" declared_type :service cookbook_name :megam_rabbitmq recipe_name "default" only_if { #code block } end \x1b[0m\nRunning handlers:\x1b[0m\n[2016-03-18T13:07:44+00:00] ERROR: Running exception handlers\nRunning handlers complete[2016-03-18T13:07:44+00:00] ERROR: Exception handlers complete\n[2016-03-18T13:07:44+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out\nChef Client failed. 12 resources updated in 465.454285083 seconds\x1b[0m\n[2016-03-18T13:07:44+00:00] ERROR: Chef::Exceptions::MultipleFailures\n[2016-03-18T13:07:45+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)\n chefsolo run ended failed.\nexit status 1"
time="2016-03-18T13:07:45Z" level=error msg="Unable to stateup box : exit status 1"
time="2016-03-18T13:07:45Z" level=debug msg="nicknames.megambox.com_log:{18 Mar 16 13:07 UTC chefsolo run ended failed. gulp subsides COM6943313236541040135}"
time="2016-03-18T13:07:45Z" level=debug msg="nicknames.megambox.com_log:{18 Mar 16 13:07 UTC exit status 1 gulp subsides COM6943313236541040135}"

lanuch centos7 chef-solo error

Recipe Compile Error in /var/lib/megam/gulp/chef-repo/cookbooks/mysql/libraries/z_provider_mapping.rb

NameError

uninitialized constant Chef::Provider::MysqlService::Sysvinit

Cookbook Trace:

/var/lib/megam/gulp/chef-repo/cookbooks/mysql/libraries/z_provider_mapping.rb:6:in `<top (required)>'

Relevant File Content:

/var/lib/megam/gulp/chef-repo/cookbooks/mysql/libraries/z_provider_mapping.rb:

1: # provider mappings for Chef 11
2:
3: #########
4: # service
5: #########
6>> Chef::Platform.set platform: :amazon, resource: :mysql_service, provider: Chef::Provider::MysqlService::Sysvinit
7: Chef::Platform.set platform: :centos, version: '< 7.0', resource: :mysql_service, provider: Chef::Provider::MysqlService::Sysvinit
8: Chef::Platform.set platform: :centos, version: '>= 7.0', resource: :mysql_service, provider: Chef::Provider::MysqlService::Systemd
9: Chef::Platform.set platform: :debian, resource: :mysql_service, provider: Chef::Provider::MysqlService::Sysvinit
10: Chef::Platform.set platform: :fedora, version: '< 19', resource: :mysql_service, provider: Chef::Provider::MysqlService::Sysvinit
11: Chef::Platform.set platform: :fedora, version: '>= 19', resource: :mysql_service, provider: Chef::Provider::MysqlService::Systemd
12: Chef::Platform.set platform: :omnios, resource: :mysql_service, provider: Chef::Provider::MysqlService::Smf
13: Chef::Platform.set platform: :redhat, version: '< 7.0', resource: :mysql_service, provider: Chef::Provider::MysqlService::Sysvinit
14: Chef::Platform.set platform: :redhat, version: '>= 7.0', resource: :mysql_service, provider: Chef::Provider::MysqlService::Systemd
15: Chef::Platform.set platform: :scientific, version: '< 7.0', resource: :mysql_service, provider: Chef::Provider::MysqlService::Sysvinit

Running handlers:
[2016-01-22T08:48:02-05:00] ERROR: Running exception handlers
Running handlers complete
[2016-01-22T08:48:02-05:00] ERROR: Exception handlers complete
[2016-01-22T08:48:02-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 1.640491442 seconds
[2016-01-22T08:48:02-05:00] ERROR: uninitialized constant Chef::Provider::MysqlService::Sysvinit
[2016-01-22T08:48:02-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.