cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yitao Jiang <>
Subject Re: [DISCUSS] Major business logic refactoring: Move from Account to UserAccount
Date Fri, 14 Nov 2014 10:52:27 GMT
Agreed. Using userid could make isolation of resources more strictly. Which
is more suitable for public cloud,but more work have to be done I think.
On Nov 14, 2014 4:54 PM, "Rohit Yadav" <> wrote:

> Hi,
> All CloudStack DB entities (VM, storage, network etc.) have an owner field
> which is mostly the account. An account can have multiple users so just by
> looking at the resource (say VM) it’s not possible to make out which user
> in the account (owner or account_id field in the db row of the entity)
> created it. CloudStack users may want to know this information for at least
> entities such as VMs and Volumes.
> Historically, why is the account owner of an entity and not a user? If
> user were the owner, we could easily get the account Id using the user Id.
> One solution to fix this problem is to refactor and replace Account
> (interface) usage with UserAccount (interface) usage, fix the DAO and
> resource layer, and add columns in the schema. This gets us all the
> information we need to determine domainId, AccountId and Id (the user ID).
> Should we do it for all entities or just keep status quo (use account as
> owners), or just fix it on-demand basis for specific entities such as for
> user VMs [1].
> [1]
> Regards,
> Rohit Yadav
> Software Architect, ShapeBlue
> M. +91 88 262 30892 |
> Blog: | Twitter: @_bhaisaab
> Find out more about ShapeBlue and our range of CloudStack related services
> IaaS Cloud Design & Build<
> CSForge – rapid IaaS deployment framework<>
> CloudStack Consulting<>
> CloudStack Software Engineering<
> CloudStack Infrastructure Support<
> CloudStack Bootcamp Training Courses<
> This email and any attachments to it may be confidential and are intended
> solely for the use of the individual to whom it is addressed. Any views or
> opinions expressed are solely those of the author and do not necessarily
> represent those of Shape Blue Ltd or related companies. If you are not the
> intended recipient of this email, you must neither take any action based
> upon its contents, nor copy or show it to anyone. Please contact the sender
> if you believe you have received this email in error. Shape Blue Ltd is a
> company incorporated in England & Wales. ShapeBlue Services India LLP is a
> company incorporated in India and is operated under license from Shape Blue
> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
> and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is
> a company registered by The Republic of South Africa and is traded under
> license from Shape Blue Ltd. ShapeBlue is a registered trademark.

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