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 1871C110AA for ; Tue, 16 Sep 2014 14:26:34 +0000 (UTC) Received: (qmail 20744 invoked by uid 500); 16 Sep 2014 14:26:33 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 20706 invoked by uid 500); 16 Sep 2014 14:26:33 -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 20694 invoked by uid 99); 16 Sep 2014 14:26:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Sep 2014 14:26:33 +0000 Date: Tue, 16 Sep 2014 14:26:33 +0000 (UTC) From: "Dmitry Lysnichenko (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (AMBARI-6991) Setting maintenance mode should return request information 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-6991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dmitry Lysnichenko reassigned AMBARI-6991: ------------------------------------------ Assignee: Dmitry Lysnichenko > Setting maintenance mode should return request information > ---------------------------------------------------------- > > Key: AMBARI-6991 > URL: https://issues.apache.org/jira/browse/AMBARI-6991 > Project: Ambari > Issue Type: Bug > Affects Versions: 1.6.1 > Reporter: Greg Hill > Assignee: Dmitry Lysnichenko > Fix For: 1.7.0 > > > Currently when you set maintenance mode, it spawns an asynchronous operation to update nagios, but it does not return the request information to the client. The client needs an easy way to poll that request to know when it has completed. > {noformat} > PUT http://c6401.ambari.apache.org:8080/api/v1/clusters/testcluster/hosts > {"RequestInfo": {"query": "Hosts/host_name.in(c6404.ambari.apache.org)", "context": "Start Maintenance Mode"}, "Body": {"Hosts": {"maintenance_state": "ON"}}} > {noformat} > Response is a 200 with an empty response body. > Alternatively: > {noformat} > PUT http://c6401.ambari.apache.org:8080/api/v1/clusters/testcluster/hosts/c6404.ambari.apache.org/host_components?fields=HostRoles/state > {"RequestInfo": {"context": "Start Maintenance Mode"}, "Body": {"HostRoles": {"maintenance_state": "ON"}}} > {noformat} > Same response. 200 OK, no body. -- This message was sent by Atlassian JIRA (v6.3.4#6332)