Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CBB0A1033B for ; Fri, 3 Jan 2014 19:27:53 +0000 (UTC) Received: (qmail 22365 invoked by uid 500); 3 Jan 2014 19:27:53 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 22290 invoked by uid 500); 3 Jan 2014 19:27:53 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 22240 invoked by uid 99); 3 Jan 2014 19:27:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jan 2014 19:27:52 +0000 Date: Fri, 3 Jan 2014 19:27:52 +0000 (UTC) From: "Sumit Mohanty (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-4224) When issuing Start/Stop of host components then predicate stale_config=true does not work MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-4224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sumit Mohanty updated AMBARI-4224: ---------------------------------- Attachment: AMBARI-4224.patch > 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.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)