Uploaded image for project: 'ONAP Operations Manager'
  1. ONAP Operations Manager
  2. OOM-1002

SDC-ES no longer starting in OOM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • Beijing Release
    • None
    • None

       

      Something changed recently which broke SDC-ES in OOM.

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

      sdc/sdc-os-chef$ git log ./sdc-elasticsearch/chef-repo/cookbooks/sdc-elasticsearch/recipes/ES_1_setup_elasticsearch.rb

       

      kubectl -n onap logs dev-sdc-es-5c8cb57d9d-2lr8f
      The environment variable HTTP_PROXY is discouraged.  Use http_proxy.
      WARN: Unresolved specs during Gem::Specification.reset:
            chef-zero (>= 13.0)
      WARN: Clearing out unresolved specs.
      Please report a bug if this causes problems.
      [2018-04-24T18:19:58+00:00] INFO: Started chef-zero at chefzero://localhost:1 with repository at /root/chef-solo
        One version per cookbook
      
      [2018-04-24T18:19:58+00:00] INFO: Started chef-zero at chefzero://localhost:1 with repository at /root/chef-solo
        One version per cookbook
      
      Starting Chef Client, version 14.0.202
      [2018-04-24T18:19:59+00:00] INFO: *** Chef 14.0.202 ***
      [2018-04-24T18:19:59+00:00] INFO: *** Chef 14.0.202 ***
      [2018-04-24T18:19:59+00:00] INFO: Platform: x86_64-linux-musl
      [2018-04-24T18:19:59+00:00] INFO: Platform: x86_64-linux-musl
      [2018-04-24T18:19:59+00:00] INFO: Chef-client pid: 8
      [2018-04-24T18:19:59+00:00] INFO: Chef-client pid: 8
      [2018-04-24T18:19:59+00:00] INFO: The plugin path /etc/chef/ohai/plugins does not exist. Skipping...
      [2018-04-24T18:19:59+00:00] INFO: The plugin path /etc/chef/ohai/plugins does not exist. Skipping...
      [2018-04-24T18:20:01+00:00] INFO: Setting the run_list to ["role[elasticsearch]"] from CLI options
      [2018-04-24T18:20:01+00:00] INFO: Setting the run_list to ["role[elasticsearch]"] from CLI options
      [2018-04-24T18:20:01+00:00] INFO: Run List is [role[elasticsearch]]
      [2018-04-24T18:20:01+00:00] INFO: Run List is [role[elasticsearch]]
      [2018-04-24T18:20:01+00:00] INFO: Run List expands to [sdc-elasticsearch::ES_1_setup_elasticsearch, sdc-elasticsearch::ES_2_setup_logging, sdc-elasticsearch::ES_3_prepareProbeFile]
      [2018-04-24T18:20:01+00:00] INFO: Run List expands to [sdc-elasticsearch::ES_1_setup_elasticsearch, sdc-elasticsearch::ES_2_setup_logging, sdc-elasticsearch::ES_3_prepareProbeFile]
      [2018-04-24T18:20:01+00:00] INFO: Starting Chef Run for dev-sdc-es-5c8cb57d9d-2lr8f
      [2018-04-24T18:20:01+00:00] INFO: Starting Chef Run for dev-sdc-es-5c8cb57d9d-2lr8f
      [2018-04-24T18:20:01+00:00] INFO: Running start handlers
      [2018-04-24T18:20:01+00:00] INFO: Running start handlers
      [2018-04-24T18:20:01+00:00] INFO: Start handlers complete.
      [2018-04-24T18:20:01+00:00] INFO: Start handlers complete.
      resolving cookbooks for run list: ["sdc-elasticsearch::ES_1_setup_elasticsearch", "sdc-elasticsearch::ES_2_setup_logging", "sdc-elasticsearch::ES_3_prepareProbeFile"]
      [2018-04-24T18:20:01+00:00] INFO: Loading cookbooks [sdc-elasticsearch@0.0.0]
      [2018-04-24T18:20:01+00:00] INFO: Loading cookbooks [sdc-elasticsearch@0.0.0]
      Synchronizing Cookbooks:
      [2018-04-24T18:20:01+00:00] INFO: Storing updated cookbooks/sdc-elasticsearch/templates/default/ES-elasticsearch.yml.erb in the cache.
      [2018-04-24T18:20:01+00:00] INFO: Storing updated cookbooks/sdc-elasticsearch/templates/default/ES-elasticsearch.yml.erb in the cache.
      [2018-04-24T18:20:01+00:00] INFO: Storing updated cookbooks/sdc-elasticsearch/files/default/logging.yml in the cache.
      [2018-04-24T18:20:01+00:00] INFO: Storing updated cookbooks/sdc-elasticsearch/files/default/logging.yml in the cache.
      [2018-04-24T18:20:01+00:00] INFO: Storing updated cookbooks/sdc-elasticsearch/recipes/ES_2_setup_logging.rb in the cache.
      [2018-04-24T18:20:01+00:00] INFO: Storing updated cookbooks/sdc-elasticsearch/recipes/ES_2_setup_logging.rb in the cache.
      [2018-04-24T18:20:01+00:00] INFO: Storing updated cookbooks/sdc-elasticsearch/recipes/ES_1_setup_elasticsearch.rb in the cache.
      [2018-04-24T18:20:01+00:00] INFO: Storing updated cookbooks/sdc-elasticsearch/recipes/ES_1_setup_elasticsearch.rb in the cache.
      [2018-04-24T18:20:01+00:00] INFO: Storing updated cookbooks/sdc-elasticsearch/templates/default/ready-probe.sh.erb in the cache.
      [2018-04-24T18:20:01+00:00] INFO: Storing updated cookbooks/sdc-elasticsearch/templates/default/ready-probe.sh.erb in the cache.
      [2018-04-24T18:20:01+00:00] INFO: Storing updated cookbooks/sdc-elasticsearch/recipes/ES_3_prepareProbeFile.rb in the cache.
      [2018-04-24T18:20:01+00:00] INFO: Storing updated cookbooks/sdc-elasticsearch/recipes/ES_3_prepareProbeFile.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-24T18:20:01+00:00] ERROR: Running exception handlers
      [2018-04-24T18:20:01+00:00] ERROR: Running exception handlers
      Running handlers complete
      [2018-04-24T18:20:01+00:00] ERROR: Exception handlers complete
      [2018-04-24T18:20:01+00:00] ERROR: Exception handlers complete
      Chef Client failed. 0 resources updated in 02 seconds
      [2018-04-24T18:20:01+00:00] FATAL: Stacktrace dumped to /root/chef-solo/cache/chef-stacktrace.out
      [2018-04-24T18:20:01+00:00] FATAL: Stacktrace dumped to /root/chef-solo/cache/chef-stacktrace.out
      [2018-04-24T18:20:01+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
      [2018-04-24T18:20:01+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
      [2018-04-24T18:20:01+00:00] FATAL: NoMethodError: undefined method `each' for "dev-sdc-es.onap":String
      [2018-04-24T18:20:01+00:00] FATAL: NoMethodError: undefined method `each' for "dev-sdc-es.onap":String

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

              Created:
              Updated:
              Resolved: