[
https://issues.apache.org/jira/browse/CLOUDSTACK-3102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13726376#comment-13726376
]
ASF subversion and git services commented on CLOUDSTACK-3102:
-------------------------------------------------------------
Commit 22a3ba18c380f3c2ab68304f0ec6ccb17b287710 in branch refs/heads/4.2 from
[~nitinme]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=22a3ba1 ]
=CLOUDSTACK-3102 ResourceDetail API - If you add detail for any resource other
than volume and nic then throw an exception
> [DR] [add/list] ResourceDetail APIs only works for resourceType "volume/nic"
> -----------------------------------------------------------------------------
>
> Key: CLOUDSTACK-3102
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3102
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Management Server
> Affects Versions: 4.2.0
> Environment: commit # 971c40d98e07ab6cddb8e6db5095c1acea935815
> Reporter: venkata swamybabu budumuru
> Assignee: Nitin Mehta
> Fix For: 4.2.0
>
> Attachments: logs.tgz
>
>
> Steps to reproduce :
> 1. Have CloudStack setup with at least 1 advanced zone
> 2. Try to insert key, value into user_vm_details using the following API
> http://10.147.59.194:8096/api?command=addResourceDetail&resourceid=38&resourcetype=uservm&details[0].key=test&details[0].value=test
> Tried to pass the vm id i.e. 38 and key, value in to user_details
> Observations :-
> (i) It went fine but, it inserted those key, values into nic_details table.
> mysql> select * from nic_details;
> +----+--------+------+-------+----------------+
> | id | nic_id | name | value | display_detail |
> +----+--------+------+-------+----------------+
> | 1 | 38 | test | test | 1 |
> +----+--------+------+-------+----------------+
> (ii)Tried to check the same with listResourceDetail and it fetches the info
> from nic_details table.
> http://10.147.59.194:8096/api?command=listResourceDetails&resourceType=uservm&resourceid=38
> <listresourcedetailsresponse
> cloud-stack-version="4.2.0-SNAPSHOT"><count>1</count><nicdetail><resourcetype>Nic</resourcetype><key>test</key><value>test</value></nicdetail></listresourcedetailsresponse>
> (iii) looked into the code and found that if addResourceDetail is executed on
> Volume then things go fine otherwise, we are inserting everything into
> nic_details table.
--
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