cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-3846) usage event is not generated for volume resize
Date Mon, 29 Jul 2013 12:37:49 GMT

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

ASF subversion and git services commented on CLOUDSTACK-3846:
-------------------------------------------------------------

Commit c5a95184cb8d52facda77462ec5cd3a6445fe8e5 in branch refs/heads/4.2 from [~rajesh_battala]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=c5a9518 ]

CLOUDSTACK-3846 usage event is not generated for volume resize

                
> usage event is not generated for volume resize 
> -----------------------------------------------
>
>                 Key: CLOUDSTACK-3846
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3846
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Usage
>    Affects Versions: 4.2.0
>            Reporter: Srikanteswararao Talluri
>            Assignee: Rajesh Battala
>            Priority: Critical
>             Fix For: 4.2.0
>
>
> Steps to reproduce:
> ==============
> 1. create a volume of size 5GB
> 2. attach it to the VM
> 3. resize the volume created in step 1 to 20GB.
> Observation:
> =========
> Usage event is not getting generated for volume resize
> Before vol resize:
> ==============
> mysql> select * from usage_event;
> +----+-------------------------+------------+---------------------+---------+-------------+----------------+-------------+-------------+------------+----------------+-----------+
> | id | type                    | account_id | created             | zone_id | resource_id
| resource_name  | offering_id | template_id | size       | resource_type  | processed |
> +----+-------------------------+------------+---------------------+---------+-------------+----------------+-------------+-------------+------------+----------------+-----------+
> |  1 | VOLUME.CREATE           |          2 | 2013-07-24 16:06:35 |       1 |       
   6 | ROOT-4         |        NULL |           7 | 2147483648 | NULL           |        
0 |
> |  2 | VOLUME.CREATE           |          2 | 2013-07-24 16:06:35 |       1 |       
   7 | DATA-4         |           3 |        NULL | 5368709120 | NULL           |        
0 |
> |  3 | VM.CREATE               |          2 | 2013-07-24 16:06:35 |       1 |       
   4 | TestDiskResize |           1 |           7 |       NULL | VMware         |        
0 |
> |  4 | NET.IPASSIGN            |          2 | 2013-07-24 16:06:36 |       1 |       
   3 | 10.147.46.203  |        NULL |           0 |          1 | VirtualNetwork |        
0 |
> |  5 | NETWORK.OFFERING.ASSIGN |          2 | 2013-07-24 16:13:15 |       1 |       
   4 | 12             |           8 |        NULL |          1 | NULL           |        
0 |
> |  6 | VM.START                |          2 | 2013-07-24 16:13:15 |       1 |       
   4 | TestDiskResize |           1 |           7 |       NULL | VMware         |        
0 |
> |  7 | VOLUME.CREATE           |          2 | 2013-07-24 16:29:37 |       1 |       
   9 | TestDisk       |           3 |        NULL | 5368709120 | NULL           |        
0 |
> |  8 | VOLUME.CREATE           |          2 | 2013-07-24 16:30:15 |       1 |       
   9 | TestDisk       |           3 |        NULL | 5368709120 | NULL           |        
0 |
> |  9 | VM.STOP                 |          2 | 2013-07-25 10:25:15 |       1 |       
   4 | TestDiskResize |        NULL |        NULL |       NULL | NULL           |        
0 |
> | 10 | NETWORK.OFFERING.REMOVE |          2 | 2013-07-25 10:25:15 |       1 |       
   4 | 12             |           8 |        NULL |          0 | NULL           |        
0 |
> | 11 | NETWORK.OFFERING.ASSIGN |          2 | 2013-07-25 10:47:21 |       1 |       
   4 | 12             |           8 |        NULL |          1 | NULL           |        
0 |
> | 12 | VM.START                |          2 | 2013-07-25 10:47:21 |       1 |       
   4 | TestDiskResize |           1 |           7 |       NULL | VMware         |        
0 |
> | 13 | VOLUME.CREATE           |          2 | 2013-07-25 11:05:22 |       1 |       
  29 | ROOT-23        |        NULL |           7 | 2147483648 | NULL           |        
0 |
> | 14 | VOLUME.CREATE           |          2 | 2013-07-25 11:05:22 |       1 |       
  30 | DATA-23        |          13 |        NULL | 5368709120 | NULL           |        
0 |
> | 15 | VM.CREATE               |          2 | 2013-07-25 11:05:22 |       1 |       
  23 | CWPSVM         |          12 |           7 |       NULL | VMware         |        
0 |
> | 16 | NETWORK.OFFERING.ASSIGN |          2 | 2013-07-25 11:09:35 |       1 |       
  23 | 84             |           8 |        NULL |          1 | NULL           |        
0 |
> | 17 | VM.START                |          2 | 2013-07-25 11:09:35 |       1 |       
  23 | CWPSVM         |          12 |           7 |       NULL | VMware         |        
0 |
> | 18 | VM.STOP                 |          2 | 2013-07-25 13:48:00 |       1 |       
  23 | CWPSVM         |        NULL |        NULL |       NULL | NULL           |        
