[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14212018#comment-14212018
 ] 

Rohit Yadav commented on CLOUDSTACK-7908:
-----------------------------------------

Fixing only this use-case is easy to do, but the general issue here is that all 
CloudStack entities (VMs, networks, volumes, etc) are owned by accounts and not 
user. The general fix would require more effort and would require us to 
add/change/refactor the ownership from account to user (IDs). This is under 
discussion on the dev ML.

WIP branch: 
https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=shortlog;h=refs/heads/useraccount-refactoring

> Addition of userid field to vm_instance table to identify user that created 
> the VM
> ----------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-7908
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7908
>             Project: CloudStack
>          Issue Type: Improvement
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>    Affects Versions: 4.3.0
>         Environment: 4.3.0
>            Reporter: David Williams
>            Assignee: Rohit Yadav
>            Priority: Minor
>             Fix For: 4.5.0, 4.6.0
>
>
> It would be handy/helpful if the userid of the user that created a VM was 
> recorded in the database in the vm_instance table. Currently, the only way I 
> know of to find the user that deployed a VM is by checking the logs. There's 
> an owner field in the vm_instance table but this seems to be the account ID 
> of the account the user belongs to.
> By being able to find the user that deployed a VM, it makes VM cleanups much 
> easier since you know who to contact for each VM to check if it can be 
> deleted. A similar thing in the other tables for the other resources would be 
> useful too when trying to cleanup networks and volumes, etc. Also, if this 
> change went ahead, then the API and GUI could be changed also to show the 
> user details for the VM when listing the VM's details. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to