shwstppr commented on PR #8500:
URL: https://github.com/apache/cloudstack/pull/8500#issuecomment-1888888777

   Also tested cases similar to 
https://github.com/apache/cloudstack/pull/8500#issuecomment-1888852070 for 
VMware with advanced zone,
   ```
   (localcloud) 🐱 > list unmanagedinstances 
clusterid=b9c9e825-e9e6-46df-9ae2-eee2be7bf606 name=i-2-4-VM
   {
     "count": 1,
     "unmanagedinstance": [
       {
         "clusterid": "b9c9e825-e9e6-46df-9ae2-eee2be7bf606",
         "clustername": "p1-c1",
         "cpucorepersocket": 1,
         "cpunumber": 1,
         "cpuspeed": 0,
         "disk": [
           {
             "capacity": 52428800,
             "controller": "lsilogic",
             "controllerunit": 0,
             "datastorehost": "10.0.32.4",
             "datastorename": "90abe5740f1a3704871b49035569191c",
             "datastorepath": 
"/acs/primary/ref-trl-6178-k-Mr8-abhishek-kumar/ref-trl-6178-k-Mr8-abhishek-kumar-esxi-pri2",
             "datastoretype": "NFS",
             "id": "9-2000",
             "imagepath": "[90abe5740f1a3704871b49035569191c] 
i-2-4-VM/ROOT-4.vmdk",
             "label": "Hard disk 1",
             "position": 0
           }
         ],
         "hostid": "f69e931f-2e6d-4444-9303-e88414f1024c",
         "hostname": "10.0.35.191",
         "memory": 512,
         "name": "i-2-4-VM",
         "nic": [
           {
             "adaptertype": "E1000",
             "id": "Network adapter 1",
             "macaddress": "02:01:00:cc:00:02",
             "networkname": "cloud.guest.2442.200.1-vSwitch1",
             "vlanid": 2442
           }
         ],
         "osdisplayname": "Other Linux (64-bit)",
         "osid": "otherLinux64Guest",
         "powerstate": "PowerOn"
       }
     ]
   }
   (localcloud) 🐱 > import unmanagedinstance name=i-2-4-VM 
clusterid=b9c9e825-e9e6-46df-9ae2-eee2be7bf606 displayname=test1 
zoneid=1da7df4e-f93c-42e9-af4f-61617c8802e9 importsource=unmanaged 
hypervisor=vmware host= username= password= diskpath= temppath= 
serviceofferingid=446ac64f-9c96-4230-bfaf-fd29867a0892 
templateid=ab043179-fd9f-4fc8-907c-09e34b22f8b1 
nicnetworklist[0].nic=Network+adapter+1 
nicnetworklist[0].network=528ca782-7e2d-461d-addd-543d4dafab33
   {
     "virtualmachine": {
       "account": "admin",
       "affinitygroup": [],
       "cpunumber": 1,
       "cpuspeed": 500,
       "created": "2024-01-12T10:57:18+0000",
       "details": {
         "dataDiskController": "osdefault",
         "deployvm": "true",
         "nicAdapter": "E1000",
         "rootDiskController": "lsilogic"
       },
       "displayname": "test1",
       "displayvm": true,
       "domain": "ROOT",
       "domainid": "3ac7ec8b-b135-11ee-b2d7-1e007200043b",
       "guestosid": "3aee704b-b135-11ee-b2d7-1e007200043b",
       "haenable": false,
       "hasannotations": false,
       "hostcontrolstate": "Enabled",
       "hostid": "f69e931f-2e6d-4444-9303-e88414f1024c",
       "hostname": "10.0.35.191",
       "hypervisor": "VMware",
       "id": "3c38905d-70a4-48e1-bf16-487d749fc848",
       "instancename": "i-2-4-VM",
       "isdynamicallyscalable": false,
       "memory": 512,
       "name": "i-2-4-VM",
       "nic": [
         {
           "broadcasturi": "vlan://2442",
           "deviceid": "0",
           "extradhcpoption": [],
           "id": "c73aaf78-6c56-4ce2-8707-38b085dde9fb",
           "isdefault": true,
           "isolationuri": "vlan://2442",
           "macaddress": "02:01:00:cc:00:02",
           "networkid": "528ca782-7e2d-461d-addd-543d4dafab33",
           "networkname": "l2",
           "secondaryip": [],
           "traffictype": "Guest",
           "type": "L2"
         }
       ],
       "osdisplayname": "Other Linux (64-bit)",
       "ostypeid": "3aee704b-b135-11ee-b2d7-1e007200043b",
       "passwordenabled": false,
       "pooltype": "NetworkFilesystem",
       "receivedbytes": 0,
       "rootdeviceid": 0,
       "rootdevicetype": "ROOT",
       "securitygroup": [],
       "sentbytes": 0,
       "serviceofferingid": "446ac64f-9c96-4230-bfaf-fd29867a0892",
       "serviceofferingname": "Small Instance",
       "state": "Running",
       "tags": [],
       "templatedisplaytext": "macc-vmware",
       "templateid": "ab043179-fd9f-4fc8-907c-09e34b22f8b1",
       "templatename": "macc-vmware",
       "templatetype": "USER",
       "userid": "6cb20ab4-b135-11ee-b2d7-1e007200043b",
       "username": "admin",
       "zoneid": "1da7df4e-f93c-42e9-af4f-61617c8802e9",
       "zonename": "ref-trl-6178-k-Mr8-abhishek-kumar"
     }
   }
   (localcloud) 🐱 > list volumes 
virtualmachineid=3c38905d-70a4-48e1-bf16-487d749fc848 filter=id,name,type,size
   {
     "count": 1,
     "volume": [
       {
         "id": "fac34436-ffcf-47c4-812a-11a7ff490bb1",
         "name": "ROOT-7",
         "size": 52428800,
         "type": "ROOT"
       }
     ]
   }
   (localcloud) 🐱 > list unmanagedinstances 
clusterid=b9c9e825-e9e6-46df-9ae2-eee2be7bf606 name=i-2-3-VM
   {
     "count": 1,
     "unmanagedinstance": [
       {
         "clusterid": "b9c9e825-e9e6-46df-9ae2-eee2be7bf606",
         "clustername": "p1-c1",
         "cpucorepersocket": 1,
         "cpunumber": 1,
         "cpuspeed": 0,
         "disk": [
           {
             "capacity": 2147483648,
             "controller": "ide",
             "controllerunit": 0,
             "datastorehost": "10.0.32.4",
             "datastorename": "f442004cde5834e7bbca68b1c36d5987",
             "datastorepath": 
"/acs/primary/ref-trl-6178-k-Mr8-abhishek-kumar/ref-trl-6178-k-Mr8-abhishek-kumar-esxi-pri1",
             "datastoretype": "NFS",
             "id": "11-3001",
             "imagepath": "[f442004cde5834e7bbca68b1c36d5987] 
i-2-3-VM/ROOT-3.vmdk",
             "label": "Hard disk 1",
             "position": 1
           },
           {
             "capacity": 21474836480,
             "controller": "lsilogic",
             "controllerunit": 0,
             "datastorehost": "10.0.32.4",
             "datastorename": "90abe5740f1a3704871b49035569191c",
             "datastorepath": 
"/acs/primary/ref-trl-6178-k-Mr8-abhishek-kumar/ref-trl-6178-k-Mr8-abhishek-kumar-esxi-pri2",
             "datastoretype": "NFS",
             "id": "11-2000",
             "imagepath": "[90abe5740f1a3704871b49035569191c] 
i-2-3-VM/b6cf9b56187a48419d9efdf1ba6fb5e6.vmdk",
             "label": "Hard disk 2",
             "position": 0
           }
         ],
         "hostid": "f69e931f-2e6d-4444-9303-e88414f1024c",
         "hostname": "10.0.35.191",
         "memory": 512,
         "name": "i-2-3-VM",
         "nic": [
           {
             "adaptertype": "E1000",
             "id": "Network adapter 1",
             "macaddress": "02:01:00:cc:00:01",
             "networkname": "cloud.guest.2442.200.1-vSwitch1",
             "vlanid": 2442
           }
         ],
         "osdisplayname": "CentOS 4/5 (64-bit)",
         "osid": "centos64Guest",
         "powerstate": "PowerOn"
       }
     ]
   }
   (localcloud) 🐱 > import unmanagedinstance name=i-2-3-VM 
clusterid=b9c9e825-e9e6-46df-9ae2-eee2be7bf606 displayname=test2 
zoneid=1da7df4e-f93c-42e9-af4f-61617c8802e9 importsource=unmanaged 
hypervisor=vmware host= username= password= diskpath= temppath= 
serviceofferingid=446ac64f-9c96-4230-bfaf-fd29867a0892 
templateid=3ad1533d-b135-11ee-b2d7-1e007200043b 
datadiskofferinglist[0].disk=11-2000 
datadiskofferinglist[0].diskOffering=e0982c6d-7c7d-40fc-9a2a-8df0b29cc41b 
nicnetworklist[0].nic=Network+adapter+1 
nicnetworklist[0].network=528ca782-7e2d-461d-addd-543d4dafab33
   {
     "virtualmachine": {
       "account": "admin",
       "affinitygroup": [],
       "cpunumber": 1,
       "cpuspeed": 500,
       "created": "2024-01-12T11:00:20+0000",
       "details": {
         "dataDiskController": "lsilogic",
         "deployvm": "true",
         "nicAdapter": "E1000",
         "rootDiskController": "ide"
       },
       "diskofferingid": "e0982c6d-7c7d-40fc-9a2a-8df0b29cc41b",
       "diskofferingname": "Custom",
       "displayname": "test2",
       "displayvm": true,
       "domain": "ROOT",
       "domainid": "3ac7ec8b-b135-11ee-b2d7-1e007200043b",
       "guestosid": "3ad806ae-b135-11ee-b2d7-1e007200043b",
       "haenable": false,
       "hasannotations": false,
       "hostcontrolstate": "Enabled",
       "hostid": "f69e931f-2e6d-4444-9303-e88414f1024c",
       "hostname": "10.0.35.191",
       "hypervisor": "VMware",
       "id": "e1ef8ef2-c0a7-4200-a21a-8c4b35d7c5be",
       "instancename": "i-2-3-VM",
       "isdynamicallyscalable": false,
       "memory": 512,
       "name": "i-2-3-VM",
       "nic": [
         {
           "broadcasturi": "vlan://2442",
           "deviceid": "0",
           "extradhcpoption": [],
           "id": "151087b8-9f3d-4908-9e2f-a88d753e5b0d",
           "isdefault": true,
           "isolationuri": "vlan://2442",
           "macaddress": "02:01:00:cc:00:01",
           "networkid": "528ca782-7e2d-461d-addd-543d4dafab33",
           "networkname": "l2",
           "secondaryip": [],
           "traffictype": "Guest",
           "type": "L2"
         }
       ],
       "osdisplayname": "CentOS 5.3 (64-bit)",
       "ostypeid": "3ad806ae-b135-11ee-b2d7-1e007200043b",
       "passwordenabled": false,
       "pooltype": "NetworkFilesystem",
       "receivedbytes": 0,
       "rootdeviceid": 0,
       "rootdevicetype": "ROOT",
       "securitygroup": [],
       "sentbytes": 0,
       "serviceofferingid": "446ac64f-9c96-4230-bfaf-fd29867a0892",
       "serviceofferingname": "Small Instance",
       "state": "Running",
       "tags": [],
       "templatedisplaytext": "CentOS 5.3(64-bit) no GUI (vSphere)",
       "templateid": "3ad1533d-b135-11ee-b2d7-1e007200043b",
       "templatename": "CentOS 5.3(64-bit) no GUI (vSphere)",
       "templatetype": "BUILTIN",
       "userid": "6cb20ab4-b135-11ee-b2d7-1e007200043b",
       "username": "admin",
       "zoneid": "1da7df4e-f93c-42e9-af4f-61617c8802e9",
       "zonename": "ref-trl-6178-k-Mr8-abhishek-kumar"
     }
   }
   (localcloud) 🐱 > list volumes 
virtualmachineid=e1ef8ef2-c0a7-4200-a21a-8c4b35d7c5be filter=id,name,type,size
   {
     "count": 2,
     "volume": [
       {
         "id": "eb05063d-661c-4824-8a24-a87c17778553",
         "name": "ROOT-9",
         "size": 2147483648,
         "type": "ROOT"
       },
       {
         "id": "b5aa42c9-3935-4a17-b450-318bd89e5a8d",
         "name": "DATA-9-11-2000",
         "size": 21474836480,
         "type": "DATADISK"
       }
     ]
   }
   ```


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to