Doroszlai, Attila created AMBARI-21559:
------------------------------------------
Summary: Alert definition paths should be updated on upgrade
Key: AMBARI-21559
URL: https://issues.apache.org/jira/browse/AMBARI-21559
Project: Ambari
Issue Type: Bug
Components: ambari-server
Affects Versions: 2.5.2
Reporter: Doroszlai, Attila
Assignee: Doroszlai, Attila
Priority: Critical
Fix For: 2.5.2
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:
{noformat}
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
{noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)