ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajit Kumar (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-15167) Host API fails with multi-value filter
Date Wed, 24 Feb 2016 18:06:18 GMT
Ajit Kumar created AMBARI-15167:
-----------------------------------

             Summary: 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


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/a/hosts -d '
{"RequestInfo":{"query":"stack_versions/HostStackVersions/state.in(INSTALLING)"}}'
Request successful.

{code}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message