Uploaded image for project: 'Metron (Retired)'
  1. Metron (Retired)
  2. METRON-1172

Upgrade from Metron 0.4.1-rc to 0.4.1-rc4 'escalation' topic problem.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: To Do
    • Minor
    • Resolution: Unresolved
    • 0.4.1
    • None
    • None
    • Metron 0.4.1-rc4

    Description

      After upgrading from 0.4.1-rc (from last week) to rc4, both Metron Management UI and Metron REST fail to start with an error related to "METRON_ESCALATION_TOPIC="metron_escalation_topic"".

      Metron Management UI Start output:

      Traceback (most recent call last):
      File "/var/lib/ambari-agent/cache/common-services/METRON/0.4.1/package/scripts/management_ui_master.py", line 95, in <module>
      ManagementUIMaster().execute()
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
      method(env)
      File "/var/lib/ambari-agent/cache/common-services/METRON/0.4.1/package/scripts/management_ui_master.py", line 67, in start
      self.configure(env)
      File "/var/lib/ambari-agent/cache/common-services/METRON/0.4.1/package/scripts/management_ui_master.py", line 47, in configure
      content=Template("metron.j2")
      File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, in _init_
      self.env.run()
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
      self.run_action(resource, action)
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
      provider_action()
      File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 123, in action_create
      content = self._get_content()
      File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 160, in _get_content
      return content()
      File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", line 51, in _call_
      return self.get_content()
      File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", line 142, in get_content
      rendered = self.template.render(self.context)
      File "/usr/lib/python2.6/site-packages/ambari_jinja2/environment.py", line 891, in render
      return self.environment.handle_exception(exc_info, True)
      File "/var/lib/ambari-agent/cache/common-services/METRON/0.4.1/package/templates/metron.j2", line 42, in top-level template code
      METRON_ESCALATION_TOPIC="metron_escalation_topic"
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/config_dictionary.py", line 73, in _getattr_
      raise Fail("Configuration parameter '" + self.name + "' was not found in configurations dictionary!")
      resource_management.core.exceptions.Fail: Configuration parameter 'metron_escalation_topic' was not found in configurations dictionary!

      Metron REST Start output:

      Traceback (most recent call last):
      File "/var/lib/ambari-agent/cache/common-services/METRON/0.4.1/package/scripts/rest_master.py", line 83, in <module>
      RestMaster().execute()
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
      method(env)
      File "/var/lib/ambari-agent/cache/common-services/METRON/0.4.1/package/scripts/rest_master.py", line 55, in start
      self.configure(env)
      File "/var/lib/ambari-agent/cache/common-services/METRON/0.4.1/package/scripts/rest_master.py", line 43, in configure
      content=Template("metron.j2")
      File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, in _init_
      self.env.run()
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
      self.run_action(resource, action)
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
      provider_action()
      File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 123, in action_create
      content = self._get_content()
      File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 160, in _get_content
      return content()
      File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", line 51, in _call_
      return self.get_content()
      File "/usr/lib/python2.6/site-packages/resource_management/core/source.py", line 142, in get_content
      rendered = self.template.render(self.context)
      File "/usr/lib/python2.6/site-packages/ambari_jinja2/environment.py", line 891, in render
      return self.environment.handle_exception(exc_info, True)
      File "/var/lib/ambari-agent/cache/common-services/METRON/0.4.1/package/templates/metron.j2", line 42, in top-level template code
      METRON_ESCALATION_TOPIC="metron_escalation_topic"
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/config_dictionary.py", line 73, in _getattr_
      raise Fail("Configuration parameter '" + self.name + "' was not found in configurations dictionary!")
      resource_management.core.exceptions.Fail: Configuration parameter 'metron_escalation_topic' was not found in configurations dictionary!

      After posting this on the mailing list, both cestella and ottobackwards came up with the solution:
      The fix for right now is to update the Metron escalation topic setting in the Metron Config in ambari under "Metron REST" from the default "escalation" to something else, "metron_escalation" for instance. Afterwards, Metron REST & Management UI start without issues.

      Attachments

        Activity

          People

            Unassigned Unassigned
            laurensv Laurens Vets
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: