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

Greg Hill resolved AMBARI-6556.
-------------------------------
    Resolution: Invalid

I was using the wrong API call for this situation.

> 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:
> {noformat}
> PUT 
> /clusters/testcluster/hosts/c6401.ambari.apache.org/host_components?fields=HostRoles/state
>        {
>             "RequestInfo": {
>                 "context" :"Start Maintanence Mode",
>             }, 
>             "Body": {
>                 "HostRoles": {"maintenance_state": "ON"},
>             },
>         }
> {noformat}
> Stopping all components:
> {noformat}
> PUT 
> /clusters/testcluster/hosts/c6401.ambari.apache.org/host_components?fields=HostRoles/state
>        {
>             "RequestInfo": {
>                 "context" :"Stop All Components",
>             }, 
>             "Body": {
>                 "HostRoles": {"state": "INSTALLED"},
>             },
>         }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to