ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Hill (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-6991) Setting maintenance mode should return request information
Date Fri, 22 Aug 2014 15:52:11 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-6991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Greg Hill updated AMBARI-6991:
------------------------------

    Description: 
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.



  was:
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.

<pre>
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"}}}
</pre>

Response is a 200 with an empty response body.

Alternatively:

<pre>
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"}}}
</pre>

Same response.  200 OK, no body.




> 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
>             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.2#6252)

Mime
View raw message