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


   @ustcweizhou maybe it due to Simulator env but while assigning a new user, 
VM lost one NIC while IP for default network remained the same. Is this 
expected behaviour?
   ```
   > list virtualmachine id=aa71e2fb-7339-485f-877a-3ac61e4b81de 
   {
     "virtualmachine": {
       "account": "admin",
       "affinitygroup": [],
       "cpunumber": 1,
       "cpuspeed": 500,
       "created": "2021-01-26T11:24:28+0530",
       "details": {
         "Message.ReservedCapacityFreed.Flag": "false"
       },
       "displayname": "t2",
       "displayvm": true,
       "domain": "ROOT",
       "domainid": "284bc227-5f98-11eb-b2a8-a0afbd4a2d60",
       "guestosid": "283ee5bb-5f98-11eb-b2a8-a0afbd4a2d60",
       "haenable": false,
       "hypervisor": "Simulator",
       "id": "aa71e2fb-7339-485f-877a-3ac61e4b81de",
       "instancename": "i-2-6-QA",
       "isdynamicallyscalable": false,
       "jobid": "32b17768-41c6-485e-b4b8-23cb1c6cf862",
       "jobstatus": 0,
       "memory": 512,
       "name": "t2",
       "nic": [
         {
           "broadcasturi": "vlan://4321",
           "extradhcpoption": [],
           "gateway": "10.9.8.1",
           "id": "22c803ef-e260-496e-901d-af853d51079e",
           "ipaddress": "10.9.8.19",
           "isdefault": true,
           "isolationuri": "vlan://4321",
           "macaddress": "1e:00:da:00:01:ab",
           "netmask": "255.255.255.0",
           "networkid": "62694527-4073-4e8e-840f-1688a4652cd0",
           "networkname": "net-b",
           "secondaryip": [],
           "traffictype": "Guest",
           "type": "Shared"
         },
         {
           "broadcasturi": "vlan://1234",
           "extradhcpoption": [],
           "gateway": "10.9.9.1",
           "id": "55cb9940-14c7-46df-a83b-72419bb52ce4",
           "ipaddress": "10.9.9.24",
           "isdefault": false,
           "isolationuri": "vlan://1234",
           "macaddress": "1e:00:0d:00:01:9c",
           "netmask": "255.255.255.0",
           "networkid": "7e686848-e92a-449a-b1e3-cb0e5116ea7f",
           "networkname": "net-a",
           "secondaryip": [],
           "traffictype": "Guest",
           "type": "Shared"
         }
       ],
       "osdisplayname": "CentOS 5.6 (64-bit)",
       "ostypeid": "283ee5bb-5f98-11eb-b2a8-a0afbd4a2d60",
       "passwordenabled": false,
       "rootdeviceid": 0,
       "rootdevicetype": "ROOT",
       "securitygroup": [],
       "serviceofferingid": "a0194498-2a06-4110-9db1-99020ba9a326",
       "serviceofferingname": "Small Instance",
       "state": "Stopped",
       "tags": [],
       "templatedisplaytext": "CentOS 5.6 (64-bit) no GUI (Simulator)",
       "templateid": "68a1f0ce-5f98-11eb-b2a8-a0afbd4a2d60",
       "templatename": "CentOS 5.6 (64-bit) no GUI (Simulator)",
       "userid": "284f2b10-5f98-11eb-b2a8-a0afbd4a2d60",
       "username": "admin",
       "zoneid": "390f525e-6c46-432d-8552-6519980f34c3",
       "zonename": "Sandbox-simulator"
     }
   }
   ```
   After assigning new user,
   ```
   > assign virtualmachine 
virtualmachineid=aa71e2fb-7339-485f-877a-3ac61e4b81de account=admin1 
domainid=284bc227-5f98-11eb-b2a8-a0afbd4a2d60 
   {
     "virtualmachine": {
       "account": "admin1",
       "affinitygroup": [],
       "cpunumber": 1,
       "cpuspeed": 500,
       "created": "2021-01-26T11:24:28+0530",
       "details": {
         "Message.ReservedCapacityFreed.Flag": "false"
       },
       "displayname": "t2",
       "displayvm": true,
       "domain": "ROOT",
       "domainid": "284bc227-5f98-11eb-b2a8-a0afbd4a2d60",
       "guestosid": "283ee5bb-5f98-11eb-b2a8-a0afbd4a2d60",
       "haenable": false,
       "hypervisor": "Simulator",
       "id": "aa71e2fb-7339-485f-877a-3ac61e4b81de",
       "instancename": "i-2-6-QA",
       "isdynamicallyscalable": false,
       "memory": 512,
       "name": "t2",
       "nic": [
         {
           "broadcasturi": "vlan://4321",
           "extradhcpoption": [],
           "gateway": "10.9.8.1",
           "id": "4c1ae559-b16d-4535-a2aa-95095a6904aa",
           "ipaddress": "10.9.8.19",
           "isdefault": true,
           "isolationuri": "vlan://4321",
           "macaddress": "1e:00:ea:00:01:ab",
           "netmask": "255.255.255.0",
           "networkid": "62694527-4073-4e8e-840f-1688a4652cd0",
           "networkname": "net-b",
           "secondaryip": [],
           "traffictype": "Guest",
           "type": "Shared"
         }
       ],
       "osdisplayname": "CentOS 5.6 (64-bit)",
       "ostypeid": "283ee5bb-5f98-11eb-b2a8-a0afbd4a2d60",
       "passwordenabled": false,
       "rootdeviceid": 0,
       "rootdevicetype": "ROOT",
       "securitygroup": [],
       "serviceofferingid": "a0194498-2a06-4110-9db1-99020ba9a326",
       "serviceofferingname": "Small Instance",
       "state": "Stopped",
       "tags": [],
       "templatedisplaytext": "CentOS 5.6 (64-bit) no GUI (Simulator)",
       "templateid": "68a1f0ce-5f98-11eb-b2a8-a0afbd4a2d60",
       "templatename": "CentOS 5.6 (64-bit) no GUI (Simulator)",
       "userid": "284f2b10-5f98-11eb-b2a8-a0afbd4a2d60",
       "username": "admin",
       "zoneid": "390f525e-6c46-432d-8552-6519980f34c3",
       "zonename": "Sandbox-simulator"
     }
   }
   ```
   
   


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


Reply via email to