You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Andrew Onischuk (JIRA)" <ji...@apache.org> on 2013/09/03 21:39:52 UTC

[jira] [Created] (AMBARI-3082) Ambari-Client Some bad api calls does not raise exceptions

Andrew Onischuk created AMBARI-3082:
---------------------------------------

             Summary: Ambari-Client Some bad api calls does not raise exceptions
                 Key: AMBARI-3082
                 URL: https://issues.apache.org/jira/browse/AMBARI-3082
             Project: Ambari
          Issue Type: Task
            Reporter: Andrew Onischuk
            Assignee: Andrew Onischuk


E.g: 
Let's execute create_host on the host dev05.hortonworks.com, which is not registered:
{code}
hosts.create_host(client, 'dev05.hortonworks.com', '192.168.56.105')
{code}

We will the this errorcode after calling the api call, but no exception is raised
{code}
{
  "status" : 400,
  "message" : "Attempted to add unknown hosts to a cluster.  These hosts have not been registered with the server: dev05.hortonworks.com"
}
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira