Andrii Babiichuk created AMBARI-24310: -----------------------------------------
Summary: UI sends host check request for custom jdk with invalid hosts Key: AMBARI-24310 URL: https://issues.apache.org/jira/browse/AMBARI-24310 Project: Ambari Issue Type: Bug Components: ambari-web Affects Versions: 2.7.0 Reporter: Andrii Babiichuk Assignee: Andrii Babiichuk Fix For: 2.7.1 UI sends "java_home_check" host check with all populated hosts instead hosts with passed registration only. This can cause 500 server exception due HostNotFoundException. {code} 2018-07-05 14:10:30,930 ERROR [ambari-client-thread-573] AbstractResourceProvider:295 - Caught AmbariException when creating a resource org.apache.ambari.server.HostNotFoundException: Host not found, hostname=test-0000 at org.apache.ambari.server.state.cluster.ClustersImpl.getHost(ClustersImpl.java:456) at org.apache.ambari.server.state.ConfigHelper.getEffectiveDesiredTags(ConfigHelper.java:189) at org.apache.ambari.server.state.ConfigHelper.getEffectiveDesiredTags(ConfigHelper.java:173) at org.apache.ambari.server.controller.AmbariManagementControllerImpl.findConfigurationTagsWithOverrides(AmbariManagementControllerImpl.java:2353) {code} {code} POST http://host:8080/api/v1/requests 500 (Internal Server Error) send @ vendor.js:8630 jQuery.extend.ajax @ vendor.js:8082 send @ app.js:192735 doCheckJDK @ app.js:41241 (anonymous function) @ app.js:41318 fire @ vendor.js:1141 self.fireWith @ vendor.js:1252 done @ vendor.js:8178 callback @ vendor.js:8702 {code} Body of request: {code} {"RequestInfo":{"context":"Check hosts","action":"check_host","parameters":{"threshold":"60","java_home":"/tmp/jdk1.8.0_171/","jdk_location":"http://host:8080/resources","check_execute_list":"java_home_check"}},"Requests/resource_filters":[{"hosts":"test-0000,test-0001,test-0002,... {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)