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/09/07 10:51:09 UTC

[GitHub] [cloudstack] kricud opened a new issue #5412: Cannot select constrained or unconstrained offering on powered on VM

kricud opened a new issue #5412:
URL: https://github.com/apache/cloudstack/issues/5412


   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   UI
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main branch.
   -->
   
   ~~~
   4.15.1
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
   -->
   
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   VMware
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   In new and legacy UI Power on VM in Vmware environment and try to scale it .
   CPU and Memory hot add is enabled.
   ~~~
   ![Screenshot 2021-09-07 134933](https://user-images.githubusercontent.com/30048481/132332643-200b6ed3-2414-4586-8c10-fd5c8c4fe751.png)
   
   ![Screenshot 2021-09-07 134814](https://user-images.githubusercontent.com/30048481/132332622-497e8800-41e2-4c4f-ad93-875335d32baa.png)
   
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   Scaling can be done with constrained and unconstrained offerings.
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   Scaling cant be done with constrained and unconstrained offerings.
   ~~~
   


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] shwstppr commented on issue #5412: Cannot select constrained or unconstrained offering on powered on VM

Posted by GitBox <gi...@apache.org>.
shwstppr commented on issue #5412:
URL: https://github.com/apache/cloudstack/issues/5412#issuecomment-914254131


   @kricud this is not a UI issue alone, `listServiceOfferings` when called for a running virtualmachine only returns fixed offerings with cpu, memory greater than the VM's current offering.
   
   ```
   (localcloud) SBCM5> > list serviceofferings filter=id,name,iscustomized,dynamicscalingenabled
   {
     "count": 7,
     "serviceoffering": [
       {
         "dynamicscalingenabled": true,
         "id": "0820dfc7-d843-4120-9df6-ee4e216083f5",
         "iscustomized": false,
         "name": "Small Instance"
       },
       {
         "dynamicscalingenabled": true,
         "id": "b5f4f2a9-8d15-4343-b47b-ca2359a2d9c1",
         "iscustomized": false,
         "name": "Medium Instance"
       },
       {
         "dynamicscalingenabled": true,
         "id": "cd1c9df6-aa02-465c-b967-ddd608f43803",
         "iscustomized": false,
         "name": "ds-offering"
       },
       {
         "dynamicscalingenabled": false,
         "id": "987c045c-ad22-4ccc-b067-7760143952cd",
         "iscustomized": true,
         "name": "CustomConstrained"
       },
       {
         "dynamicscalingenabled": false,
         "id": "86f4ee23-2dbf-4ef5-813a-87275da08374",
         "iscustomized": true,
         "name": "CustomUnconstrained"
       },
       {
         "dynamicscalingenabled": true,
         "id": "2427e097-eee7-4d32-a350-43c613744270",
         "iscustomized": true,
         "name": "CustomConstrained-DS"
       },
       {
         "dynamicscalingenabled": true,
         "id": "03498e66-df42-443f-b8ce-21cf4ebdda2c",
         "iscustomized": true,
         "name": "CustomUnconstrained-DS"
       }
     ]
   }
   (localcloud) SBCM5> > list serviceofferings filter=id,name,iscustomized,dynamicscalingenabled virtualmachineid=d66b0281-116d-4adc-a854-2616907bed00 
   {
     "count": 1,
     "serviceoffering": [
       {
         "dynamicscalingenabled": true,
         "id": "b5f4f2a9-8d15-4343-b47b-ca2359a2d9c1",
         "iscustomized": false,
         "name": "Medium Instance"
       }
     ]
   }
   (localcloud) SBCM5> > list virtualmachines id=d66b0281-116d-4adc-a854-2616907bed00 filter=id,name,state
   {
     "count": 1,
     "virtualmachine": [
       {
         "id": "d66b0281-116d-4adc-a854-2616907bed00",
         "name": "t-ds",
         "state": "Running"
       }
     ]
   }
   (localcloud) SBCM5> > stop virtualmachine id=d66b0281-116d-4adc-a854-2616907bed00 
   {
     "virtualmachine": {
       "account": "admin",
       "affinitygroup": [],
       "cpunumber": 1,
       "cpuspeed": 1000,
       "cpuused": "0%",
       "created": "2021-09-07T12:01:03+0000",
       "details": {
         "Message.ReservedCapacityFreed.Flag": "false",
         "cpuOvercommitRatio": "2.0",
         "dataDiskController": "osdefault",
         "memoryOvercommitRatio": "1.0",
         "rootDiskController": "osdefault"
       },
       "diskioread": 16,
       "diskiowrite": 0,
       "diskkbsread": 320,
       "diskkbswrite": 5,
       "displayname": "t-ds",
       "displayvm": true,
       "domain": "ROOT",
       "domainid": "09046ad8-0bda-11ec-a29c-1e0094000118",
       "guestosid": "0919bbe9-0bda-11ec-a29c-1e0094000118",
       "haenable": false,
       "hypervisor": "VMware",
       "id": "d66b0281-116d-4adc-a854-2616907bed00",
       "instancename": "i-2-6-VM",
       "isdynamicallyscalable": true,
       "jobid": "ab2f3b9a-60e1-44e8-b23a-d82b1df1b3bd",
       "jobstatus": 0,
       "lastupdated": "2021-09-07T12:08:38+0000",
       "memory": 512,
       "memoryintfreekbs": 225280,
       "memorykbs": 524288,
       "memorytargetkbs": 524288,
       "name": "t-ds",
       "networkkbsread": 0,
       "networkkbswrite": 0,
       "nic": [
         {
           "deviceid": "0",
           "extradhcpoption": [],
           "id": "5316ea23-5a8f-4d18-bbe9-fd1d6eba5969",
           "isdefault": true,
           "macaddress": "02:00:04:6c:00:02",
           "networkid": "92345601-9346-4416-b359-1554dd184b9d",
           "networkname": "l2",
           "secondaryip": [],
           "traffictype": "Guest",
           "type": "L2"
         }
       ],
       "osdisplayname": "Other Linux (64-bit)",
       "ostypeid": "0919bbe9-0bda-11ec-a29c-1e0094000118",
       "passwordenabled": false,
       "pooltype": "NetworkFilesystem",
       "receivedbytes": 0,
       "rootdeviceid": 0,
       "rootdevicetype": "ROOT",
       "securitygroup": [],
       "sentbytes": 0,
       "serviceofferingid": "cd1c9df6-aa02-465c-b967-ddd608f43803",
       "serviceofferingname": "ds-offering",
       "state": "Stopped",
       "tags": [],
       "templatedisplaytext": "ma-ds",
       "templateid": "4d7add26-6ffd-40b6-bc1f-cd2ba22fea0f",
       "templatename": "ma-ds",
       "userid": "2027b571-0bda-11ec-a29c-1e0094000118",
       "username": "admin",
       "zoneid": "1991b455-cebf-4507-88c4-8c8a467971c3",
       "zonename": "pr4774-t1933-vmware-67u3"
     }
   }
   (localcloud) SBCM5> > list serviceofferings filter=id,name,iscustomized,dynamicscalingenabled virtualmachineid=d66b0281-116d-4adc-a854-2616907bed00 
   {
     "count": 6,
     "serviceoffering": [
       {
         "dynamicscalingenabled": true,
         "id": "0820dfc7-d843-4120-9df6-ee4e216083f5",
         "iscustomized": false,
         "name": "Small Instance"
       },
       {
         "dynamicscalingenabled": true,
         "id": "b5f4f2a9-8d15-4343-b47b-ca2359a2d9c1",
         "iscustomized": false,
         "name": "Medium Instance"
       },
       {
         "dynamicscalingenabled": false,
         "id": "987c045c-ad22-4ccc-b067-7760143952cd",
         "iscustomized": true,
         "name": "CustomConstrained"
       },
       {
         "dynamicscalingenabled": false,
         "id": "86f4ee23-2dbf-4ef5-813a-87275da08374",
         "iscustomized": true,
         "name": "CustomUnconstrained"
       },
       {
         "dynamicscalingenabled": true,
         "id": "2427e097-eee7-4d32-a350-43c613744270",
         "iscustomized": true,
         "name": "CustomConstrained-DS"
       },
       {
         "dynamicscalingenabled": true,
         "id": "03498e66-df42-443f-b8ce-21cf4ebdda2c",
         "iscustomized": true,
         "name": "CustomUnconstrained-DS"
       }
     ]
   }
   ```
   
   However, you may still scale a running VM to a custom offering using `scaleVirtualMachine` API,
   ```
   (localcloud) SBCM5> > scale virtualmachine id=d66b0281-116d-4adc-a854-2616907bed00 serviceofferingid=2427e097-eee7-4d32-a350-43c613744270 details[0].cpuNumber=1 details[0].memory=640
   {
     "virtualmachine": {
       "account": "admin",
       "affinitygroup": [],
       "cpunumber": 1,
       "cpuspeed": 1000,
       "cpuused": "0%",
       "created": "2021-09-07T12:01:03+0000",
       "details": {
         "Message.ReservedCapacityFreed.Flag": "false",
         "cpuNumber": "1",
         "cpuOvercommitRatio": "2.0",
         "cpuSpeed": "1000",
         "dataDiskController": "osdefault",
         "memory": "640",
         "memoryOvercommitRatio": "1.0",
         "rootDiskController": "osdefault"
       },
       "diskioread": 16,
       "diskiowrite": 0,
       "diskkbsread": 320,
       "diskkbswrite": 5,
       "displayname": "t-ds",
       "displayvm": true,
       "domain": "ROOT",
       "domainid": "09046ad8-0bda-11ec-a29c-1e0094000118",
       "guestosid": "0919bbe9-0bda-11ec-a29c-1e0094000118",
       "haenable": false,
       "hypervisor": "VMware",
       "id": "d66b0281-116d-4adc-a854-2616907bed00",
       "instancename": "i-2-6-VM",
       "isdynamicallyscalable": true,
       "lastupdated": "2021-09-07T12:08:38+0000",
       "memory": 640,
       "memoryintfreekbs": 225280,
       "memorykbs": 524288,
       "memorytargetkbs": 524288,
       "name": "t-ds",
       "networkkbsread": 0,
       "networkkbswrite": 0,
       "nic": [
         {
           "deviceid": "0",
           "extradhcpoption": [],
           "id": "5316ea23-5a8f-4d18-bbe9-fd1d6eba5969",
           "isdefault": true,
           "macaddress": "02:00:04:6c:00:02",
           "networkid": "92345601-9346-4416-b359-1554dd184b9d",
           "networkname": "l2",
           "secondaryip": [],
           "traffictype": "Guest",
           "type": "L2"
         }
       ],
       "osdisplayname": "Other Linux (64-bit)",
       "ostypeid": "0919bbe9-0bda-11ec-a29c-1e0094000118",
       "passwordenabled": false,
       "pooltype": "NetworkFilesystem",
       "receivedbytes": 0,
       "rootdeviceid": 0,
       "rootdevicetype": "ROOT",
       "securitygroup": [],
       "sentbytes": 0,
       "serviceofferingid": "2427e097-eee7-4d32-a350-43c613744270",
       "serviceofferingname": "CustomConstrained-DS",
       "state": "Stopped",
       "tags": [],
       "templatedisplaytext": "ma-ds",
       "templateid": "4d7add26-6ffd-40b6-bc1f-cd2ba22fea0f",
       "templatename": "ma-ds",
       "userid": "2027b571-0bda-11ec-a29c-1e0094000118",
       "username": "admin",
       "zoneid": "1991b455-cebf-4507-88c4-8c8a467971c3",
       "zonename": "pr4774-t1933-vmware-67u3"
     }
   }
   ```


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] shwstppr commented on issue #5412: Cannot select constrained or unconstrained offering on powered on VM

Posted by GitBox <gi...@apache.org>.
shwstppr commented on issue #5412:
URL: https://github.com/apache/cloudstack/issues/5412#issuecomment-914259509


   Ignore the scale API output in my previous response. Forgot I've already stopped the VM.
   Old UI had same behaviour as well,
   ![Screenshot from 2021-09-07 17-53-33](https://user-images.githubusercontent.com/153340/132343990-e3cffbb5-c7f9-4bda-98d6-7a7240945bd5.png)
   


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] kricud commented on issue #5412: Cannot select constrained or unconstrained offering on powered on VM

Posted by GitBox <gi...@apache.org>.
kricud commented on issue #5412:
URL: https://github.com/apache/cloudstack/issues/5412#issuecomment-914289441


   In ACS version 4.11.3 custom commute is/was working as option for turned on VM.
   If you entered values lower than existing configuration error was thrown.
   
   As you can only increase not decrease cpu and ram. 
   


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] sureshanaparti closed issue #5412: Cannot select constrained or unconstrained offering on powered on VM

Posted by GitBox <gi...@apache.org>.
sureshanaparti closed issue #5412:
URL: https://github.com/apache/cloudstack/issues/5412


   


-- 
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: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org