-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/21322/
-----------------------------------------------------------
Review request for Ambari and Dmytro Sen.
Bugs: AMBARI-5722
https://issues.apache.org/jira/browse/AMBARI-5722
Repository: ambari
Description
-------
When deploying a brand new cluster, all services fail to install due to a
parsing exception thrown from the Ambari Agents.
File
"/usr/lib/python2.6/site-packages/ambari_agent/CustomServiceOrchestrator.py",
line 113, in runCommand
json_path = self.dump_command_to_json(command)
File
"/usr/lib/python2.6/site-packages/ambari_agent/CustomServiceOrchestrator.py",
line 209, in dump_command_to_json
command'clusterHostInfo' =
manifestGenerator.decompressClusterHostInfo(command'clusterHostInfo')
File "/usr/lib/python2.6/site-packages/ambari_agent/manifestGenerator.py", line
116, in decompressClusterHostInfo
indexes = convertRangeToList(v)
File "/usr/lib/python2.6/site-packages/ambari_agent/manifestGenerator.py", line
57, in convertRangeToList
raise AgentException.AgentException("Broken data in given range, expected -
""m-n"" or ""m"", got : " + str(r))
AgentException: 'Broken data in given range, expected - m-n or m, got : -1’
The command being sent is
{hs_host=[2], namenode_host=[1], snamenode_host=[2], zookeeper_hosts=[0-2],
ganglia_server_host=[1], nm_hosts=[0], ganglia_monitor_hosts=[0-2],
all_hosts=[c6403.ambari.apache.org, c6401.ambari.apache.org,
c6402.ambari.apache.org], rm_host=[2], app_timeline_server_hosts=[2],
slave_hosts=[0], ambari_server_host=[-1], nagios_server_host=[1],
all_ping_ports=[8670:0-2]}
Diffs
-----
ambari-agent/src/main/python/ambari_agent/manifestGenerator.py 9b019be
ambari-agent/src/test/python/ambari_agent/TestManifestGenerator.py a445b3c
ambari-server/src/main/java/org/apache/ambari/server/utils/StageUtils.java
767a97d
ambari-server/src/test/java/org/apache/ambari/server/utils/TestStageUtils.java
585181e
Diff: https://reviews.apache.org/r/21322/diff/
Testing
-------
Ran manual cluster install.
Unit test run:
[INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated: 0
approved: 34 licence.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Ambari Main ....................................... SUCCESS [1.756s]
[INFO] Apache Ambari Project POM ......................... SUCCESS [0.290s]
[INFO] Ambari Web ........................................ SUCCESS [5.370s]
[INFO] Ambari Views ...................................... SUCCESS [1.435s]
[INFO] Ambari Server ..................................... SUCCESS [14:55.393s]
[INFO] Ambari Agent ...................................... SUCCESS [7.727s]
[INFO] Ambari Client ..................................... SUCCESS [0.564s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15:13.018s
[INFO] Finished at: Mon May 12 17:02:45 FET 2014
[INFO] Final Memory: 30M/375M
[INFO] ------------------------------------------------------------------------
Thanks,
Dmitro Lisnichenko