csquire opened a new issue #3002: api: listApis command missing 'tags' field 
for many responses
URL: https://github.com/apache/cloudstack/issues/3002
 
 
   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and master branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete 
the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   API
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on master 
branch.
   -->
   
   ~~~
   4.9.3.0, 4.11.2.0
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, 
advanced networking, etc.  N/A otherwise
   -->
   N/A
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   N/A
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   At some point around 4.9, many API command stopped reporting the `tags` 
field in their API response fields. For example UserVMResponse and 
TemplateResponse. I believe this was caused by [this 
commit](https://github.com/apache/cloudstack/commit/db54b26fed51d55879f2f704bcfbc25e52e15461#diff-9a2b0c645d3b186d9f2fdda9f56b9946).
 After this change ApiDiscoveryService is not getting the `tags` field from the 
superclass of the response classes.
   
   The [xanzy go-cloudstack](https://github.com/xanzy/go-cloudstack) client 
depends on the output of `listApis` to generate it's Cloudstack client SDK.  In 
later versions of the xanzy cloudstack client, the tags fields are missing from 
many of the responses. This in turn means that the Terraform Cloudstack 
Provider (which uses the xanzy client) cannot use a newer version of xanzy 
go-cloudstack without a breaking change. 
   
   I also believe the current version of xanzy go-cloudstack may currently be 
incompatible with Cloudatack 4.11 because of [type 
change](https://github.com/apache/cloudstack/commit/4534cef#diff-0c5e3890cfb1d9051d383fd2b41d6132)
 in the Cloudstack API, changing ProjectResponse.secondaryStorageTotal from an 
int to a float. Following semver, breaking changes like this type change 
shouldn't be made in minor version updates, but that's a different conversation.
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal 
test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   Open the following and notice that the listVirtualMachines API does not 
advertise the `tags` field in the response: 
   
http://localhost:8080/client/api?command=listApis&response=json&name=listVirtualMachines
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   The `tags` field should be present.
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   The `tags` field is not present.
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   
   ~~~
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to