Myroslav Papirkovskyi created AMBARI-24722: ----------------------------------------------
Summary: Failed to force_non_member_install a stack version on hosts Key: AMBARI-24722 URL: https://issues.apache.org/jira/browse/AMBARI-24722 Project: Ambari Issue Type: Bug Components: ambari-server Affects Versions: 2.7.0 Reporter: Myroslav Papirkovskyi Assignee: Myroslav Papirkovskyi Fix For: 2.8.0 The ability to pre-install packages on hosts (before being added to the cluster) using the following API request is broken: {noformat} $ curl -X POST -d '\{ "HostStackVersions": { "repository_version": <repository_version>, "stack": "HDP", "version": "2.6", "cluster_name": "TEST", "force_non_member_install": true, "components": [ { "name" : "ZOOKEEPER_SERVER" }, \{ "name": "ZOOKEEPER_CLIENT" } ] } }' http://localhost:8080/api/v1/hosts/${hostname}/stack_versions {noformat} {noformat:title=ambari-agent.log} ERROR 2018-06-19 08:54:08,222 CustomServiceOrchestrator.py:448 - Caught an exception while executing custom service command: <type 'exceptions.KeyError'>: 'Host_Level_Params for cluster_id=2 is missing. Check if server sent it.'; 'Host_Level_Params for cluster_id=2 is missing. Check if server sent it.' Traceback (most recent call last): File "/usr/lib/ambari-agent/lib/ambari_agent/CustomServiceOrchestrator.py", line 322, in runCommand command = self.generate_command(command_header) File "/usr/lib/ambari-agent/lib/ambari_agent/CustomServiceOrchestrator.py", line 487, 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 38, in get_configuration host_level_params_cache = self.host_level_params_cache[cluster_id] File "/usr/lib/ambari-agent/lib/ambari_agent/ClusterCache.py", line 155, in __getitem__ raise KeyError("{0} for cluster_id={1} is missing. Check if server sent it.".format(self.get_cache_name().title(), key)) KeyError: 'Host_Level_Params for cluster_id=2 is missing. Check if server sent it.' {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)