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 4CDB311538 for ; Mon, 14 Jul 2014 20:52:05 +0000 (UTC) Received: (qmail 4503 invoked by uid 500); 14 Jul 2014 20:52:05 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 4470 invoked by uid 500); 14 Jul 2014 20:52:05 -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 4455 invoked by uid 99); 14 Jul 2014 20:52:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2014 20:52:05 +0000 Date: Mon, 14 Jul 2014 20:52:04 +0000 (UTC) From: "Jayush Luniya (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-6361) Component status cannot be changed from INSTALL_FAIL to Disabled state MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-6361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jayush Luniya updated AMBARI-6361: ---------------------------------- Attachment: Ambari-6361.2.patch > Component status cannot be changed from INSTALL_FAIL to Disabled state > ---------------------------------------------------------------------- > > Key: AMBARI-6361 > URL: https://issues.apache.org/jira/browse/AMBARI-6361 > Project: Ambari > Issue Type: Bug > Components: controller > Affects Versions: 1.6.1 > Reporter: Jayush Luniya > Assignee: Jayush Luniya > Fix For: 1.7.0 > > Attachments: Ambari-6361.2.patch, Ambari-6361.patch > > > If Component is in INSTALL_FAILED state, via api call, it cannot be changed to DISABLED state > {code} > [root@amb-m20-ha2-1 ~]# curl -u admin:admin -H "X-Requested-By:ambari" -i -X PUT -d '{"RequestInfo":{"context":"NN maintenance"},"Body":{"HostRoles":{"state":"DISABLED"}}}' http://172.18.145.221:8080/api/v1/clusters/cl1/hosts/amb-m20-ha2-1.cs1cloud.internal/host_components/NAMENODE > HTTP/1.1 500 Server Error > Set-Cookie: AMBARISESSIONID=vjn9z1hzcj3vo442rfczq4i3;Path=/ > Expires: Thu, 01 Jan 1970 00:00:00 GMT > Content-Type: text/plain > Content-Length: 349 > Server: Jetty(7.6.7.v20120910) > { > "status" : 500, > "message" : "org.apache.ambari.server.controller.spi.SystemException: An internal system exception occurred: Invalid transition for servicecomponenthost, clusterName=cl1, clusterId=2, serviceName=HDFS, componentName=NAMENODE, hostname=amb-m20-ha2-1.cs1cloud.internal, currentState=INSTALL_FAILED, newDesiredState=DISABLED" > } > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)