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] [Updated] (AMBARI-4232) Config Group API request has empty response body
Date Tue, 07 Jan 2014 00:50:52 GMT

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

Siddharth Wagle updated AMBARI-4232:
------------------------------------

    Description: 
# *API call for getting nonexistent group returns empty response with no error explanation*,
for example:
{noformat}
curl -u admin:admin 'http://dev01.hortonworks.com:8080/api/v1/clusters/cl1/config_groups/100500'
-H 'X-Requested-By:anything' -X GET
{noformat}

# *API call for updating existing and nonexistent group returns empty responce*, for example:
{noformat}
curl -u admin:admin 'http://dev01:8080/api/v1/clusters/cl1/config_groups/100500' -H 'X-Requested-By:anything'
-X PUT --data '[{"ConfigGroup":{"cluster_name": "cl1","group_name": "hdfs-nextgenslaves-100","tag":
"HDFS","description": "HDFS configs for rack added on May 19, 2010","hosts":[{"host_name":
"dev02.com"}],"desired_configs":[{"type": "core-site","tag": "nextgen1"},{"type": "hdfs-site","tag":
"nextgen1"}]}}]'
curl -u admin:admin 'http://dev01:8080/api/v1/clusters/cl1/config_groups/2' -H 'X-Requested-By:anything'
-X PUT --data '[{"ConfigGroup":{"cluster_name": "cl1","group_name": "hdfs-nextgenslaves-100","tag":
"HDFS","description": "HDFS configs for rack added on May 19, 2010","hosts":[{"host_name":
"dev02.com"}],"desired_configs":[{"type": "core-site","tag": "nextgen1"},{"type": "hdfs-site","tag":
"nextgen1"}]}}]'
{noformat}


  was:
# *API call for getting nonexistent group returns empty response with no error explanation*,
for example:
{noformat}
curl -u admin:admin 'http://dev01.hortonworks.com:8080/api/v1/clusters/cl1/config_groups/100500'
-H 'X-Requested-By:anything' -X GET
{noformat}



> Config Group API request has empty response body
> ------------------------------------------------
>
>                 Key: AMBARI-4232
>                 URL: https://issues.apache.org/jira/browse/AMBARI-4232
>             Project: Ambari
>          Issue Type: Bug
>          Components: controller
>    Affects Versions: 1.5.0
>            Reporter: Siddharth Wagle
>            Assignee: Siddharth Wagle
>             Fix For: 1.5.0
>
>
> # *API call for getting nonexistent group returns empty response with no error explanation*,
for example:
> {noformat}
> curl -u admin:admin 'http://dev01.hortonworks.com:8080/api/v1/clusters/cl1/config_groups/100500'
-H 'X-Requested-By:anything' -X GET
> {noformat}
> # *API call for updating existing and nonexistent group returns empty responce*, for
example:
> {noformat}
> curl -u admin:admin 'http://dev01:8080/api/v1/clusters/cl1/config_groups/100500' -H 'X-Requested-By:anything'
-X PUT --data '[{"ConfigGroup":{"cluster_name": "cl1","group_name": "hdfs-nextgenslaves-100","tag":
"HDFS","description": "HDFS configs for rack added on May 19, 2010","hosts":[{"host_name":
"dev02.com"}],"desired_configs":[{"type": "core-site","tag": "nextgen1"},{"type": "hdfs-site","tag":
"nextgen1"}]}}]'
> curl -u admin:admin 'http://dev01:8080/api/v1/clusters/cl1/config_groups/2' -H 'X-Requested-By:anything'
-X PUT --data '[{"ConfigGroup":{"cluster_name": "cl1","group_name": "hdfs-nextgenslaves-100","tag":
"HDFS","description": "HDFS configs for rack added on May 19, 2010","hosts":[{"host_name":
"dev02.com"}],"desired_configs":[{"type": "core-site","tag": "nextgen1"},{"type": "hdfs-site","tag":
"nextgen1"}]}}]'
> {noformat}



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

Mime
View raw message