You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Greg Hill (JIRA)" <ji...@apache.org> on 2015/05/11 19:50:00 UTC

[jira] [Resolved] (AMBARI-6556) Not able to stop components that are in maintenance mode

     [ 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)