[jira] [Updated] (CLOUDSTACK-6371) KVM - secondary_storage count for account does not get incremted when snapshots are created. Count increases to the virtual size of snapshot when snapshot is in prog

2014-04-10 Thread Kishan Kavala (JIRA)

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

Kishan Kavala updated CLOUDSTACK-6371:
--

Affects Version/s: 4.3.0

> KVM - secondary_storage count for account does not get incremted when 
> snapshots are created. Count increases to the virtual size of snapshot when 
> snapshot is in progress and then resets to 0 when snapshot is done.
> -
>
> Key: CLOUDSTACK-6371
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6371
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>Affects Versions: 4.3.0
>Reporter: Kishan Kavala
> Fix For: 4.4.0, 4.5.0
>
>
> Steps to reproduce the problem:
> Set - Advanced zone set up with KVM (Rhel 6.3) hosts.
> Create an account.
> Deploy few Vms.
> Take snapshots of "ROOT" volumes of few of the Vms.
> Check the resource_count for "secondary_storage" for this account.
> It is always set to 0.
> Notice that this value gets set to the virtual size of the the Volume when 
> snapshot is in Progress.
> Once snapshot is done , it gets updated to 0.
> mysql> select * from resource_count where account_id=4;
> 
> id account_id  domain_id   typecount
> 
> 53 4   NULLuser_vm 12
> 54 4   NULLpublic_ip   13
> 55 4   NULLvolume  12
> 56 4   NULLsnapshot5
> 57 4   NULLtemplate0
> 58 4   NULLproject 0
> 59 4   NULLnetwork 1
> 60 4   NULLvpc 0
> 61 4   NULLcpu 12
> 62 4   NULLmemory  1536
> 63 4   NULLprimary_storage 103079215104
> 64 4   NULLsecondary_storage   0
> 
> 12 rows in set (0.00 sec)
> mysql> select * from snapshots where account_id=4;
> --+
> id data_center_id  account_id  domain_id   volume_id   
> disk_offering_idstatus  pathnameuuidsnapshot_type   
> type_descriptionsizecreated removed 
> backup_snap_id  swift_idsechost_id  prev_snap_id
> hypervisor_type version s3_id
> --+
> 7501   4   1   40  16  BackedUpNULL
> TestVM-tiny-host-1ps-0-4_ROOT-40_20140113223219 
> 0696a291-7fe6-47d6-b4d4-0d489d7ddb3e0   MANUAL  8589934592  
> 2014-01-13 22:32:19 NULLNULLNULLNULLNULLKVM 2.2   
>   NULL
> 7511   4   1   41  12  BackedUpNULL
> testnew_ROOT-41_20140113224709  3ba19873-8a90-49f5-8a5c-58d0c980fc2b0 
>   MANUAL  8589934592  2014-01-13 22:47:09 NULLNULLNULL
> NULLNULLKVM 2.2 NULL
> 7521   4   1   41  12  BackedUpNULL
> testnew_ROOT-41_20140113225245  d73d8c26-4f2a-4ead-801c-8e8cee42ab700 
>   MANUAL  8589934592  2014-01-13 22:52:45 NULLNULLNULL
> NULLNULLKVM 2.2 NULL
> 7551   4   1   38  16  BackedUpNULL
> TestVM-tiny-host-1ps-0-2_ROOT-38_20140114020510 
> 80672e8b-4a45-4070-9686-c68aee9c217d0   MANUAL  8589934592  
> 2014-01-14 02:05:10 NULLNULLNULLNULLNULLKVM 2.2   
>   NULL
> 7561   4   1   40  16  BackedUpNULL
> TestVM-tiny-host-1ps-0-4_ROOT-40_20140116234727 
> db0300ec-9558-40eb-8244-a8fbef7ad9b40   MANUAL  8589934592  
> 2014-01-16 23:47:27 NULLNULLNULLNULLNULLKVM 2.2   
>   NULL
> -

