You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Saksham Srivastava (JIRA)" <ji...@apache.org> on 2013/07/26 14:45:49 UTC

[jira] [Commented] (CLOUDSTACK-3686) Registering a template does not generate a usage event.

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

Saksham Srivastava commented on CLOUDSTACK-3686:
------------------------------------------------

Fix available for review at : https://reviews.apache.org/r/12968/

                
> Registering a template does not generate a usage event.
> -------------------------------------------------------
>
>                 Key: CLOUDSTACK-3686
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3686
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Template, Usage
>    Affects Versions: 4.2.0
>            Reporter: Saksham Srivastava
>            Assignee: Saksham Srivastava
>             Fix For: 4.2.0
>
>
> The event of registering template is present in event table but is not present in usage_event  (registered template name : reg)
> mysql>  select * from event where type like "%TEMPLATE.CREATE%" and state="Completed";
> +-----+--------------------------------------+-----------------+-----------+--------------------------------------------------------------------------------+---------+------------+-----------+---------------------+-------+----------+------------+----------+
> | id  | uuid                                 | type            | state     | description                                                                    | user_id | account_id | domain_id | created             | level | start_id | parameters | archived |
> +-----+--------------------------------------+-----------------+-----------+--------------------------------------------------------------------------------+---------+------------+-----------+---------------------+-------+----------+------------+----------+
> | 643 | 3a9825d8-4f58-491f-b9be-4014ac7fd555 | TEMPLATE.CREATE | Completed | Successfully completed creating template. Template Id: 202 from snapshot Id: 1 |       2 |          2 |         1 | 2013-07-20 14:42:20 | INFO  |      640 | NULL       |        0 |
> | 648 | 17a1b1e8-0c96-4137-b5a8-f9b3445e3a5c | TEMPLATE.CREATE | Completed | Error while creating template. Template Id: 203 from snapshot Id: 1            |       2 |          2 |         1 | 2013-07-20 15:11:46 | ERROR |      645 | NULL       |        0 |
> | 652 | 0e7ee915-f1e3-4fca-9ea3-fdb949d4f5d1 | TEMPLATE.CREATE | Completed | Error while creating template. Template Id: 204 from snapshot Id: 1            |       2 |          2 |         1 | 2013-07-20 15:17:37 | ERROR |      649 | NULL       |        0 |
> | 657 | f3a54878-3494-4e13-a3ce-2f4d19c75053 | TEMPLATE.CREATE | Completed | Error while creating template. Template Id: 205 from snapshot Id: 1            |       2 |          2 |         1 | 2013-07-20 15:47:50 | ERROR |      654 | NULL       |        0 |
> | 669 | 53ba5c31-8c56-45dc-a084-a50810a00457 | TEMPLATE.CREATE | Completed | Error while creating template. Template Id: 206 from snapshot Id: 1            |       2 |          2 |         1 | 2013-07-21 03:45:52 | ERROR |      666 | NULL       |        0 |
> | 673 | 8fd0e6d2-7e5a-4697-b4f2-be48cf92be57 | TEMPLATE.CREATE | Completed | Error while creating template. Template Id: 207 from snapshot Id: 1            |       2 |          2 |         1 | 2013-07-21 04:04:30 | ERROR |      670 | NULL       |        0 |
> | 678 | 3f061d2c-b1ed-4d2e-953b-e08bdd15e44f | TEMPLATE.CREATE | Completed | Error while creating template. Template Id: 208 from snapshot Id: 1            |       2 |          2 |         1 | 2013-07-21 06:57:41 | ERROR |      675 | NULL       |        0 |
> | 683 | 05601af4-f06c-41e5-bc9e-50bcaaee7ee4 | TEMPLATE.CREATE | Completed | Successfully completed creating template. Template Id: 209 from snapshot Id: 1 |       2 |          2 |         1 | 2013-07-21 07:09:48 | INFO  |      680 | NULL       |        0 |
> | 685 | 8358f4c0-b7e7-469d-b563-7cba31baa45d | TEMPLATE.CREATE | Completed | Successfully completed creating template. Id: 210 name: reg                    |       2 |          2 |         1 | 2013-07-21 08:06:03 | INFO  |        0 | NULL       |        0 |
> +-----+--------------------------------------+-----------------+-----------+--------------------------------------------------------------------------------+---------+------------+-----------+---------------------+-------+----------+------------+----------+
> 9 rows in set (0.00 sec)
> mysql>  select * from usage_event where type like "%TEMPLATE.CREATE%";
> +-----+-----------------+------------+---------------------+---------+-------------+---------------+-------------+-------------+------+---------------+-----------+--------------+
> | id  | type            | account_id | created             | zone_id | resource_id | resource_name | offering_id | template_id | size | resource_type | processed |
> +-----+-----------------+------------+---------------------+---------+-------------+---------------+-------------+-------------+------+---------------+-----------+--------------+
> | 207 | TEMPLATE.CREATE |          2 | 2013-07-20 14:42:20 |       1 |         202 |  t1            |        NULL |        NULL |    5368709120  | NULL          |         0 |
> | 208 | TEMPLATE.CREATE |          2 | 2013-07-21 07:09:48 |       1 |         209 |  th            |        NULL |        NULL |    5368709120  | NULL          |         0 |
> +-----+-----------------+------------+---------------------+---------+-------------+---------------+-------------+-------------+------+---------------+-----------+--------------+
> 2 rows in 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