Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-21559

Alert definition paths should be updated on upgrade

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.5.2
    • 3.0.0, 2.5.2
    • ambari-server
    • None

    Description

      Upon upgrading Ambari, alert scripts may be relocated in the new version. Alert definitions in the database should be updated to the new paths to avoid errors like:

      Unable to execute alert. Unable to find 'AMBARI_METRICS/0.1.0.4.1/package/alerts/alert_ambari_metrics_monitor.py' as an absolute path or part of /var/lib/ambari-agent/cache/stacks or /var/lib/ambari-agent/cache/host_scripts
      Unable to execute alert. Unable to find 'FLUME/1.6.0.4.2/package/alerts/alert_flume_agent_status.py' as an absolute path or part of /var/lib/ambari-agent/cache/stacks or /var/lib/ambari-agent/cache/host_scripts
      Unable to execute alert. Unable to find 'HDFS/2.7.2.4.2/package/alerts/alert_checkpoint_time.py' as an absolute path or part of /var/lib/ambari-agent/cache/stacks or /var/lib/ambari-agent/cache/host_scripts
      Unable to execute alert. Unable to find 'HDFS/2.7.2.4.2/package/alerts/alert_datanode_unmounted_data_dir.py' as an absolute path or part of /var/lib/ambari-agent/cache/stacks or /var/lib/ambari-agent/cache/host_scripts
      Unable to execute alert. Unable to find 'HDFS/2.7.2.4.2/package/alerts/alert_ha_namenode_health.py' as an absolute path or part of /var/lib/ambari-agent/cache/stacks or /var/lib/ambari-agent/cache/host_scripts
      Unable to execute alert. Unable to find 'HDFS/2.7.2.4.2/package/alerts/alert_upgrade_finalized.py' as an absolute path or part of /var/lib/ambari-agent/cache/stacks or /var/lib/ambari-agent/cache/host_scripts
      Unable to execute alert. Unable to find 'YARN/2.7.2.4.2/package/alerts/alert_nodemanager_health.py' as an absolute path or part of /var/lib/ambari-agent/cache/stacks or /var/lib/ambari-agent/cache/host_scripts
      Unable to execute alert. Unable to find 'YARN/2.7.2.4.2/package/alerts/alert_nodemanagers_summary.py' as an absolute path or part of /var/lib/ambari-agent/cache/stacks or /var/lib/ambari-agent/cache/host_scripts
      

      Attachments

        1. AMBARI-21559.patch
          19 kB
          Attila Doroszlai

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: