shwstppr commented on issue #4838:
URL: https://github.com/apache/cloudstack/issues/4838#issuecomment-801888009
@nvazquez working fine on the master. I'm not able to reproduce there,
**Storage pools**
```
(localcloud) SBCM5> > list storagepools
filter=id,name,clusterid,clustername,scope,
{
"count": 2,
"storagepool": [
{
"clusterid": "b246199b-174b-4881-acdd-e1614554c883",
"clustername": "10.0.35.220/Trillian/p1-c2",
"id": "9c8729f3-8885-3e25-afae-6e8ba31fc48b",
"name": "ps2",
"scope": "CLUSTER"
},
{
"clusterid": "8f2bb91a-cb1a-4f52-9b5a-5d8f53bb4042",
"clustername": "p1-c1",
"id": "d655eab5-8199-3cc7-95ac-e5ffa68da70b",
"name": "ps1",
"scope": "CLUSTER"
}
]
}
```
**VM**
```
(localcloud) SBCM5> > list virtualmachines
id=c0043b7d-93b8-475f-8ff4-8c04a79be69f filter=id,name,hostid,hostname
{
"count": 1,
"virtualmachine": [
{
"hostid": "c3590057-9726-449c-9268-caabf15c92c9",
"hostname": "10.0.32.225",
"id": "c0043b7d-93b8-475f-8ff4-8c04a79be69f",
"name": "t1"
}
]
}
```
**Host details to find cluster**
```
(localcloud) SBCM5> > list hosts id=c3590057-9726-449c-9268-caabf15c92c9
filter=id,name,clusterid,clustername,
{
"count": 1,
"host": [
{
"clusterid": "8f2bb91a-cb1a-4f52-9b5a-5d8f53bb4042",
"clustername": "p1-c1",
"id": "c3590057-9726-449c-9268-caabf15c92c9",
"name": "10.0.32.225"
}
]
}
```
**Stop VM**
```
(localcloud) SBCM5> > stop virtualmachine
id=c0043b7d-93b8-475f-8ff4-8c04a79be69f filter=id,name,state
{}
```
**Storage migration**
```
(localcloud) SBCM5> > migrate virtualmachine
virtualmachineid=c0043b7d-93b8-475f-8ff4-8c04a79be69f
storageid=9c8729f3-8885-3e25-afae-6e8ba31fc48b
{
"virtualmachine": {
"account": "admin",
"affinitygroup": [],
"cpunumber": 1,
"cpuspeed": 500,
"cpuused": "52%",
"created": "2021-03-18T12:23:45+0000",
"details": {
"Message.ReservedCapacityFreed.Flag": "false",
"cpuOvercommitRatio": "2.0",
"dataDiskController": "osdefault",
"memoryOvercommitRatio": "1.0",
"rootDiskController": "ide"
},
"diskioread": 57,
"diskiowrite": 34,
"diskkbsread": 2209,
"diskkbswrite": 255,
"displayname": "t1",
"displayvm": true,
"domain": "ROOT",
"domainid": "61567101-87de-11eb-a346-1e00b6000460",
"guestosid": "615cf7b8-87de-11eb-a346-1e00b6000460",
"haenable": false,
"hypervisor": "VMware",
"id": "c0043b7d-93b8-475f-8ff4-8c04a79be69f",
"instancename": "i-2-5-VM",
"isdynamicallyscalable": false,
"memory": 512,
"memoryintfreekbs": 393216,
"memorykbs": 524288,
"memorytargetkbs": 524288,
"name": "t1",
"networkkbsread": 0,
"networkkbswrite": 0,
"nic": [
{
"extradhcpoption": [],
"gateway": "10.1.1.1",
"id": "004fd0b6-68b0-46ff-9588-dc4ebef28358",
"ipaddress": "10.1.1.91",
"isdefault": true,
"macaddress": "02:00:17:78:00:01",
"netmask": "255.255.255.0",
"networkid": "64dfde30-152d-40bc-be15-a480e09ef36f",
"networkname": "test",
"secondaryip": [],
"traffictype": "Guest",
"type": "Isolated"
}
],
"osdisplayname": "CentOS 5.3 (64-bit)",
"ostypeid": "615cf7b8-87de-11eb-a346-1e00b6000460",
"passwordenabled": false,
"pooltype": "NetworkFilesystem",
"rootdeviceid": 0,
"rootdevicetype": "ROOT",
"securitygroup": [],
"serviceofferingid": "423053f5-0195-4196-9544-f30cf843d755",
"serviceofferingname": "Small Instance",
"state": "Stopped",
"tags": [],
"templatedisplaytext": "CentOS 5.3(64-bit) no GUI (vSphere)",
"templateid": "61596d4f-87de-11eb-a346-1e00b6000460",
"templatename": "CentOS 5.3(64-bit) no GUI (vSphere)",
"userid": "76aa39e8-87de-11eb-a346-1e00b6000460",
"username": "admin",
"zoneid": "6607b15e-5ca2-4d99-af51-3b1590698754",
"zonename": "pr4378-t173-vmware-65u2"
}
}
```
**Start migrated VM**
```
(localcloud) SBCM5> > start virtualmachine
id=c0043b7d-93b8-475f-8ff4-8c04a79be69f
{
"virtualmachine": {
"account": "admin",
"affinitygroup": [],
"cpunumber": 1,
"cpuspeed": 500,
"cpuused": "52%",
"created": "2021-03-18T12:23:45+0000",
"details": {
"Message.ReservedCapacityFreed.Flag": "false",
"cpuOvercommitRatio": "2.0",
"dataDiskController": "osdefault",
"memoryOvercommitRatio": "1.0",
"rootDiskController": "ide"
},
"diskioread": 57,
"diskiowrite": 34,
"diskkbsread": 2209,
"diskkbswrite": 255,
"displayname": "t1",
"displayvm": true,
"domain": "ROOT",
"domainid": "61567101-87de-11eb-a346-1e00b6000460",
"guestosid": "615cf7b8-87de-11eb-a346-1e00b6000460",
"haenable": false,
"hostid": "877fff60-d5c8-415e-82ad-65330a845a11",
"hostname": "10.0.33.209",
"hypervisor": "VMware",
"id": "c0043b7d-93b8-475f-8ff4-8c04a79be69f",
"instancename": "i-2-5-VM",
"isdynamicallyscalable": false,
"jobid": "1b8e7636-6444-4884-a91c-547c069bd442",
"jobstatus": 0,
"memory": 512,
"memoryintfreekbs": 393216,
"memorykbs": 524288,
"memorytargetkbs": 524288,
"name": "t1",
"networkkbsread": 0,
"networkkbswrite": 0,
"nic": [
{
"broadcasturi": "vlan://1951",
"extradhcpoption": [],
"gateway": "10.1.1.1",
"id": "004fd0b6-68b0-46ff-9588-dc4ebef28358",
"ipaddress": "10.1.1.91",
"isdefault": true,
"isolationuri": "vlan://1951",
"macaddress": "02:00:17:78:00:01",
"netmask": "255.255.255.0",
"networkid": "64dfde30-152d-40bc-be15-a480e09ef36f",
"networkname": "test",
"secondaryip": [],
"traffictype": "Guest",
"type": "Isolated"
}
],
"osdisplayname": "CentOS 5.3 (64-bit)",
"ostypeid": "615cf7b8-87de-11eb-a346-1e00b6000460",
"passwordenabled": false,
"pooltype": "NetworkFilesystem",
"rootdeviceid": 0,
"rootdevicetype": "ROOT",
"securitygroup": [],
"serviceofferingid": "423053f5-0195-4196-9544-f30cf843d755",
"serviceofferingname": "Small Instance",
"state": "Running",
"tags": [],
"templatedisplaytext": "CentOS 5.3(64-bit) no GUI (vSphere)",
"templateid": "61596d4f-87de-11eb-a346-1e00b6000460",
"templatename": "CentOS 5.3(64-bit) no GUI (vSphere)",
"userid": "76aa39e8-87de-11eb-a346-1e00b6000460",
"username": "admin",
"zoneid": "6607b15e-5ca2-4d99-af51-3b1590698754",
"zonename": "pr4378-t173-vmware-65u2"
}
}
```
----------------------------------------------------------------
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:
[email protected]