0 |
> | 19 | NETWORK.OFFERING.REMOVE |          2 | 2013-07-25 13:48:00 |       1 |       
  23 | 84             |           8 |        NULL |          0 | NULL           |        
0 |
> | 20 | NETWORK.OFFERING.ASSIGN |          2 | 2013-07-25 13:48:55 |       1 |       
  23 | 84             |           8 |        NULL |          1 | NULL           |        
0 |
> | 21 | VM.START                |          2 | 2013-07-25 13:48:55 |       1 |       
  23 | CWPSVM         |          12 |           7 |       NULL | VMware         |        
0 |
> | 22 | VM.STOP                 |          2 | 2013-07-25 14:36:23 |       1 |       
  23 | CWPSVM         |        NULL |        NULL |       NULL | NULL           |        
0 |
> | 23 | NETWORK.OFFERING.REMOVE |          2 | 2013-07-25 14:36:23 |       1 |       
  23 | 84             |           8 |        NULL |          0 | NULL           |        
0 |
> | 24 | VOLUME.CREATE           |          2 | 2013-07-26 12:15:33 |       1 |       
  31 | usagevol       |           3 |        NULL | 5368709120 | NULL           |        
0 |
> | 25 | VOLUME.CREATE           |          2 | 2013-07-26 12:16:13 |       1 |       
  32 | usagecwps      |          13 |        NULL | 5368709120 | NULL           |        
0 |
> | 26 | VOLUME.CREATE           |          2 | 2013-07-26 12:17:05 |       1 |       
  32 | usagecwps      |          13 |        NULL | 5368709120 | NULL           |        
0 |
> | 27 | VOLUME.CREATE           |          2 | 2013-07-26 12:19:02 |       1 |       
  33 | usagecustom    |          14 |        NULL | 7516192768 | NULL           |        
0 |
> | 28 | VOLUME.CREATE           |          2 | 2013-07-26 12:20:49 |       1 |       
  34 | ROOT-24        |        NULL |           7 | 2147483648 | NULL           |        
0 |
> | 29 | VM.CREATE               |          2 | 2013-07-26 12:20:49 |       1 |       
  24 | usage          |          12 |           7 |       NULL | VMware         |        
0 |
> | 30 | NETWORK.OFFERING.ASSIGN |          2 | 2013-07-26 12:22:03 |       1 |       
  24 | 85             |           8 |        NULL |          1 | NULL           |        
0 |
> | 31 | VM.START                |          2 | 2013-07-26 12:22:03 |       1 |       
  24 | usage          |          12 |           7 |       NULL | VMware         |        
0 |
> | 32 | VOLUME.CREATE           |          2 | 2013-07-26 12:25:17 |       1 |       
  33 | usagecustom    |          14 |        NULL | 7516192768 | NULL           |        
0 |
> +----+-------------------------+------------+---------------------+---------+-------------+----------------+-------------+-------------+------------+----------------+-----------+
> 32 rows in set (0.00 sec)
> After resize:
> ==========
> mysql> select * from usage_event;
> +----+-------------------------+------------+---------------------+---------+-------------+----------------+-------------+-------------+------------+----------------+-----------+
> | id | type                    | account_id | created             | zone_id | resource_id
| resource_name  | offering_id | template_id | size       | resource_type  | processed |
> +----+-------------------------+------------+---------------------+---------+-------------+----------------+-------------+-------------+------------+----------------+-----------+
> |  1 | VOLUME.CREATE           |          2 | 2013-07-24 16:06:35 |       1 |       
   6 | ROOT-4         |        NULL |           7 | 2147483648 | NULL           |        
0 |
> |  2 | VOLUME.CREATE           |          2 | 2013-07-24 16:06:35 |       1 |       
   7 | DATA-4         |           3 |        NULL | 5368709120 | NULL           |        
0 |
> |  3 | VM.CREATE               |          2 | 2013-07-24 16:06:35 |       1 |       
   4 | TestDiskResize |           1 |           7 |       NULL | VMware         |        
0 |
> |  4 | NET.IPASSIGN            |          2 | 2013-07-24 16:06:36 |       1 |       
   3 | 10.147.46.203  |        NULL |           0 |          1 | VirtualNetwork |        
0 |
> |  5 | NETWORK.OFFERING.ASSIGN |          2 | 2013-07-24 16:13:15 |       1 |       
   4 | 12             |           8 |        NULL |          1 | NULL           |        
0 |
> |  6 | VM.START                |          2 | 2013-07-24 16:13:15 |       1 |       
   4 | TestDiskResize |           1 |           7 |       NULL | VMware         |        
0 |
> |  7 | VOLUME.CREATE           |          2 | 2013-07-24 16:29:37 |       1 |       
   9 | TestDisk       |           3 |        NULL | 5368709120 | NULL           |        
0 |
> |  8 | VOLUME.CREATE           |          2 | 2013-07-24 16:30:15 |       1 |       
   9 | TestDisk       |           3 |        NULL | 5368709120 | NULL           |        
