You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by niteshsarda <gi...@git.apache.org> on 2017/04/04 10:35:43 UTC

[GitHub] cloudstack issue #914: BUG-ID CLOUDSTACK-8939 VM Snapshot size with memory i...

Github user niteshsarda commented on the issue:

    https://github.com/apache/cloudstack/pull/914
  
    I have tested this and **LGTM** for test.
    
    Following are the test results : 
    
    **Before applying fix :**
    
    [root@xenserver-jay ~]# xe vbd-list vm-name-label=i-2-120-VM empty=false params=vdi-uuid
    vdi-uuid ( RO)    : 674c2c07-954e-4fa0-943a-979a71748727
    
    
    [root@xenserver-jay ~]# xe vdi-list params=physical-utilisation,sm-config,is-a-snapshot uuid=674c2c07-954e-4fa0-943a-979a71748727
    is-a-snapshot ( RO)           : false
        physical-utilisation ( RO): 81256448
                   sm-config (MRO): host_OpaqueRef:a3c1c534-b5e3-6cb5-10af-b56dead63fc0: RW; vhd-parent: 1aac168d-22d2-4796-8669-48a3f4361dfc
    
    			   
    [root@xenserver-jay ~]# xe vdi-list params=physical-utilisation,sm-config,is-a-snapshot uuid=1aac168d-22d2-4796-8669-48a3f4361dfc
    is-a-snapshot ( RO)           : false
        physical-utilisation ( RO): 233251328
                   sm-config (MRO): vhd-blocks: eJxjYEAB7AykARFGPc1cN4UVJGqDAUYG5tZJF0ymbpi4bYUCAxPJ+nn2sDQLMGwTYzzI0OvAQob1AgIBip6BrAIrG0jWDAEAQmQNjA==; vhd-parent: 55943089-24fa-4fbe-a44e-e57fe9a080ed
    			   
    [root@xenserver-jay ~]# xe vdi-list name-label=Suspend\ image params=all
    uuid ( RO)                    : 105fbe1d-973b-4d8d-82e7-96246669a769
                  name-label ( RW): Suspend image
            name-description ( RW): Suspend image
               is-a-snapshot ( RO): true
                 snapshot-of ( RO): <not in database>
                   snapshots ( RO):
               snapshot-time ( RO): 20170401T07:49:50Z
          allowed-operations (SRO): forget; generate_config; update; resize; destroy; clone; copy; snapshot
          current-operations (SRO):
                     sr-uuid ( RO): 99b84794-d0d6-46c6-fa42-07af5b423b8c
               sr-name-label ( RO): d2fecabd-61cf-3458-a120-ea01a4f91c29
                   vbd-uuids (SRO):
             crashdump-uuids (SRO):
                virtual-size ( RO): 782237696
        physical-utilisation ( RO): 6144
                    location ( RO): 105fbe1d-973b-4d8d-82e7-96246669a769
                        type ( RO): Suspend
                    sharable ( RO): false
                   read-only ( RO): false
                storage-lock ( RO): false
                     managed ( RO): true
                      parent ( RO): <not in database>
                     missing ( RO): false
                other-config (MRW): content_id: 842a46b4-bffd-70fb-b00a-47c39de8959b
               xenstore-data (MRO):
                   sm-config (MRO): vhd-parent: 638118a6-5f85-4c35-9aa8-d19793a144a8
                     on-boot ( RW): persist
               allow-caching ( RW): false
             metadata-latest ( RO): false
            metadata-of-pool ( RO): <not in database>
                        tags (SRW):
    
    
    [root@xenserver-jay ~]# xe vdi-list uuid=638118a6-5f85-4c35-9aa8-d19793a144a8 params=all
    uuid ( RO)                    : 638118a6-5f85-4c35-9aa8-d19793a144a8
                  name-label ( RW): base copy
            name-description ( RW):
               is-a-snapshot ( RO): false
                 snapshot-of ( RO): <not in database>
                   snapshots ( RO):
               snapshot-time ( RO): 19700101T00:00:00Z
          allowed-operations (SRO): forget; generate_config; update; resize; destroy; clone; copy; snapshot
          current-operations (SRO):
                     sr-uuid ( RO): 99b84794-d0d6-46c6-fa42-07af5b423b8c
               sr-name-label ( RO): d2fecabd-61cf-3458-a120-ea01a4f91c29
                   vbd-uuids (SRO):
             crashdump-uuids (SRO):
                virtual-size ( RO): 782237696
        physical-utilisation ( RO): 548430336
                    location ( RO): 638118a6-5f85-4c35-9aa8-d19793a144a8
                        type ( RO): User
                    sharable ( RO): false
                   read-only ( RO): true
                storage-lock ( RO): false
                     managed ( RO): false
                      parent ( RO): <not in database>
                     missing ( RO): false
                other-config (MRW):
               xenstore-data (MRO):
                   sm-config (MRO): vhd-blocks: eJz7/x8/+MGAAgD69CDZ
                     on-boot ( RW): persist
               allow-caching ( RW): false
             metadata-latest ( RO): false
            metadata-of-pool ( RO): <not in database>
                        tags (SRW):
    
    			   
    			   
    mysql> select * from cloud.usage_event where resource_name like "i-2-120-VM%" \G
    *************************** 1. row ***************************
               id: 84
             type: VMSNAPSHOT.CREATE
       account_id: 2
          created: 2017-04-01 07:50:42
          zone_id: 2
      resource_id: 120
    resource_name: i-2-120-VM_VS_20170401074841
      offering_id: NULL
      template_id: 120
             size: 233272320
    resource_type: NULL
        processed: 0
     virtual_size: NULL
    
    **After applying fix :**
    
    [root@xenserver-jay ~]# xe vbd-list vm-name-label=i-2-120-VM empty=false params=vdi-uuid
    vdi-uuid ( RO)    : 674c2c07-954e-4fa0-943a-979a71748727
    
    
    [root@xenserver-jay ~]# xe vdi-list params=physical-utilisation,sm-config,is-a-snapshot uuid=674c2c07-954e-4fa0-943a-979a71748727
    is-a-snapshot ( RO)           : false
        physical-utilisation ( RO): 4215296
                   sm-config (MRO): vhd-parent: 1aac168d-22d2-4796-8669-48a3f4361dfc; host_OpaqueRef:a3c1c534-b5e3-6cb5-10af-b56dead63fc0: RW
    
    
    [root@xenserver-jay ~]# xe vdi-list params=physical-utilisation,sm-config,is-a-snapshot uuid=1aac168d-22d2-4796-8669-48a3f4361dfc
    is-a-snapshot ( RO)           : false
        physical-utilisation ( RO): 258466304
                   sm-config (MRO): vhd-blocks: eJxjYEAB7AykARHFfZa5bgqrSNQGA4wMzK2TLphM3TBx2wqFBcwk65fZw9oswLBNjPEgQ68DCxnWCwhcUPQMZBVYOYFkzRAAAKErD5A=; vhd-parent: 55943089-24fa-4fbe-a44e-e57fe9a080ed
    
    
    [root@xenserver-jay ~]# xe vdi-list name-label=Suspend\ image params=all
    uuid ( RO)                    : e186191b-e3a6-40d8-9086-2cbca2f2f6c5
                  name-label ( RW): Suspend image
            name-description ( RW): Suspend image
               is-a-snapshot ( RO): true
                 snapshot-of ( RO): <not in database>
                   snapshots ( RO):
               snapshot-time ( RO): 20170401T09:03:24Z
          allowed-operations (SRO): forget; generate_config; update; resize; destroy; clone; copy; snapshot
          current-operations (SRO):
                     sr-uuid ( RO): 99b84794-d0d6-46c6-fa42-07af5b423b8c
               sr-name-label ( RO): d2fecabd-61cf-3458-a120-ea01a4f91c29
                   vbd-uuids (SRO):
             crashdump-uuids (SRO):
                virtual-size ( RO): 782237696
        physical-utilisation ( RO): 6144
                    location ( RO): e186191b-e3a6-40d8-9086-2cbca2f2f6c5
                        type ( RO): Suspend
                    sharable ( RO): false
                   read-only ( RO): false
                storage-lock ( RO): false
                     managed ( RO): true
                      parent ( RO): <not in database>
                     missing ( RO): false
                other-config (MRW): content_id: 5dd927ff-af42-776e-5ba4-652344aaec84
               xenstore-data (MRO):
                   sm-config (MRO): vhd-parent: 14b415ba-95bf-4fc0-b584-d6a8b0a97c6b
                     on-boot ( RW): persist
               allow-caching ( RW): false
             metadata-latest ( RO): false
            metadata-of-pool ( RO): <not in database>
                        tags (SRW):
    
    
    [root@xenserver-jay ~]# xe vdi-list uuid=14b415ba-95bf-4fc0-b584-d6a8b0a97c6b params=all
    uuid ( RO)                    : 14b415ba-95bf-4fc0-b584-d6a8b0a97c6b
                  name-label ( RW): base copy
            name-description ( RW):
               is-a-snapshot ( RO): false
                 snapshot-of ( RO): <not in database>
                   snapshots ( RO):
               snapshot-time ( RO): 19700101T00:00:00Z
          allowed-operations (SRO): forget; generate_config; update; resize; destroy; clone; copy; snapshot
          current-operations (SRO):
                     sr-uuid ( RO): 99b84794-d0d6-46c6-fa42-07af5b423b8c
               sr-name-label ( RO): d2fecabd-61cf-3458-a120-ea01a4f91c29
                   vbd-uuids (SRO):
             crashdump-uuids (SRO):
                virtual-size ( RO): 782237696
        physical-utilisation ( RO): 548430336
                    location ( RO): 14b415ba-95bf-4fc0-b584-d6a8b0a97c6b
                        type ( RO): User
                    sharable ( RO): false
                   read-only ( RO): true
                storage-lock ( RO): false
                     managed ( RO): false
                      parent ( RO): <not in database>
                     missing ( RO): false
                other-config (MRW):
               xenstore-data (MRO):
                   sm-config (MRO): vhd-blocks: eJz7/x8/+MGAAgD69CDZ
                     on-boot ( RW): persist
               allow-caching ( RW): false
             metadata-latest ( RO): false
            metadata-of-pool ( RO): <not in database>
                        tags (SRW):
    
    					
    
    select * from cloud.usage_event where resource_name like "i-2-120-VM%" \G
    *************************** 1. row ***************************
    		   id: 87
             type: VMSNAPSHOT.CREATE
       account_id: 2
          created: 2017-04-01 09:04:52
          zone_id: 2
      resource_id: 120
    resource_name: i-2-120-VM_VS_20170401090220
      offering_id: NULL
      template_id: 120
             size: 775463895
    resource_type: NULL
        processed: 0
     virtual_size: NULL



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---