[jira] [Updated] (CLOUDSTACK-6371) KVM - secondary_storage count for account does not get incremted when snapshots are created. Count increases to the virtual size of snapshot when snapshot is in prog

2014-04-10 Thread Kishan Kavala (JIRA)

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

Kishan Kavala updated CLOUDSTACK-6371:
--

Fix Version/s: 4.5.0
   4.4.0

> KVM - secondary_storage count for account does not get incremted when 
> snapshots are created. Count increases to the virtual size of snapshot when 
> snapshot is in progress and then resets to 0 when snapshot is done.
> -
>
> Key: CLOUDSTACK-6371
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6371
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>Affects Versions: 4.3.0
>Reporter: Kishan Kavala
> Fix For: 4.4.0, 4.5.0
>
>
> Steps to reproduce the problem:
> Set - Advanced zone set up with KVM (Rhel 6.3) hosts.
> Create an account.
> Deploy few Vms.
> Take snapshots of "ROOT" volumes of few of the Vms.
> Check the resource_count for "secondary_storage" for this account.
> It is always set to 0.
> Notice that this value gets set to the virtual size of the the Volume when 
> snapshot is in Progress.
> Once snapshot is done , it gets updated to 0.
> mysql> select * from resource_count where account_id=4;
> 
> id account_id  domain_id   typecount
> 
> 53 4   NULLuser_vm 12
> 54 4   NULLpublic_ip   13
> 55 4   NULLvolume  12
> 56 4   NULLsnapshot5
> 57 4   NULLtemplate0
> 58 4   NULLproject 0
> 59 4   NULLnetwork 1
> 60 4   NULLvpc 0
> 61 4   NULLcpu 12
> 62 4   NULLmemory  1536
> 63 4   NULLprimary_storage 103079215104
> 64 4   NULLsecondary_storage   0
> 
> 12 rows in set (0.00 sec)
> mysql> select * from snapshots where account_id=4;
> --+
> id data_center_id  account_id  domain_id   volume_id   
> disk_offering_idstatus  pathnameuuidsnapshot_type   
> type_descriptionsizecreated removed 
> backup_snap_id  swift_idsechost_id  prev_snap_id
> hypervisor_type version s3_id
> --+
> 7501   4   1   40  16  BackedUpNULL
> TestVM-tiny-host-1ps-0-4_ROOT-40_20140113223219 
> 0696a291-7fe6-47d6-b4d4-0d489d7ddb3e0   MANUAL  8589934592  
> 2014-01-13 22:32:19 NULLNULLNULLNULLNULLKVM 2.2   
>   NULL
> 7511   4   1   41  12  BackedUpNULL
> testnew_ROOT-41_20140113224709  3ba19873-8a90-49f5-8a5c-58d0c980fc2b0 
>   MANUAL  8589934592  2014-01-13 22:47:09 NULLNULLNULL
> NULLNULLKVM 2.2 NULL
> 7521   4   1   41  12  BackedUpNULL
> testnew_ROOT-41_20140113225245  d73d8c26-4f2a-4ead-801c-8e8cee42ab700 
>   MANUAL  8589934592  2014-01-13 22:52:45 NULLNULLNULL
> NULLNULLKVM 2.2 NULL
> 7551   4   1   38  16  BackedUpNULL
> TestVM-tiny-host-1ps-0-2_ROOT-38_20140114020510 
> 80672e8b-4a45-4070-9686-c68aee9c217d0   MANUAL  8589934592  
> 2014-01-14 02:05:10 NULLNULLNULLNULLNULLKVM 2.2   
>   NULL
> 7561   4   1   40  16  BackedUpNULL
> TestVM-tiny-host-1ps-0-4_ROOT-40_20140116234727 
> db0300ec-9558-40eb-8244-a8fbef7ad9b40   MANUAL  8589934592  
> 2014-01-16 23:47:27 NULLNULLNULLNULLNULLKVM 2.2   
>   NULL
>