You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Sumit Mohanty (JIRA)" <ji...@apache.org> on 2014/01/03 20:25:54 UTC
[jira] [Created] (AMBARI-4224) When issuing Start/Stop of host
components then predicate stale_config=true does not work
Sumit Mohanty created AMBARI-4224:
-------------------------------------
Summary: 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
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)