incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Likitha Shetty" <likitha.she...@citrix.com>
Subject Re: Review Request: [EC2 Query API] Improve the logging. Having empty response objects is harmless to functionality
Date Fri, 01 Feb 2013 06:03:39 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/9228/
-----------------------------------------------------------

(Updated Feb. 1, 2013, 6:03 a.m.)


Review request for cloudstack and Prachi Damle.


Summary (updated)
-----------------

[EC2 Query API] Improve the logging. Having empty response objects is harmless to functionality


Description (updated)
-------

This is observed in the awsapi.log for all Describe* EC2 commands when the response object
returned by CS has no elements. But with EC2DescribeImages command it is always observed.
This is because every time DescribeImage is fired, we call CS listTemplates command multiple
times, each time setting a different value for the templateFilter parameter (e.g. featured,
executable, community etc.). And for some of these CS calls made we obtain am empty response
and hence the message in the logs. 


This addresses bug CLOUDSTACK-1124.


Diffs
-----

  awsapi/src/com/cloud/stack/CloudStackClient.java 5002aa5 

Diff: https://reviews.apache.org/r/9228/diff/


Testing
-------

Using boto, call get_all_images - awsapi.log should not contain 'Unable to find responseObjName:[template].
Returning null! Exception: Property listtemplatesresponse.template is resolved to null JSON
element on object: {"listtemplatesresponse":{}} '


Thanks,

Likitha Shetty


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message