You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2020/06/05 06:35:57 UTC

[GitHub] [cloudstack] shwstppr commented on pull request #4094: kvm: qemu-img convert -s to backup snapshot is deprecated

shwstppr commented on pull request #4094:
URL: https://github.com/apache/cloudstack/pull/4094#issuecomment-639288198


   @rhtyd Checked with CentOS8. This PR branch over #4068. No regression in snapshot behavior.
   
   - Works for stopped VM
   - Does not work for running VM
   
   ```
   (localcloud) 🐱 > create snapshot volumeid=3b2ba1c3-acc5-4ab3-ab93-9c391c13532e name=testcmk
   🙈 Error: (HTTP 530, error code 4250) KVM Snapshot is not supported: 1
   (localcloud) 🐱 > stop virtualmachine id=8dfa8795-d5d3-472e-836b-87d4d0b50c32 
   {
     "virtualmachine": {
       "account": "admin",
       "affinitygroup": [],
       "cpunumber": 1,
       "cpuspeed": 500,
       "cpuused": "6.12%",
       "created": "2020-06-05T02:25:14-0400",
       "details": {
         "Message.ReservedCapacityFreed.Flag": "false"
       },
       "diskioread": 3252,
       "diskiowrite": 1299,
       "diskkbsread": 126593,
       "diskkbswrite": 13906,
       "displayname": "VM-8dfa8795-d5d3-472e-836b-87d4d0b50c32",
       "displayvm": true,
       "domain": "ROOT",
       "domainid": "8c14d697-a6f3-11ea-b8d1-5254000bd6e5",
       "guestosid": "8c99acec-a6f3-11ea-b8d1-5254000bd6e5",
       "haenable": false,
       "hypervisor": "KVM",
       "id": "8dfa8795-d5d3-472e-836b-87d4d0b50c32",
       "instancename": "i-2-3-VM",
       "isdynamicallyscalable": false,
       "jobid": "8fde136a-5738-4fab-bf5f-ba5f7d8cf919",
       "jobstatus": 0,
       "memory": 512,
       "memoryintfreekbs": 295804,
       "memorykbs": 524288,
       "memorytargetkbs": 524288,
       "name": "VM-8dfa8795-d5d3-472e-836b-87d4d0b50c32",
       "networkkbsread": 3,
       "networkkbswrite": 8,
       "nic": [
         {
           "extradhcpoption": [],
           "gateway": "10.1.1.1",
           "id": "6d7efdca-cb23-4329-aad3-dac5154d1517",
           "ipaddress": "10.1.1.175",
           "isdefault": true,
           "macaddress": "02:00:4e:8d:00:01",
           "netmask": "255.255.255.0",
           "networkid": "81be6827-8f15-407e-8f55-f0efe042545a",
           "networkname": "test",
           "secondaryip": [],
           "traffictype": "Guest",
           "type": "Isolated"
         }
       ],
       "ostypeid": "8c99acec-a6f3-11ea-b8d1-5254000bd6e5",
       "passwordenabled": false,
       "rootdeviceid": 0,
       "rootdevicetype": "ROOT",
       "securitygroup": [],
       "serviceofferingid": "dda5ffb1-1d1b-46ff-b496-8d8758042572",
       "serviceofferingname": "Small Instance",
       "state": "Stopped",
       "tags": [],
       "templatedisplaytext": "CentOS 5.5(64-bit) no GUI (KVM)",
       "templateid": "8c206fe5-a6f3-11ea-b8d1-5254000bd6e5",
       "templatename": "CentOS 5.5(64-bit) no GUI (KVM)",
       "userid": "c332deea-a6f3-11ea-b8d1-5254000bd6e5",
       "username": "admin",
       "zoneid": "8f610c3f-a5a2-4775-b10d-1c293e82f64d",
       "zonename": "z1"
     }
   }
   (localcloud) 🐱 > create snapshot volumeid=3b2ba1c3-acc5-4ab3-ab93-9c391c13532e name=testcmk
   {
     "snapshot": {
       "account": "admin",
       "created": "2020-06-05T02:31:27-0400",
       "domain": "ROOT",
       "domainid": "8c14d697-a6f3-11ea-b8d1-5254000bd6e5",
       "id": "900b2067-be46-4d55-b423-e75894300b78",
       "intervaltype": "MANUAL",
       "name": "testcmk",
       "osdisplayname": "CentOS 5.5 (64-bit)",
       "ostypeid": "8c99acec-a6f3-11ea-b8d1-5254000bd6e5",
       "physicalsize": 1510604800,
       "revertable": true,
       "snapshottype": "MANUAL",
       "state": "BackedUp",
       "tags": [],
       "virtualsize": 8589934592,
       "volumeid": "3b2ba1c3-acc5-4ab3-ab93-9c391c13532e",
       "volumename": "ROOT-3",
       "volumetype": "ROOT",
       "zoneid": "8f610c3f-a5a2-4775-b10d-1c293e82f64d"
     }
   }
   (localcloud) 🐱 > exit
   [root@srvr1 ~]# hostnamectl
      Static hostname: localhost.localdomain
   Transient hostname: srvr1.cloud.priv
            Icon name: computer-vm
              Chassis: vm
           Machine ID: 5319303eb7f24b7b9ff80b20b150cc0c
              Boot ID: 0fdccec7d6354a588b3dd13b3161e7d5
       Virtualization: kvm
     Operating System: CentOS Linux 8 (Core)
          CPE OS Name: cpe:/o:centos:centos:8
               Kernel: Linux 4.18.0-147.8.1.el8_1.x86_64
         Architecture: x86-64
   
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org