[
https://issues.apache.org/jira/browse/AMBARI-13907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hari Sekhon updated AMBARI-13907:
---------------------------------
Description:
When provisioning an Ambari cluster via a blueprint that was taken from an
existing cluster install, Ambari fails with a list index out of range error on
the metrics collector.
I suspect this is due to not supplying all host_groups in the mapping json at
cluster creation time but there was no validation on missing host groups to
prevent this scenario so it fails late in to the install.
{code}Traceback (most recent call last):
File
"/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_monitor.py",
line 58, in <module>
AmsMonitor().execute()
File
"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 216, in execute
method(env)
File
"/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_monitor.py",
line 29, in install
self.configure(env) # for security
File
"/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_monitor.py",
line 32, in configure
import params
File
"/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py",
line 54, in <module>
metric_collector_host = ams_collector_hosts[0]
IndexError: list index out of range
{code}
was:
When provisioning an Ambari cluster via a blueprint that was taken from an
existing cluster install, Ambari fails with a list index out of range error on
the metrics collector.
I suspect this is due to not supplying all host_groups in the mapping json at
cluster creation time but there was no validation on this to prevent it.
> Ambari Blueprint provisioning error "list index out of range"
> -------------------------------------------------------------
>
> Key: AMBARI-13907
> URL: https://issues.apache.org/jira/browse/AMBARI-13907
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server, blueprints
> Affects Versions: 2.1.0
> Environment: HDP 2.3
> Reporter: Hari Sekhon
> Priority: Critical
>
> When provisioning an Ambari cluster via a blueprint that was taken from an
> existing cluster install, Ambari fails with a list index out of range error
> on the metrics collector.
> I suspect this is due to not supplying all host_groups in the mapping json at
> cluster creation time but there was no validation on missing host groups to
> prevent this scenario so it fails late in to the install.
> {code}Traceback (most recent call last):
> File
> "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_monitor.py",
> line 58, in <module>
> AmsMonitor().execute()
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 216, in execute
> method(env)
> File
> "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_monitor.py",
> line 29, in install
> self.configure(env) # for security
> File
> "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_monitor.py",
> line 32, in configure
> import params
> File
> "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py",
> line 54, in <module>
> metric_collector_host = ams_collector_hosts[0]
> IndexError: list index out of range
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)