Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-1265

SDC OOM Install elastic search in crashbackloop

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Highest Highest
    • Beijing Release
    • Beijing Release
    • None
    • SB-04 OOM install

      elastic search in crashloopback.

      docker logs shows an error in the schef runbook with the sdc

      2018-04-25T13:00:06+00:00] INFO: Storing updated cookbooks/sdc-elasticsearch/recipes/ES_1_setup_elasticsearch.rb in the cache.

      • sdc-elasticsearch (0.0.0)
        Installing Cookbook Gems:
        Compiling Cookbooks...

      ================================================================================
      Recipe Compile Error in /root/chef-solo/cache/cookbooks/sdc-elasticsearch/recipes/ES_1_setup_elasticsearch.rb
      ================================================================================

      NoMethodError
      -------------
      undefined method `each' for "dev-sdc-es.onap":String

      Cookbook Trace:
      ---------------
      /root/chef-solo/cache/cookbooks/sdc-elasticsearch/recipes/ES_1_setup_elasticsearch.rb:3:in `from_file'

      Relevant File Content:
      ----------------------
      /root/chef-solo/cache/cookbooks/sdc-elasticsearch/recipes/ES_1_setup_elasticsearch.rb:

      1: elasticsearch_list = ''
      2:
      3>> node['Nodes']['ES'].each do |item|
      4: elasticsearch_list += "- " + item + ":9300\n"
      5: end
      6:
      7:
      8: template "/usr/share/elasticsearch/config/elasticsearch.yml" do
      9: source "ES-elasticsearch.yml.erb"
      10: owner "elasticsearch"
      11: group "elasticsearch"
      12: mode "0755"

      System Info:
      ------------
      chef_version=14.0.202
      platform=alpine
      platform_version=3.7.0
      ruby=ruby 2.4.4p296 (2018-03-28 revision 63013) [x86_64-linux-musl]
      program_name=/usr/bin/chef-solo
      executable=/usr/bin/chef-solo

      Running handlers:
      [2018-04-25T13:00:06+00:00] ERROR: Running exception handlers
      [2018-04-25T13:00:06+00:00] ERROR: Running exception handlers
      Running handlers complete
      [2018-04-25T13:00:06+00:00] ERROR: Exception handlers complete
      [2018-04-25T13:00:06+00:00] ERROR: Exception handlers complete
      Chef Client failed. 0 resources updated in 01 seconds
      [2018-04-25T13:00:06+00:00] FATAL: Stacktrace dumped to /root/chef-solo/cache/chef-stacktrace.out
      [2018-04-25T13:00:06+00:00] FATAL: Stacktrace dumped to /root/chef-solo/cache/chef-stacktrace.out
      [2018-04-25T13:00:06+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
      [2018-04-25T13:00:06+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
      [2018-04-25T13:00:06+00:00] FATAL: NoMethodError: undefined method `each' for "dev-sdc-es.onap":String
      [2018-04-25T13:00:06+00:00] FATAL: NoMethodError: undefined method `each' for "dev-sdc-es.onap":String

            bdfreeman1421 bdfreeman1421
            bdfreeman1421 bdfreeman1421
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: