You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/03/28 06:37:41 UTC

[jira] [Commented] (CLOUDSTACK-9668) disksizeallocated of PrimaryStorage is different from the total size of a volume

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

ASF GitHub Bot commented on CLOUDSTACK-9668:
--------------------------------------------

Github user jayakarteek commented on the issue:

    https://github.com/apache/cloudstack/pull/1844
  
    Tested the scenario.
    results are as below
    select * from storage_pool;
    # id, name, uuid, pool_type, port, data_center_id, pod_id, cluster_id, used_bytes, capacity_bytes, host_address, user_info, path, created, removed, update_time, status, storage_provider_name, scope, hypervisor, managed, capacity_iops
    '11', 'pr_2', '80a753bb-6fad-3938-b657-ae62f6119804', 'NetworkFilesystem', '2049', '1', NULL, NULL, '4140196372480', '5902284800000', '10.147.28.7', NULL, '/export/home/jayakarteek/PR', '2017-03-28 05:54:28', NULL, NULL, 'Up', 'DefaultPrimary', 'ZONE', 'VMware', '0', NULL
    
    select * from  op_host_capacity;   **After attaching disk** 
    id, host_id, data_center_id, pod_id, cluster_id, used_capacity, reserved_capacity, total_capacity, capacity_type, capacity_state, update_time, created
    '11', '11', '1', NULL, NULL, '18253611008', '0', '11804569600000', '3', 'Enabled', '2017-03-28 05:57:58', '2017-03-28 05:57:58'
    select * from  op_host_capacity;   **After detaching and deleting the disk**
    # id, host_id, data_center_id, pod_id, cluster_id, used_capacity, reserved_capacity, total_capacity, capacity_type, capacity_state, update_time, created
    '11', '11', '1', NULL, NULL, '0', '0', '11804569600000', '3', 'Enabled', '2017-03-28 06:22:58', '2017-03-28 05:57:58'
    



> disksizeallocated of PrimaryStorage is different from the total size of a volume
> --------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-9668
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9668
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.9.0
>            Reporter: Sudhansu Sahu
>            Assignee: Sudhansu Sahu
>
> Disksizeallocated of PrimaryStorage is different from the total size of a volume.
> steps to reproduce:
> 1. create another primary storage( apart from default) with storage tag (say tag1)
> 2. create a disk offering with storage tag as that step1.
> 3. create a data disk with above disk offering.
> 4. attach the disk to vm.
> 5. when capacity checker thread runs it will update the used_capacity. Note down the op_host_capacity details for pool created in step1.
> 6. detach the disk and destroy the volume.
> 7. when capacity checker thread runs it will not update the used_capacity to 0.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)