ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Hill <greg.h...@RACKSPACE.COM>
Subject Re: setting maintenance mode doesn't return a request id
Date Thu, 21 Aug 2014 17:41:28 GMT
I guess I'm confused then.  It triggers a background task that takes 17s
to complete according to the UI, but returns immediately.  Is the UI
wrong?  It definitely isn't immediate; it has to wait for it to update
nagios before it's safe to proceed doing destructive things.


On 8/21/14 12:24 PM, "Siddharth Wagle" <> wrote:

>Hi Greg,
>A response to a POST request will have a body with the (request id) only
>the POST request triggers a asynchronous operation and the request id is a
>way of tracking the operation.
>Putting a host in Maintenance mode is not an async op, so this is working
>as expected.
>On Thu, Aug 21, 2014 at 10:17 AM, Greg Hill <>
>> I have two ways that I know of to enable maintenance mode on a host, but
>> it seems like neither one returns a request id, where pretty much every
>> other API call that generates a request does return an id.  Is this a
>> I'm testing against ambari 1.6.1
>> PUT 
>> {"RequestInfo": {"query": "Hosts/",
>> "context": "Start Maintenance Mode"}, "Body": {"Hosts":
>> {"maintenance_state": "ON"}}}
>> Response is a 200 with an empty response body.
>> Alternatively:
>> PUT
>> {"RequestInfo": {"context": "Start Maintenance Mode"}, "Body":
>> {"HostRoles": {"maintenance_state": "ON"}}}
>> Same response.  200 OK, no body.
>> Thanks in advance for any help.
>> Greg
>NOTICE: This message is intended for the use of the individual or entity
>which it is addressed and may contain information that is confidential,
>privileged and exempt from disclosure under applicable law. If the reader
>of this message is not the intended recipient, you are hereby notified
>any printing, copying, dissemination, distribution, disclosure or
>forwarding of this communication is strictly prohibited. If you have
>received this communication in error, please contact the sender
>and delete it from your system. Thank You.

View raw message