cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abhinandan Prateek (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CLOUDSTACK-6821) Disk allocated for primary storage remain unchanged after volume deletion
Date Fri, 18 Jul 2014 06:10:05 GMT

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

Abhinandan Prateek updated CLOUDSTACK-6821:
-------------------------------------------

    Assignee: Nitin Mehta

> Disk allocated for primary storage  remain unchanged after volume deletion 
> ---------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-6821
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6821
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Storage Controller
>    Affects Versions: 4.4.0
>            Reporter: prashant kumar mishra
>            Assignee: Nitin Mehta
>            Priority: Critical
>             Fix For: 4.4.0
>
>         Attachments: Logs_Db.rar
>
>
> steps to repo
> ===========
> 1-prepare one cluster+one primary storage (say ps1) CS setup 
> 2-deploy a vm
> 3-create volume and attach to vm
> 4-detach volume
> 5-add another primary storage ps2
> 6-migrate volume to ps
> 7-Check Disk allocated for PS
> 8-delete the volume wait for storage cleanup thread to run 
> 9-check Disk allocated
> Expected
> ========
> Disk allocated should be zero since only volume got deleted
> Actual
> ======
> Disk allocated remains unchanged  
> DB
> ==
> mysql> select * from storage_pool where id=4\G;
> *************************** 1. row ***************************
>                    id: 4
>                  name: pm2
>                  uuid: c6e5687b-caa5-3d8c-9347-9ca24a0b69e8
>             pool_type: NetworkFilesystem
>                  port: 2049
>        data_center_id: 1
>                pod_id: 1
>            cluster_id: 1
>            used_bytes: 804126720
>        capacity_bytes: 34390016000
>          host_address: 10.147.29.216
>             user_info: NULL
>                  path: /var/unixmen_share/pm2
>               created: 2014-06-02 14:42:14
>               removed: NULL
>           update_time: NULL
>                status: Up
> storage_provider_name: DefaultPrimary
>                 scope: CLUSTER
>            hypervisor: NULL
>               managed: 0
>         capacity_iops: NULL
> 1 row in set (0.00 sec)
> ERROR:
> No query specified
> mysql> select * from storage_pool_view where id=4\G;
> *************************** 1. row ***************************
>                     id: 4
>                   uuid: c6e5687b-caa5-3d8c-9347-9ca24a0b69e8
>                   name: pm2
>                 status: Up
>                   path: /var/unixmen_share/pm2
>              pool_type: NetworkFilesystem
>           host_address: 10.147.29.216
>                created: 2014-06-02 14:42:14
>                removed: NULL
>         capacity_bytes: 34390016000
>          capacity_iops: NULL
>                  scope: CLUSTER
>             hypervisor: NULL
>  storage_provider_name: DefaultPrimary
>             cluster_id: 1
>           cluster_uuid: c9094153-1980-4765-934a-827e27ccbac6
>           cluster_name: cl1
>           cluster_type: CloudManaged
>         data_center_id: 1
>       data_center_uuid: ae6be023-91c9-47d0-9ce1-0898c4429ed4
>       data_center_name: zn1
>       data_center_type: Advanced
>                 pod_id: 1
>               pod_uuid: 8465eac0-b4e5-467d-942a-fadac6c27e65
>               pod_name: pd1
>                    tag: NULL
>     disk_used_capacity: 21474836480
> disk_reserved_capacity: 0
>                 job_id: NULL
>               job_uuid: NULL
>             job_status: NULL
>         job_account_id: NULL
> 1 row in set (0.00 sec)
> ERROR:
> No query specified
> =>there was only one volume which got deleted .
> mysql> select * from volumes where pool_id=4\G;
> *************************** 1. row ***************************
>                         id: 22
>                 account_id: 2
>                  domain_id: 1
>                    pool_id: 4
>               last_pool_id: 1
>                instance_id: NULL
>                  device_id: NULL
>                       name: new12
>                       uuid: f041aff6-883d-4d29-9226-0f4e8b76d981
>                       size: 21474836480
>                     folder: /var/unixmen_share/pm2
>                       path: 441126db-2d02-47b6-9b5f-48b43e443b37
>                     pod_id: 1
>             data_center_id: 1
>                 iscsi_name: NULL
>                    host_ip: NULL
>                volume_type: DATADISK
>                  pool_type: NULL
>           disk_offering_id: 4
>                template_id: NULL
> first_snapshot_backup_uuid: NULL
>                recreatable: 0
>                    created: 2014-06-02 15:05:21
>                   attached: NULL
>                    updated: 2014-06-02 15:08:26
>                    removed: 2014-06-02 15:08:26
>                      state: Expunged
>                 chain_info: NULL
>               update_count: 6
>                  disk_type: NULL
>     vm_snapshot_chain_size: NULL
>                     iso_id: NULL
>             display_volume: 1
>                     format: VHD
>                   min_iops: NULL
>                   max_iops: NULL
>              hv_ss_reserve: NULL
> 1 row in set (0.00 sec)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message