aonishuk opened a new pull request #3273: URL: https://github.com/apache/ambari/pull/3273
## What changes were proposed in this pull request? During blueprint deploy we don't rely on topology cache since https://issues.apache.org/jira/browse/AMBARI-23660 So topology is send with command. BUT the problem occurs when we still try to generate it on agent and fail. We need to ignore not fail on KeyError there ```ERROR 2020-12-10 06:30:09,350 CustomServiceOrchestrator.py:459 - Caught an exception while executing custom service command: <type 'exceptions.KeyError'>: 10; 10 Traceback (most recent call last): File "/usr/lib/ambari-agent/lib/ambari_agent/CustomServiceOrchestrator.py", line 324, in runCommand command = self.generate_command(command_header) File "/usr/lib/ambari-agent/lib/ambari_agent/CustomServiceOrchestrator.py", line 507, in generate_command command_dict = self.configuration_builder.get_configuration(cluster_id, service_name, component_name, required_config_timestamp) File "/usr/lib/ambari-agent/lib/ambari_agent/ConfigurationBuilder.py", line 43, in get_configuration 'clusterHostInfo': self.topology_cache.get_cluster_host_info(cluster_id), File "/usr/lib/ambari-agent/lib/ambari_agent/Utils.py", line 230, in newFunction return f(*args, **kw) File "/usr/lib/ambari-agent/lib/ambari_agent/ClusterTopologyCache.py", line 112, in get_cluster_host_info hostnames = [self.hosts_to_id[cluster_id][host_id].hostName for host_id in component_dict.hostIds] KeyError: 10``` ## How was this patch tested? Deploy a cluster ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
