[ https://issues.apache.org/jira/browse/AMBARI-5832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dmitry Lysnichenko updated AMBARI-5832: --------------------------------------- Description: For request URL: /api/v1/clusters/cl/hosts?fields=host_components/HostRoles/service_name Response missing "service_name" field: {noformat} { "href" : "http://192.168.56.101:8080/api/v1/clusters/cl/hosts?fields=host_components/HostRoles/service_name", "items" : [ { "href" : "http://192.168.56.101:8080/api/v1/clusters/cl/hosts/dev01.hortonworks.com", "Hosts" : { "cluster_name" : "cl", "host_name" : "dev01.hortonworks.com" }, "host_components" : [ { "href" : "http://192.168.56.101:8080/api/v1/clusters/cl/hosts/dev01.hortonworks.com/host_components/APP_TIMELINE_SERVER", "HostRoles" : { "cluster_name" : "cl", "component_name" : "APP_TIMELINE_SERVER", "host_name" : "dev01.hortonworks.com" } } ] } {noformat} Also filtering by service_name doesn't work: Request: /api/v1/clusters/cl/hosts?host_components/HostRoles/service_name=HDFS&fields=host_components/HostRoles/service_name Return empty items was: For request URL: /api/v1/clusters/cl/hosts?fields=host_components/HostRoles/service_name Response missing "service_name" field: { "href" : "http://192.168.56.101:8080/api/v1/clusters/cl/hosts?fields=host_components/HostRoles/service_name", "items" : [ { "href" : "http://192.168.56.101:8080/api/v1/clusters/cl/hosts/dev01.hortonworks.com", "Hosts" : { "cluster_name" : "cl", "host_name" : "dev01.hortonworks.com" }, "host_components" : [ { "href" : "http://192.168.56.101:8080/api/v1/clusters/cl/hosts/dev01.hortonworks.com/host_components/APP_TIMELINE_SERVER", "HostRoles" : { "cluster_name" : "cl", "component_name" : "APP_TIMELINE_SERVER", "host_name" : "dev01.hortonworks.com" } } ] } {noformat} Also filtering by service_name doesn't work: Request: /api/v1/clusters/cl/hosts?host_components/HostRoles/service_name=HDFS&fields=host_components/HostRoles/service_name Return empty items > "service_name" field unavailable from Hosts API > ----------------------------------------------- > > Key: AMBARI-5832 > URL: https://issues.apache.org/jira/browse/AMBARI-5832 > Project: Ambari > Issue Type: Bug > Affects Versions: 1.6.1 > Reporter: Dmitry Lysnichenko > Assignee: Dmitry Lysnichenko > Fix For: 1.6.1 > > > For request URL: > /api/v1/clusters/cl/hosts?fields=host_components/HostRoles/service_name > Response missing "service_name" field: > {noformat} > { > "href" : > "http://192.168.56.101:8080/api/v1/clusters/cl/hosts?fields=host_components/HostRoles/service_name", > "items" : [ > { > "href" : > "http://192.168.56.101:8080/api/v1/clusters/cl/hosts/dev01.hortonworks.com", > "Hosts" : { > "cluster_name" : "cl", > "host_name" : "dev01.hortonworks.com" > }, > "host_components" : [ > { > "href" : > "http://192.168.56.101:8080/api/v1/clusters/cl/hosts/dev01.hortonworks.com/host_components/APP_TIMELINE_SERVER", > "HostRoles" : { > "cluster_name" : "cl", > "component_name" : "APP_TIMELINE_SERVER", > "host_name" : "dev01.hortonworks.com" > } > } > ] > } > {noformat} > Also filtering by service_name doesn't work: > Request: > /api/v1/clusters/cl/hosts?host_components/HostRoles/service_name=HDFS&fields=host_components/HostRoles/service_name > Return empty items -- This message was sent by Atlassian JIRA (v6.2#6252)