0 |
> |  9 | VM.STOP                 |          2 | 2013-07-25 10:25:15 |       1 |       
   4 | TestDiskResize |        NULL |        NULL |       NULL | NULL           |        
0 |
> | 10 | NETWORK.OFFERING.REMOVE |          2 | 2013-07-25 10:25:15 |       1 |       
   4 | 12             |           8 |        NULL |          0 | NULL           |        
0 |
> | 11 | NETWORK.OFFERING.ASSIGN |          2 | 2013-07-25 10:47:21 |       1 |       
   4 | 12             |           8 |        NULL |          1 | NULL           |        
0 |
> | 12 | VM.START                |          2 | 2013-07-25 10:47:21 |       1 |       
   4 | TestDiskResize |           1 |           7 |       NULL | VMware         |        
0 |
> | 13 | VOLUME.CREATE           |          2 | 2013-07-25 11:05:22 |       1 |       
  29 | ROOT-23        |        NULL |           7 | 2147483648 | NULL           |        
0 |
> | 14 | VOLUME.CREATE           |          2 | 2013-07-25 11:05:22 |       1 |       
  30 | DATA-23        |          13 |        NULL | 5368709120 | NULL           |        
0 |
> | 15 | VM.CREATE               |          2 | 2013-07-25 11:05:22 |       1 |       
  23 | CWPSVM         |          12 |           7 |       NULL | VMware         |        
0 |
> | 16 | NETWORK.OFFERING.ASSIGN |          2 | 2013-07-25 11:09:35 |       1 |       
  23 | 84             |           8 |        NULL |          1 | NULL           |        
0 |
> | 17 | VM.START                |          2 | 2013-07-25 11:09:35 |       1 |       
  23 | CWPSVM         |          12 |           7 |       NULL | VMware         |        
0 |
> | 18 | VM.STOP                 |          2 | 2013-07-25 13:48:00 |       1 |       
  23 | CWPSVM         |        NULL |        NULL |       NULL | NULL           |        
0 |
> | 19 | NETWORK.OFFERING.REMOVE |          2 | 2013-07-25 13:48:00 |       1 |       
  23 | 84             |           8 |        NULL |          0 | NULL           |        
0 |
> | 20 | NETWORK.OFFERING.ASSIGN |          2 | 2013-07-25 13:48:55 |       1 |       
  23 | 84             |           8 |        NULL |          1 | NULL           |        
0 |
> | 21 | VM.START                |          2 | 2013-07-25 13:48:55 |       1 |       
  23 | CWPSVM         |          12 |           7 |       NULL | VMware         |        
0 |
> | 22 | VM.STOP                 |          2 | 2013-07-25 14:36:23 |       1 |       
  23 | CWPSVM         |        NULL |        NULL |       NULL | NULL           |        
0 |
> | 23 | NETWORK.OFFERING.REMOVE |          2 | 2013-07-25 14:36:23 |       1 |       
  23 | 84             |           8 |        NULL |          0 | NULL           |        
0 |
> | 24 | VOLUME.CREATE           |          2 | 2013-07-26 12:15:33 |       1 |       
  31 | usagevol       |           3 |        NULL | 5368709120 | NULL           |        
0 |
> | 25 | VOLUME.CREATE           |          2 | 2013-07-26 12:16:13 |       1 |       
  32 | usagecwps      |          13 |        NULL | 5368709120 | NULL           |        
0 |
> | 26 | VOLUME.CREATE           |          2 | 2013-07-26 12:17:05 |       1 |       
  32 | usagecwps      |          13 |        NULL | 5368709120 | NULL           |        
0 |
> | 27 | VOLUME.CREATE           |          2 | 2013-07-26 12:19:02 |       1 |       
  33 | usagecustom    |          14 |        NULL | 7516192768 | NULL           |        
0 |
> | 28 | VOLUME.CREATE           |          2 | 2013-07-26 12:20:49 |       1 |       
  34 | ROOT-24        |        NULL |           7 | 2147483648 | NULL           |        
0 |
> | 29 | VM.CREATE               |          2 | 2013-07-26 12:20:49 |       1 |       
  24 | usage          |          12 |           7 |       NULL | VMware         |        
0 |
> | 30 | NETWORK.OFFERING.ASSIGN |          2 | 2013-07-26 12:22:03 |       1 |       
  24 | 85             |           8 |        NULL |          1 | NULL           |        
0 |
> | 31 | VM.START                |          2 | 2013-07-26 12:22:03 |       1 |       
  24 | usage          |          12 |           7 |       NULL | VMware         |        
0 |
> | 32 | VOLUME.CREATE           |          2 | 2013-07-26 12:25:17 |       1 |       
  33 | usagecustom    |          14 |        NULL | 7516192768 | NULL           |        
0 |
> +----+-------------------------+------------+---------------------+---------+-------------+----------------+-------------+-------------+------------+----------------+-----------+
> 32 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

Mime
View raw message