[
https://issues.apache.org/jira/browse/CLOUDSTACK-8721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14712865#comment-14712865
]
ASF GitHub Bot commented on CLOUDSTACK-8721:
--------------------------------------------
Github user anshul1886 commented on a diff in the pull request:
https://github.com/apache/cloudstack/pull/673#discussion_r37964980
--- Diff: server/src/com/cloud/vm/UserVmManagerImpl.java ---
@@ -2188,7 +2188,13 @@ public UserVm updateVirtualMachine(UpdateVMCmd cmd)
throws ResourceUnavailableEx
}
if (details != null && !details.isEmpty()) {
- vmInstance.setDetails(details);
+ _vmDao.loadDetails(vmInstance);
--- End diff --
When do we need to remove detail? Even if needed then those values can be
updated to get the desired effect. Many details are for internal purposes only
and user is not even aware of them.
> Setting details of VM through API results in removal of all other details
> except the one passed in API
> ------------------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-8721
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8721
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Reporter: Anshul Gangwar
> Assignee: Anshul Gangwar
>
> Setting details of VM through API results in removal of all other details
> except the one passed in API. We are storing vm details which are not set by
> user and in this process of setting details all details are getting lost
> which could lead to other issues.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)