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/02/01 08:01:59 UTC

[GitHub] [cloudstack] shwstppr commented on pull request #4622: server: add possibility to scale vm to current custom offerings on UI

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


   Tested, works well as it lists same custom offering for a stopped VM.
   Before changes VM's offerring (ID=55008aa9-fc1a-4c8d-a964-150439b5f7b1) is missing in list call,
   ```
   (localcloud) 🐱 > list virtualmachines id=e8fb9052-6267-47ba-992b-b6e9a3be1cfe filter=id,name,serviceofferingid,serviceofferingname
   {
     "count": 1,
     "virtualmachine": [
       {
         "id": "e8fb9052-6267-47ba-992b-b6e9a3be1cfe",
         "name": "t2",
         "serviceofferingid": "55008aa9-fc1a-4c8d-a964-150439b5f7b1",
         "serviceofferingname": "custom2"
       }
     ]
   }
   (localcloud) 🐱 > list serviceofferings id=55008aa9-fc1a-4c8d-a964-150439b5f7b1 
   {
     "count": 1,
     "serviceoffering": [
       {
         "cacheMode": "none",
         "created": "2021-02-01T12:43:44+0530",
         "defaultuse": false,
         "displaytext": "custom2",
         "id": "55008aa9-fc1a-4c8d-a964-150439b5f7b1",
         "iscustomized": true,
         "issystem": false,
         "isvolatile": false,
         "limitcpuuse": false,
         "name": "custom2",
         "offerha": false,
         "provisioningtype": "thin",
         "storagetype": "shared"
       }
     ]
   }
   (localcloud) 🐱 > list serviceofferings virtualmachineid=e8fb9052-6267-47ba-992b-b6e9a3be1cfe filter=id,name
   {
     "count": 3,
     "serviceoffering": [
       {
         "id": "e24e1d1d-b100-4a11-af49-938f6b9a1c8b",
         "name": "Small Instance"
       },
       {
         "id": "5ed52f2b-4732-4073-b9cc-3a9fa04703c7",
         "name": "Medium Instance"
       },
       {
         "id": "d4cf0042-6bd4-42a8-9768-2706f97bd61c",
         "name": "custom1"
       }
     ]
   }
   ```
   After changes,
   ```
   (localcloud) 🐱 > list virtualmachines id=e8fb9052-6267-47ba-992b-b6e9a3be1cfe filter=id,name,serviceofferingid,serviceofferingname
   {
     "count": 1,
     "virtualmachine": [
       {
         "id": "e8fb9052-6267-47ba-992b-b6e9a3be1cfe",
         "name": "t2",
         "serviceofferingid": "55008aa9-fc1a-4c8d-a964-150439b5f7b1",
         "serviceofferingname": "custom2"
       }
     ]
   }
   (localcloud) 🐱 > list serviceofferings id=55008aa9-fc1a-4c8d-a964-150439b5f7b1 
   {
     "count": 1,
     "serviceoffering": [
       {
         "cacheMode": "none",
         "created": "2021-02-01T12:43:44+0530",
         "defaultuse": false,
         "displaytext": "custom2",
         "id": "55008aa9-fc1a-4c8d-a964-150439b5f7b1",
         "iscustomized": true,
         "issystem": false,
         "isvolatile": false,
         "limitcpuuse": false,
         "name": "custom2",
         "offerha": false,
         "provisioningtype": "thin",
         "storagetype": "shared"
       }
     ]
   }
   (localcloud) 🐱 > list serviceofferings virtualmachineid=e8fb9052-6267-47ba-992b-b6e9a3be1cfe filter=id,name
   {
     "count": 4,
     "serviceoffering": [
       {
         "id": "e24e1d1d-b100-4a11-af49-938f6b9a1c8b",
         "name": "Small Instance"
       },
       {
         "id": "5ed52f2b-4732-4073-b9cc-3a9fa04703c7",
         "name": "Medium Instance"
       },
       {
         "id": "d4cf0042-6bd4-42a8-9768-2706f97bd61c",
         "name": "custom1"
       },
       {
         "id": "55008aa9-fc1a-4c8d-a964-150439b5f7b1",
         "name": "custom2"
       }
     ]
   }
   ```
   


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