[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-3997?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Likitha Shetty reassigned CLOUDSTACK-3997:
------------------------------------------

    Assignee: Likitha Shetty
    
> [Object_store_refactor][usage] No usage event is generated for creating 
> custom disk in Projects view
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-3997
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3997
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Projects, Storage Controller, Usage
>    Affects Versions: 4.2.0
>         Environment: Latest build from ACS 4.2 branch
>            Reporter: Sanjeev N
>            Assignee: Likitha Shetty
>            Priority: Critical
>             Fix For: 4.2.0
>
>
> No usage event is generated for creating custom disk in Projects view
> Steps to Reproduce:
> ================
> 1.Bring up cs with atleast one cluster 
> 2.Create a sub-domain "dom1" and account with role "User" in dom1
> 3.Login with account user and create a project
> 4.Select the project created above to enable the project view
> 5.In project view register a template and deploy guest vm with only root disk
> 6.Create a custom data disk
> Expectations:
> ===========
> 1.VOLUME_CREATE usage event should be generated after step6
> Actual Result:
> ===========
> VOLUME_CREATE usage event was not created in project's view
> DB info:
> ======
> mysql> select * from domain where id=2;
> +----+--------+------+--------------------------------------+-------+--------+-------+-------------+----------------+---------+--------+----------------+--------+
> | id | parent | name | uuid                                 | owner | path   
> | level | child_count | next_child_seq | removed | state  | network_domain | 
> type   |
> +----+--------+------+--------------------------------------+-------+--------+-------+-------------+----------------+---------+--------+----------------+--------+
> |  2 |      1 | dom1 | fcea5250-af39-4306-a9ad-98fce7516bd2 |     2 | /dom1/ 
> |     1 |           0 |              1 | NULL    | Active | NULL           | 
> Normal |
> +----+--------+------+--------------------------------------+-------+--------+-------+-------------+----------------+---------+--------+----------------+--------+
> 1 row in set (0.00 sec)
> mysql> select * from account where domain_id=2;
> +----+-----------------+--------------------------------------+------+-----------+---------+---------+----------------+----------------+-----------------+---------+
> | id | account_name    | uuid                                 | type | 
> domain_id | state   | removed | cleanup_needed | network_domain | 
> default_zone_id | default |
> +----+-----------------+--------------------------------------+------+-----------+---------+---------+----------------+----------------+-----------------+---------+
> |  9 | acc1            | aac60c65-f12d-4ead-a216-eb43fa7287e3 |    0 |        
>  2 | enabled | NULL    |              0 | NULL           |            NULL |  
>      0 |
> | 10 | PrjAcct-usage-2 | 15fe72d6-54e1-4bc6-b26d-bae6ff8be177 |    5 |        
>  2 | enabled | NULL    |              0 | NULL           |            NULL |  
>      0 |
> +----+-----------------+--------------------------------------+------+-----------+---------+---------+----------------+----------------+-----------------+---------+
> 2 rows in set (0.00 sec)
> mysql> select id,account_id,domain_id,name,volume_type from volumes where 
> id=36;
> +----+------------+-----------+-----------+-------------+
> | id | account_id | domain_id | name      | volume_type |
> +----+------------+-----------+-----------+-------------+
> | 36 |         10 |         2 | proj-test | DATADISK    |
> +----+------------+-----------+-----------+-------------+
> 1 row in set (0.00 sec)
> mysql> select * from usage_event where resource_id=36 and 
> type="VOLUME.CREATE";
> Empty set (0.00 sec)

--
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

Reply via email to