ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Hill (JIRA)" <>
Subject [jira] [Commented] (AMBARI-6991) Setting maintenance mode should return request information
Date Tue, 16 Sep 2014 14:38:33 GMT


Greg Hill commented on AMBARI-6991:

That will definitely fix the race condition.  I guess it's just a question of consistency
then.  This API call executes a background 'request' but doesn't return that information to
the client, whereas every other similar operation does.  Do you feel it's worth fixing for
that reason?

> Setting maintenance mode should return request information
> ----------------------------------------------------------
>                 Key: AMBARI-6991
>                 URL:
>             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}
> {"RequestInfo": {"query": "Hosts/", "context": "Start
Maintenance Mode"}, "Body": {"Hosts": {"maintenance_state": "ON"}}}
> {noformat}
> Response is a 200 with an empty response body.
> Alternatively:
> {noformat}
> {"RequestInfo": {"context": "Start Maintenance Mode"}, "Body": {"HostRoles": {"maintenance_state":
> {noformat}
> Same response.  200 OK, no body.

This message was sent by Atlassian JIRA

View raw message