Mohan created METRON-1917: ----------------------------- Summary: Metron writes the flag file though the elastic search Template installation fails Key: METRON-1917 URL: https://issues.apache.org/jira/browse/METRON-1917 Project: Metron Issue Type: Bug Reporter: Mohan Assignee: Mohan
Thought the elastic search template installation fails , Metron still writes the 'metron_elasticsearch_template_installed_flag_file' flag file and apparently the index retrieval fails below is the installation log {code:java} 2018-11-29 09:24:24,797 - Installing Elasticsearch index templates 2018-11-29 09:24:24,797 - Checking parameters for indexer = Elasticsearch 2018-11-29 09:24:24,798 - File['/var/lib/ambari-agent/tmp/yaf_index.template'] {'content': StaticFile('yaf_index.template'), 'mode': 0755} 2018-11-29 09:24:24,799 - Writing File['/var/lib/ambari-agent/tmp/yaf_index.template'] because it doesn't exist 2018-11-29 09:24:24,799 - Changing permission for /var/lib/ambari-agent/tmp/yaf_index.template from 644 to 755 2018-11-29 09:24:24,799 - Execute['curl -s -XPOST http://nat-r7-hlts-metron-1.openstacklocal:9200/_template/yaf_index -d @/var/lib/ambari-agent/tmp/yaf_index.template'] {'logoutput': True} {"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null}],"type":"master_not_discovered_exception","reason":null},"status":503}2018-11-29 09:24:54,992 - File['/var/lib/ambari-agent/tmp/error_index.template'] {'content': StaticFile('error_index.template'), 'mode': 0755} 2018-11-29 09:24:54,993 - Writing File['/var/lib/ambari-agent/tmp/error_index.template'] because it doesn't exist 2018-11-29 09:24:54,994 - Changing permission for /var/lib/ambari-agent/tmp/error_index.template from 644 to 755 2018-11-29 09:24:54,994 - Execute['curl -s -XPOST http://nat-r7-hlts-metron-1.openstacklocal:9200/_template/error_index -d @/var/lib/ambari-agent/tmp/error_index.template'] {'logoutput': True} {"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null}],"type":"master_not_discovered_exception","reason":null},"status":503}2018-11-29 09:25:25,022 - File['/var/lib/ambari-agent/tmp/snort_index.template'] {'content': StaticFile('snort_index.template'), 'mode': 0755} 2018-11-29 09:25:25,023 - Writing File['/var/lib/ambari-agent/tmp/snort_index.template'] because it doesn't exist 2018-11-29 09:25:25,024 - Changing permission for /var/lib/ambari-agent/tmp/snort_index.template from 644 to 755 2018-11-29 09:25:25,024 - Execute['curl -s -XPOST http://nat-r7-hlts-metron-1.openstacklocal:9200/_template/snort_index -d @/var/lib/ambari-agent/tmp/snort_index.template'] {'logoutput': True} {"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null}],"type":"master_not_discovered_exception","reason":null},"status":503}2018-11-29 09:25:55,059 - File['/var/lib/ambari-agent/tmp/bro_index.template'] {'content': StaticFile('bro_index.template'), 'mode': 0755} 2018-11-29 09:25:55,060 - Writing File['/var/lib/ambari-agent/tmp/bro_index.template'] because it doesn't exist 2018-11-29 09:25:55,061 - Changing permission for /var/lib/ambari-agent/tmp/bro_index.template from 644 to 755 2018-11-29 09:25:55,061 - Execute['curl -s -XPOST http://nat-r7-hlts-metron-1.openstacklocal:9200/_template/bro_index -d @/var/lib/ambari-agent/tmp/bro_index.template'] {'logoutput': True} {"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null}],"type":"master_not_discovered_exception","reason":null},"status":503}2018-11-29 09:26:25,098 - File['/var/lib/ambari-agent/tmp/metaalert_index.template'] {'content': StaticFile('metaalert_index.template'), 'mode': 0755} 2018-11-29 09:26:25,100 - Writing File['/var/lib/ambari-agent/tmp/metaalert_index.template'] because it doesn't exist 2018-11-29 09:26:25,100 - Changing permission for /var/lib/ambari-agent/tmp/metaalert_index.template from 644 to 755 2018-11-29 09:26:25,101 - Execute['curl -s -XPOST http://nat-r7-hlts-metron-1.openstacklocal:9200/_template/metaalert_index -d @/var/lib/ambari-agent/tmp/metaalert_index.template'] {'logoutput': True} {"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null}],"type":"master_not_discovered_exception","reason":null},"status":503}2018-11-29 09:26:55,126 - Setting Elasticsearch template installed to True 2018-11-29 09:26:55,127 - File['/usr/hcp/1.8.0.0-20/metron/config/zookeeper/../metron_elasticsearch_template_installed_flag_file'] {'owner': 'metron', 'content': 'This file created on: 2018-11-29 09:26:55', 'mode': 0755} 2018-11-29 09:26:55,127 - Writing File['/usr/hcp/1.8.0.0-20/metron/config/zookeeper/../metron_elasticsearch_template_installed_flag_file'] because it doesn't exist 2018-11-29 09:26:55,128 - Changing owner for /usr/hcp/1.8.0.0-20/metron/config/zookeeper/../metron_elasticsearch_template_installed_flag_file from 0 to metron 2018-11-29 09:26:55,128 - Changing permission for /usr/hcp/1.8.0.0-20/metron/config/zookeeper/../metron_elasticsearch_template_installed_flag_file from 644 to 755 {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)