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 D6C101075E for ; Wed, 23 Jul 2014 14:22:38 +0000 (UTC) Received: (qmail 11620 invoked by uid 500); 23 Jul 2014 14:22:38 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 11588 invoked by uid 500); 23 Jul 2014 14:22:38 -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 11574 invoked by uid 99); 23 Jul 2014 14:22:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2014 14:22:38 +0000 Date: Wed, 23 Jul 2014 14:22:38 +0000 (UTC) From: "Greg Hill (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-6556) Not able to stop components that are in maintenance mode 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-6556?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Greg Hill updated AMBARI-6556: ------------------------------ Description: There was a bug introduced in 1.6.1 where it is no longer possible to stop components that are in maintenance mode. It just returns a 200 status with an empty message body and does not stop the components. The API calls I'm using are: Setting maintenance mode: PUT /clusters/testcluster/hosts/c6401.ambari.apache.org/host_components?fields=HostRoles/state { "RequestInfo": { "context" :"Start Maintanence Mode", }, "Body": { "HostRoles": {"maintenance_state": "ON"}, }, } Stopping all components: PUT /clusters/testcluster/hosts/c6401.ambari.apache.org/host_components?fields=HostRoles/state { "RequestInfo": { "context" :"Stop All Components", }, "Body": { "HostRoles": {"state": "INSTALLED"}, }, } was:There was a bug introduced in 1.6.1 where it is no longer possible to stop components that are in maintenance mode. It just returns a 200 status with an empty message body and does not stop the components. > Not able to stop components that are in maintenance mode > -------------------------------------------------------- > > Key: AMBARI-6556 > URL: https://issues.apache.org/jira/browse/AMBARI-6556 > Project: Ambari > Issue Type: Bug > Affects Versions: 1.6.1 > Reporter: Greg Hill > > There was a bug introduced in 1.6.1 where it is no longer possible to stop components that are in maintenance mode. It just returns a 200 status with an empty message body and does not stop the components. > The API calls I'm using are: > Setting maintenance mode: > PUT /clusters/testcluster/hosts/c6401.ambari.apache.org/host_components?fields=HostRoles/state > { > "RequestInfo": { > "context" :"Start Maintanence Mode", > }, > "Body": { > "HostRoles": {"maintenance_state": "ON"}, > }, > } > Stopping all components: > PUT /clusters/testcluster/hosts/c6401.ambari.apache.org/host_components?fields=HostRoles/state > { > "RequestInfo": { > "context" :"Stop All Components", > }, > "Body": { > "HostRoles": {"state": "INSTALLED"}, > }, > } -- This message was sent by Atlassian JIRA (v6.2#6252)