[
https://issues.apache.org/jira/browse/AMBARI-19156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15749611#comment-15749611
]
Hudson commented on AMBARI-19156:
---------------------------------
FAILURE: Integrated in Jenkins build Ambari-branch-2.5 #531 (See
[https://builds.apache.org/job/Ambari-branch-2.5/531/])
AMBARI-19156 Install Packages fails with the old stack has services (dili:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=a74bf6b2b943642d579f497747adf385ae2340a1])
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/stack/StackModule.java
* (edit)
ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/api/services/AmbariMetaInfo.java
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/state/StackInfo.java
* (add)
ambari-server/src/test/resources/stacks/HDP/2.0.7/services/SPARK/metainfo.xml
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/stack/ServiceModule.java
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterStackVersionResourceProvider.java
* (edit)
ambari-server/src/test/java/org/apache/ambari/server/stack/StackModuleTest.java
* (edit)
ambari-server/src/test/java/org/apache/ambari/server/stack/StackManagerTest.java
* (add)
ambari-server/src/test/resources/stacks/HDP/2.0.8/services/SPARK2/metainfo.xml
* (add)
ambari-server/src/test/resources/stacks/HDP/2.0.7/services/SPARK2/metainfo.xml
* (add)
ambari-server/src/test/resources/stacks/HDP/2.0.8/services/SPARK3/metainfo.xml
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/stack/BaseModule.java
* (edit)
ambari-server/src/main/java/org/apache/ambari/server/stack/ExtensionModule.java
* (add)
ambari-server/src/test/resources/stacks/HDP/2.0.6/services/SPARK/metainfo.xml
> Install Packages fails with the old stack has services removed in the new
> stack
> -------------------------------------------------------------------------------
>
> Key: AMBARI-19156
> URL: https://issues.apache.org/jira/browse/AMBARI-19156
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: trunk, 2.5.0
> Reporter: Di Li
> Assignee: Di Li
> Fix For: trunk, 2.5.0
>
> Attachments: AMBARI-19156-v2.patch, AMBARI-19156-v3.patch,
> AMBARI-19156.patch
>
>
> Install packages step (before RU/EU) fails with err "Cannot enumerate
> services" if the current stack has services that have been removed in the new
> stack. For example, mystack-1.0 has Spark, but mystakc-2.0 only has Spark2,
> where Spark's metainfo.xml in mystack-2.0 has the <deleted>true</deleted>
> section.
> Workaround is to remove Spark before attempting the install packages.
> The error is below:
> 02 Dec 2016 12:53:43,928 ERROR [ambari-client-thread-27]
> BaseManagementHandler:61 - Caught a system exception while attempting to
> create a resource: Cannot enumerate services
> org.apache.ambari.server.controller.spi.SystemException: Cannot enumerate
> services
> at
> org.apache.ambari.server.controller.internal.ClusterStackVersionResourceProvider.getHostVersionInstallCommand(ClusterStackVersionResourceProvider.java:606)
> at
> org.apache.ambari.server.controller.internal.ClusterStackVersionResourceProvider.createResourcesAuthorized(ClusterStackVersionResourceProvider.java:508)
> at
> org.apache.ambari.server.controller.internal.AbstractAuthorizedResourceProvider.createResources(AbstractAuthorizedResourceProvider.java:220)
> at
> org.apache.ambari.server.controller.internal.ClusterControllerImpl.createResources(ClusterControllerImpl.java:298)
> at
> org.apache.ambari.server.api.services.persistence.PersistenceManagerImpl.create(PersistenceManagerImpl.java:97)
> at
> org.apache.ambari.server.api.handlers.CreateHandler.persist(CreateHandler.java:37)
> at
> org.apache.ambari.server.api.handlers.BaseManagementHandler.handleRequest(BaseManagementHandler.java:73)
> at
> org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:145)
> at
> org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:126)
> at
> org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:90)
> at
> org.apache.ambari.server.api.services.ClusterStackVersionService.createRequests(ClusterStackVersionService.java:121)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
> at
> com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
> at
> com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
> at
> com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
> at
> com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
> at
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)