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 2021/04/24 08:04:59 UTC
[GitHub] [cloudstack] leolleeooleo edited a comment on issue #4936: Migrate Volume disk offering change when Replace disk offering does not selected
leolleeooleo edited a comment on issue #4936:
URL: https://github.com/apache/cloudstack/issues/4936#issuecomment-825814783
I test this issue again.
It does not happen with "Migrate Volume".
It is happened by "Scale VM".
Steps:
1. Create VM
2. Migrate instance to another host (Works fine)
3. Scale VM to any Compute Offering
4. Start Instance
5. Migrate instance to another host (Error)
Migrating test-migrate
(test-migrate) Exception during migrate: org.libvirt.LibvirtException: Unsafe migration: Migration may lead to data corruption if disks use cache != none or cache != directsync
Before Scale VM
The root disk Compute Offering was 20GB

After Scale VM
The root disk Compute Offering change to 2C4G

Migrate instance Error

Before Scale VM
~~~
(localcloud) cloudstack > list virtualmachines id=644205e5-5a01-4a62-afac-6f03278e9886
{
"count": 1,
"virtualmachine": [
{
"account": "D10307009",
"affinitygroup": [],
"cpunumber": 2,
"cpuspeed": 2000,
"cpuused": "4.43%",
"created": "2021-04-23T23:12:52+0800",
"details": {
"Message.ReservedCapacityFreed.Flag": "false",
"cpuOvercommitRatio": "32",
"memoryOvercommitRatio": "1.0"
},
"diskioread": 61817,
"diskiowrite": 29704,
"diskkbsread": 2835343,
"diskkbswrite": 3974206,
"diskofferingid": "ffe2070a-8c0b-4a66-9687-cbe70346fb6d",
"diskofferingname": "20 GB",
"displayname": "test-migrate",
"displayvm": true,
"domain": "ROOT",
"domainid": "0805834e-d677-11ea-9082-ae75c86dd51b",
"guestosid": "78c0272c-d677-11ea-9082-ae75c86dd51b",
"haenable": false,
"hypervisor": "KVM",
"id": "644205e5-5a01-4a62-afac-6f03278e9886",
"instancename": "i-4-174-VM",
"isdynamicallyscalable": false,
"memory": 2048,
"memoryintfreekbs": 726916,
"memorykbs": 2097152,
"memorytargetkbs": 2097152,
"name": "test-migrate",
"networkkbsread": 1762540,
"networkkbswrite": 13636,
"nic": [
{
"extradhcpoption": [],
"gateway": "10.1.1.1",
"id": "786197c8-08f2-4833-8c83-0c8453e1208d",
"ipaddress": "10.1.1.202",
"isdefault": true,
"macaddress": "02:00:04:1d:00:25",
"netmask": "255.255.255.0",
"networkid": "2adaf3cc-b972-4aa6-9cfe-3eba40af3dcc",
"networkname": "D10307009-net",
"secondaryip": [],
"traffictype": "Guest",
"type": "Isolated"
}
],
"osdisplayname": "CentOS 8",
"ostypeid": "78c0272c-d677-11ea-9082-ae75c86dd51b",
"passwordenabled": false,
"rootdeviceid": 0,
"rootdevicetype": "ROOT",
"securitygroup": [],
"serviceofferingid": "5bb789af-886a-4609-b57d-de65de822c49",
"serviceofferingname": "2C2G",
"state": "Stopped",
"tags": [],
"templatedisplaytext": "CentOS 8 cckuo",
"templateid": "99239f20-2562-4bf6-83bb-ff443e223138",
"templatename": "CentOS 8",
"userid": "fb425cb8-c816-43b1-9727-9ef22ab60904",
"username": "D10307009",
"zoneid": "80d5cccc-fabb-425b-89ff-ebb023da3d5d",
"zonename": "T2-421"
}
]
}
(localcloud) cloudstack > list volumes id=2618ddb8-2c43-4c10-bc95-b9c5f9cd15e4
{
"count": 1,
"volume": [
{
"account": "D10307009",
"clusterid": "a27d3806-48fa-4952-9545-f0a2a035d8a5",
"clustername": "Dell PowerEdge R410",
"created": "2021-04-24T00:38:30+0800",
"destroyed": false,
"deviceid": 0,
"displayvolume": true,
"domain": "ROOT",
"domainid": "0805834e-d677-11ea-9082-ae75c86dd51b",
"hypervisor": "KVM",
"id": "2618ddb8-2c43-4c10-bc95-b9c5f9cd15e4",
"isextractable": true,
"name": "ROOT-174",
"path": "f507992c-0cbe-4edf-ba9c-cc66aeea586c",
"podid": "d3c4b2e6-2915-47be-a58d-424b55e56eee",
"podname": "T2-421-1",
"provisioningtype": "thin",
"quiescevm": false,
"serviceofferingdisplaytext": "20 GB",
"serviceofferingid": "ffe2070a-8c0b-4a66-9687-cbe70346fb6d",
"serviceofferingname": "20 GB",
"size": 21474836480,
"state": "Ready",
"storage": "Volume01",
"storageid": "7b3cb8ef-2fb7-3209-ace8-e9c7e7282489",
"storagetype": "shared",
"tags": [],
"type": "ROOT",
"virtualmachineid": "644205e5-5a01-4a62-afac-6f03278e9886",
"vmdisplayname": "test-migrate",
"vmname": "test-migrate",
"vmstate": "Stopped",
"zoneid": "80d5cccc-fabb-425b-89ff-ebb023da3d5d",
"zonename": "T2-421"
}
]
}
~~~
After Scale VM
~~~
(localcloud) cloudstack > list volumes id=2618ddb8-2c43-4c10-bc95-b9c5f9cd15e4
{
"count": 1,
"volume": [
{
"account": "D10307009",
"clusterid": "a27d3806-48fa-4952-9545-f0a2a035d8a5",
"clustername": "Dell PowerEdge R410",
"created": "2021-04-24T00:38:30+0800",
"destroyed": false,
"deviceid": 0,
"displayvolume": true,
"domain": "ROOT",
"domainid": "0805834e-d677-11ea-9082-ae75c86dd51b",
"hypervisor": "KVM",
"id": "2618ddb8-2c43-4c10-bc95-b9c5f9cd15e4",
"isextractable": true,
"name": "ROOT-174",
"path": "f507992c-0cbe-4edf-ba9c-cc66aeea586c",
"podid": "d3c4b2e6-2915-47be-a58d-424b55e56eee",
"podname": "T2-421-1",
"provisioningtype": "thin",
"quiescevm": false,
"serviceofferingdisplaytext": "2C4G",
"serviceofferingid": "589766b7-ce4d-4baf-875c-9f6d1af7dba6",
"serviceofferingname": "2C4G",
"size": 21474836480,
"state": "Ready",
"storage": "Volume01",
"storageid": "7b3cb8ef-2fb7-3209-ace8-e9c7e7282489",
"storagetype": "shared",
"tags": [],
"type": "ROOT",
"virtualmachineid": "644205e5-5a01-4a62-afac-6f03278e9886",
"vmdisplayname": "test-migrate",
"vmname": "test-migrate",
"vmstate": "Stopped",
"zoneid": "80d5cccc-fabb-425b-89ff-ebb023da3d5d",
"zonename": "T2-421"
}
]
}
~~~
~~~
(localcloud) cloudstack > list serviceofferings
{
"count": 13,
"serviceoffering": [
{
"cpunumber": 1,
"cpuspeed": 500,
"created": "2020-08-05T01:25:44+0800",
"defaultuse": false,
"displaytext": "Small Instance",
"id": "a50d423e-1ca3-4daf-a764-d61df4f9a2b5",
"iscustomized": false,
"issystem": false,
"isvolatile": false,
"limitcpuuse": false,
"memory": 512,
"name": "Small Instance",
"offerha": false,
"provisioningtype": "thin",
"rootdisksize": 0,
"storagetype": "shared"
},
{
"cpunumber": 1,
"cpuspeed": 1000,
"created": "2020-08-05T01:25:44+0800",
"defaultuse": false,
"displaytext": "Medium Instance",
"id": "48ddc666-3a67-4593-b435-9fb9f76d3991",
"iscustomized": false,
"issystem": false,
"isvolatile": false,
"limitcpuuse": false,
"memory": 1024,
"name": "Medium Instance",
"offerha": false,
"provisioningtype": "thin",
"rootdisksize": 0,
"storagetype": "shared"
},
{
"cacheMode": "writeback",
"cpunumber": 2,
"cpuspeed": 2000,
"created": "2020-08-06T22:11:21+0800",
"defaultuse": false,
"displaytext": "2C2G",
"id": "5bb789af-886a-4609-b57d-de65de822c49",
"iscustomized": false,
"issystem": false,
"isvolatile": false,
"limitcpuuse": false,
"memory": 2048,
"name": "2C2G",
"offerha": false,
"provisioningtype": "thin",
"rootdisksize": 0,
"storagetype": "shared"
},
{
"cacheMode": "writeback",
"cpunumber": 2,
"cpuspeed": 2000,
"created": "2020-08-06T22:13:20+0800",
"defaultuse": false,
"displaytext": "2C4G",
"id": "589766b7-ce4d-4baf-875c-9f6d1af7dba6",
"iscustomized": false,
"issystem": false,
"isvolatile": false,
"limitcpuuse": false,
"memory": 4096,
"name": "2C4G",
"offerha": false,
"provisioningtype": "thin",
"rootdisksize": 0,
"storagetype": "shared"
},
~~~
~~~
(localcloud) cloudstack > list diskofferings
{
"count": 5,
"diskoffering": [
{
"created": "2020-08-05T01:25:44+0800",
"disksize": 5,
"displayoffering": true,
"displaytext": "5 GB",
"id": "0c1afda9-a17e-4b1a-a7ea-ea87d85e7015",
"iscustomized": false,
"name": "5 GB",
"provisioningtype": "thin",
"storagetype": "shared"
},
{
"created": "2020-08-05T01:25:44+0800",
"disksize": 20,
"displayoffering": true,
"displaytext": "20 GB",
"id": "ffe2070a-8c0b-4a66-9687-cbe70346fb6d",
"iscustomized": false,
"name": "20 GB",
"provisioningtype": "thin",
"storagetype": "shared"
},
{
"created": "2020-08-05T01:25:44+0800",
"disksize": 100,
"displayoffering": true,
"displaytext": "100 GB",
"id": "1a9cbe1e-a824-405b-8f79-16796b781fc3",
"iscustomized": false,
"name": "100 GB",
"provisioningtype": "thin",
"storagetype": "shared"
},
{
"cacheMode": "none",
"created": "2021-01-14T22:21:58+0800",
"disksize": 500,
"displayoffering": true,
"displaytext": "500 GB",
"id": "fa9ace64-4d92-4a02-b124-a3239713d377",
"iscustomized": false,
"name": "500 GB",
"provisioningtype": "thin",
"storagetype": "shared"
},
{
"created": "2020-08-05T01:25:44+0800",
"disksize": 0,
"displayoffering": true,
"displaytext": "Custom Disk",
"id": "0dc9045c-12ba-464d-be6c-fecc9feda9dc",
"iscustomized": true,
"name": "Custom",
"provisioningtype": "thin",
"storagetype": "shared"
}
]
}
~~~
--
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