Mingjiang Shi created AMBARI-7442: ------------------------------------- Summary: ServiceCheck cannot be run if there is only one stack definition Key: AMBARI-7442 URL: https://issues.apache.org/jira/browse/AMBARI-7442 Project: Ambari Issue Type: Bug Components: ambari-server Affects Versions: 1.7.0 Reporter: Mingjiang Shi
Reproduce step: 1. Remove all the stack definitions in HDP except HDP 2.0.6, and mark HDP2.0.6 as active in the metainfo.xml 2. Install a cluster using HDP2.0.6 include the basic service hdfs and zookeeper 3. Once installed, in the dashboard, select Zookeeper, and click Run Service Check under Service Actions. Nothing will happen in the webui, but in the ambari-server log, the following error is found: 02:47:04,586 INFO [qtp697653916-20] AmbariManagementControllerImpl:2984 - Received action execution request, clusterName=hdp, request=isCommand :true, action :null, command :ZOOKEEPER_QUORUM_SERVICE_CHECK, inputs :{}, resourceFilters: [RequestResourceFilter{serviceName='ZOOKEEPER', componentName='null', hostNames=[]}], exclusive: false, clusterName :hdp 02:47:04,586 ERROR [qtp697653916-20] AbstractResourceProvider:280 - Caught AmbariException when creating a resource org.apache.ambari.server.AmbariException: Unsupported action ZOOKEEPER_QUORUM_SERVICE_CHECK for Service: ZOOKEEPER and Component: null at org.apache.ambari.server.controller.AmbariCustomCommandExecutionHelper.validateAction(AmbariCustomCommandExecutionHelper.java:783) at org.apache.ambari.server.controller.AmbariManagementControllerImpl.createAction(AmbariManagementControllerImpl.java:2991) at org.apache.ambari.server.controller.internal.RequestResourceProvider$1.invoke(RequestResourceProvider.java:121) at org.apache.ambari.server.controller.internal.RequestResourceProvider$1.invoke(RequestResourceProvider.java:118) at org.apache.ambari.server.controller.internal.AbstractResourceProvider.createResources(AbstractResourceProvider.java:273) at org.apache.ambari.server.controller.internal.RequestResourceProvider.createResources(RequestResourceProvider.java:118) at org.apache.ambari.server.controller.internal.ClusterControllerImpl.createResources(ClusterControllerImpl.java:274) at org.apache.ambari.server.api.services.persistence.PersistenceManagerImpl.create(PersistenceManagerImpl.java:75) at org.apache.ambari.server.api.handlers.CreateHandler.persist(CreateHandler.java:36) at org.apache.ambari.server.api.handlers.BaseManagementHandler.handleRequest(BaseManagementHandler.java:72) at org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:135) -- This message was sent by Atlassian JIRA (v6.3.4#6332)