Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3AD7D18C8D for ; Tue, 30 Jun 2015 16:43:59 +0000 (UTC) Received: (qmail 15965 invoked by uid 500); 30 Jun 2015 16:43:59 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 15928 invoked by uid 500); 30 Jun 2015 16:43:59 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 15914 invoked by uid 99); 30 Jun 2015 16:43:58 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jun 2015 16:43:58 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 1523BAC64D; Tue, 30 Jun 2015 16:43:57 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============3163237488933341210==" MIME-Version: 1.0 Subject: Re: Review Request 36054: RU: Install Version on host fails with 500 error From: "Jonathan Hurley" To: "Dmitro Lisnichenko" , "Jonathan Hurley" Cc: "Dmytro Sen" , "Ambari" Date: Tue, 30 Jun 2015 16:43:57 -0000 Message-ID: <20150630164357.13308.81997@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Jonathan Hurley" X-ReviewGroup: Ambari X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/36054/ X-Sender: "Jonathan Hurley" References: <20150630162923.13307.84194@reviews.apache.org> In-Reply-To: <20150630162923.13307.84194@reviews.apache.org> Reply-To: "Jonathan Hurley" X-ReviewRequest-Repository: ambari --===============3163237488933341210== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/36054/#review89917 ----------------------------------------------------------- Ship it! Ship It! - Jonathan Hurley On June 30, 2015, 12: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, 12: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 > > --===============3163237488933341210==--