[
https://issues.apache.org/jira/browse/AMBARI-15167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ajit Kumar updated AMBARI-15167:
--------------------------------
Attachment: rb43953.patch
> Host API fails with multi-value filter
> --------------------------------------
>
> Key: AMBARI-15167
> URL: https://issues.apache.org/jira/browse/AMBARI-15167
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.2.1
> Reporter: Ajit Kumar
> Assignee: Ajit Kumar
> Fix For: 2.2.2
>
> Attachments: rb43953.patch
>
>
> hosts filtering by multiple state results in server error but filtering by
> single state works fine.
> {code}
> GET api/v1/clusters/clustername/hosts -d
> '{"RequestInfo":{"query":"stack_versions/HostStackVersions/state.in(INSTALLING,INSTALL_FAILED,OUT_OF_SYNC)"}}'
> {
> "status" : 500,
> "message" : "org.apache.ambari.server.controller.spi.SystemException: Stack
> version should have numerical id"
> }
> GET api/v1/clusters/clustername/hosts -d '
> {"RequestInfo":{"query":"stack_versions/HostStackVersions/state.in(INSTALLING)"}}'
> Request successful.
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)