ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siddharth Wagle (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-4224) When issuing Start/Stop of host components then predicate stale_config=true does not work
Date Fri, 03 Jan 2014 23:03:50 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-4224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13861996#comment-13861996
] 

Siddharth Wagle commented on AMBARI-4224:
-----------------------------------------

+1 patch looks good.

> When issuing Start/Stop of host components then predicate stale_config=true does not
work	
> ------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-4224
>                 URL: https://issues.apache.org/jira/browse/AMBARI-4224
>             Project: Ambari
>          Issue Type: Bug
>          Components: controller
>    Affects Versions: 1.4.3
>            Reporter: Sumit Mohanty
>            Assignee: Sumit Mohanty
>             Fix For: 1.4.3
>
>         Attachments: AMBARI-4224-II.patch, AMBARI-4224.patch
>
>
> See the series of curl calls below.
> There are no components with stale configs but 4 components are being stopped. _There
are only 4 because Ambari only allows INSTALL call on already installed clients_
> {noformat}
> [root@c6401 vagrant]# curl -i -uadmin:admin -H "X-Requested-By: ambari" http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/host_components?HostRoles/stale_configs=true
> {
>   "href" : "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/host_components?HostRoles/stale_configs=true",
>   "items" : [ ]
> }
> {noformat}
> {noformat}
> [root@c6401 vagrant]# curl -i -uadmin:admin -H "X-Requested-By: ambari"-d '{"HostRoles":
{ "state": "INSTALLED"}}' -X PUT http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/host_components?HostRoles/stale_configs=true
> {
>   "href" : "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/requests/14",
>   "Requests" : {
>     "id" : 14,
>     "status" : "InProgress"
>   }
> }
> {noformat}
> {noformat}
> [root@c6401 vagrant]# curl -i -uadmin:admin -H "X-Requested-By: ambari" http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/requests/14
> {
>   "href" : "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/requests/14",
>   "Requests" : {
>     "aborted_task_count" : 0,
>     "cluster_name" : "c1",
>     "completed_task_count" : 0,
>     "failed_task_count" : 0,
>     "id" : 14,
>     "progress_percent" : 9.0,
>     "queued_task_count" : 4,
>     "request_context" : "",
>     "request_status" : "PENDING",
>     "task_count" : 4,
>     "timed_out_task_count" : 0
>   },
>   "tasks" : [
>     {
>       "href" : "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/requests/14/tasks/178",
>       "Tasks" : {
>         "cluster_name" : "c1",
>         "id" : 178,
>         "request_id" : 14
>       }
>     },
>     {
>       "href" : "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/requests/14/tasks/179",
>       "Tasks" : {
>         "cluster_name" : "c1",
>         "id" : 179,
>         "request_id" : 14
>       }
>     },
>     {
>       "href" : "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/requests/14/tasks/180",
>       "Tasks" : {
>         "cluster_name" : "c1",
>         "id" : 180,
>         "request_id" : 14
>       }
>     },
>     {
>       "href" : "http://c6401.ambari.apache.org:8080/api/v1/clusters/c1/requests/14/tasks/181",
>       "Tasks" : {
>         "cluster_name" : "c1",
>         "id" : 181,
>         "request_id" : 14
>       }
>     }
>   ]
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message