Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EB978200AE4 for ; Fri, 10 Jun 2016 03:02:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EA118160A58; Fri, 10 Jun 2016 01:02:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 45C0E160A59 for ; Fri, 10 Jun 2016 03:02:22 +0200 (CEST) Received: (qmail 79474 invoked by uid 500); 10 Jun 2016 01:02:21 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 79461 invoked by uid 500); 10 Jun 2016 01:02:21 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 79458 invoked by uid 99); 10 Jun 2016 01:02:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jun 2016 01:02:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EECF02C1F54 for ; Fri, 10 Jun 2016 01:02:20 +0000 (UTC) Date: Fri, 10 Jun 2016 01:02:20 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-8921) snapshot_store_ref table should store actual size of back snapshot in secondary storage MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 10 Jun 2016 01:02:23 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-8921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15323676#comment-15323676 ] ASF GitHub Bot commented on CLOUDSTACK-8921: -------------------------------------------- Github user bvbharatk commented on the issue: https://github.com/apache/cloudstack/pull/899 ### ACS CI BVT Run **Sumarry:** Build Number 172 Hypervisor xenserver NetworkType Advanced Passed=73 Failed=0 Skipped=3 _Link to logs Folder (search by build_no):_ https://www.dropbox.com/sh/yj3wnzbceo9uef2/AAB6u-Iap-xztdm6jHX9SjPja?dl=0 **Failed tests:** **Skipped tests:** test_vm_nic_adapter_vmxnet3 test_static_role_account_acls test_deploy_vgpu_enabled_vm **Passed test suits:** test_deploy_vm_with_userdata.py test_affinity_groups_projects.py test_portable_publicip.py test_vpc_vpn.py test_over_provisioning.py test_global_settings.py test_scale_vm.py test_service_offerings.py test_routers_iptables_default_policy.py test_routers.py test_reset_vm_on_reboot.py test_snapshots.py test_deploy_vms_with_varied_deploymentplanners.py test_login.py test_list_ids_parameter.py test_public_ip_range.py test_multipleips_per_nic.py test_regions.py test_affinity_groups.py test_network_acl.py test_pvlan.py test_volumes.py test_nic.py test_deploy_vm_root_resize.py test_resource_detail.py test_secondary_storage.py test_vm_life_cycle.py test_disk_offerings.py > snapshot_store_ref table should store actual size of back snapshot in secondary storage > --------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-8921 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8921 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: Snapshot, Usage > Affects Versions: 4.5.2 > Environment: Hypervisor: Xen Server > Hypervisor Version: 6.2 + SP1 > Reporter: subhash yedugundla > > CCP is storing physical-utilisation of the snapshot in physical_size column of the table "snapshot_store_ref". That was fixed as part of https://issues.apache.org/jira/browse/CLOUDSTACK-7842. > From DB: > ===================== > mysql> select * from snapshot_store_ref where id=586 \G; > id: 586 > store_id: 1 > snapshot_id: 305 > created: 2015-06-15 06:06:22 > last_updated: NULL > job_id: NULL > store_role: Image > size: 5368709120 > physical_size: 13312 ---> This is the size we are storing in the DB > parent_snapshot_id: 0 > install_path: snapshots/2/233/e8d888a5-41c0-4a17-b1b7-f9a6fd50c0d3 > state: Ready > update_count: 2 > ref_cnt: 0 > updated: 2015-06-15 06:06:36 > volume_id: 233 > 1 row in set (0.00 sec) > From File System: > ===================== > [root@kirangoleta2 233]# ls -lh > total 2.1M > -rw-r--r--. 1 root root 2.1M Jun 15 11:36 e8d888a5-41c0-4a17-b1b7-f9a6fd50c0d3.vhd ---> Physical file size > 3. From Xen Server: > ===================== > xe vdi-list name-label=newtest_ROOT-203_20150615060620 params=all > uuid ( RO) : 74a4185e-74fe-4cec-875b-060572cc675d > name-label ( RW): newtest_ROOT-203_20150615060620 > name-description ( RW): > is-a-snapshot ( RO): true > snapshot-of ( RO): 02789581-7bfc-45bd-8e59-c35515d2b605 > snapshots ( RO): > snapshot-time ( RO): 20150615T06:09:29Z > allowed-operations (SRO): forget; generate_config; update; resize; destroy; clone; copy; snapshot > current-operations (SRO): > sr-uuid ( RO): 73ff08fb-b341-c71c-e2c7-be6c8d395126 > sr-name-label ( RO): 347c06fb-f7dd-3613-aa82-db5b82181d77 > vbd-uuids (SRO): > crashdump-uuids (SRO): > virtual-size ( RO): 5368709120 > physical-utilisation ( RO): 14848 ---> This is the size xen server reports as consumed > location ( RO): 74a4185e-74fe-4cec-875b-060572cc675d > type ( RO): User > sharable ( RO): false > read-only ( RO): false > storage-lock ( RO): false > managed ( RO): true > parent ( RO): > missing ( RO): false > other-config (MRW): content_id: ad6423f7-e2c3-7ea4-be8d-573ad155511e > xenstore-data (MRO): > sm-config (MRO): vhd-parent: 73a33517-e9c5-48c6-89e7-70e37905a74a > on-boot ( RW): persist > allow-caching ( RW): false > metadata-latest ( RO): false > metadata-of-pool ( RO): > tags (SRW): > I see that we are storing the physical-utilisation reported by xen server. > Interesting I see that ACS stores the physical file size in case of VMWare environment, > EXPECTED BEHAVIOR > ================== > It is expected to see the physical size of the snapshot file in physical_size column of the table "snapshot_store_ref > ACTUAL BEHAVIOR > ================== > In case of Xen Server ACS is storing physical-utilisation of the snapshot in physical_size column of the table "snapshot_store_ref" -- This message was sent by Atlassian JIRA (v6.3.4#6332)