----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/36054/#review89915 -----------------------------------------------------------
Ship it! Ship It! - Dmitro Lisnichenko On June 30, 2015, 4:29 p.m., Dmytro Sen wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/36054/ > ----------------------------------------------------------- > > (Updated June 30, 2015, 4:29 p.m.) > > > Review request for Ambari, Dmitro Lisnichenko and Jonathan Hurley. > > > Bugs: AMBARI-12221 > https://issues.apache.org/jira/browse/AMBARI-12221 > > > Repository: ambari > > > Description > ------- > > 1) Ambari 2.1.0 + HDP 2.2 cluster > 2) 3-hosts > 3) registered + installed HDP 2.3. succeeded on two hosts, failed on third > (c6403) > 4) went to hosts page, and clicked Install. error popped up. > The API call the UI is making: > POST > http://c6401.ambari.apache.org:8080/api/v1/clusters/MyCluster/hosts/c6403.ambari.apache.org/stack_versions > {"HostStackVersions":{"stack":"HDP","version":"2.3","repository_version":"2.3.0.0-2474"}} > From ambari-server log... > 25 Jun 2015 23:49:30,073 WARN [qtp-client-58] ServletHandler:563 - > /api/v1/clusters/MyCluster/hosts/c6403.ambari.apache.org/stack_versions > java.lang.UnsupportedOperationException: Host c6403.ambari.apache.org belongs > to 0 clusters with stack id HDP-2.3. Performing Install version action on > multiple clusters is not supported > at > org.apache.ambari.server.controller.internal.HostStackVersionResourceProvider.createResources(HostStackVersionResourceProvider.java:324) > at > org.apache.ambari.server.controller.internal.ClusterControllerImpl.createResources(ClusterControllerImpl.java:289) > at > org.apache.ambari.server.api.services.persistence.PersistenceManagerImpl.create(PersistenceManagerImpl.java:76) > 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) > at > org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:105) > at > org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:74) > at > org.apache.ambari.server.api.services.HostStackVersionService.createRequests(HostStackVersionService.java:105) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > 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) > 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) > at > com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) > at > com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) > at > com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) > at > com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542) > at > com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473) > at > com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419) > at > com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409) > at > com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409) > at > com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:540) > at > com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:715) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:770) > at > org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) > at > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496) > at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) > > > Diffs > ----- > > > ambari-server/src/main/java/org/apache/ambari/server/controller/internal/HostStackVersionResourceProvider.java > a44be9a > > Diff: https://reviews.apache.org/r/36054/diff/ > > > Testing > ------- > > unit tests passed > > > Thanks, > > Dmytro Sen > >
