cloudstack/ui/scripts/ui-custom
Abhishek Kumar 2020bfb6a3 server: allows compute offering with or without constraints (#3245)
Problem: Custom compute offering does not allow setting min and max values for CPU and VRAM for custom VMs.

Root Cause: Custom compute offerings cannot be created with a given range of CPU number and memory instead it allows only fixed values.

Solution: createServiceOffering API has been modified to allow setting a defined range for CPU number and memory. Also, UI form for compute offering creation is provided with a new field named 'compute offering type’ with values - Fixed, Custom Constrained, Custom Constrained. It will allow the creation of compute offerings either with a fixed CPU speed and memory for fixed compute offering, or with a range of CPU number and memory for custom constrained compute offering or without predefined CPU number, CPU speed and memory for custom unconstrained compute offering.

To allow the user to set CPU number, CPU speed and memory during VM deployment, UI form for VM deployment has been modified to provide controls to change these values. These controls are depicted in screenshots below for custom constrained and custom unconstrained compute offering types.

Sample API calls using cmk to create a constrained service offering and deploying a VM using it,

create serviceoffering name=Constrained displaytext=Constrained customized=true mincpunumber=2 maxcpunumber=4 cpuspeed=400 minmemory=256 maxmemory=1024

deploy virtualmachine displayname=ConstrainedVM serviceofferingid=60f3e500-6559-40b2-9a61-2192891c2bd6 templateid=8e0f4a3e-601b-11e9-9df4-a0afbd4a2d60 zoneid=9612a0c6-ed28-4fae-9a48-6eb207af29e3 details[0].cpuNumber=3 details[0].memory=800

Signed-off-by: Abhishek Kumar <abhishek.kumar@shapeblue.com>
2019-05-23 11:47:53 +05:30
..
accountsWizard.js Update jquery and related libraries (#3069) 2019-01-16 14:22:22 -02:00
affinity.js Fix set affinity for user overlay problem (Fixes #2986) (#2987) 2018-11-01 10:30:53 -03:00
autoscaler.js CLOUDSTACK-9229: Autoscale policy creation failing in VPC due to zoneid missing in createAutoScaleVmProfile 2016-01-13 15:47:06 +05:30
copyTemplate.js CLOUDSTACK-9700: Allow user to Register/Copy templates to multiple zones at the same time 2017-05-15 14:07:22 +05:30
dashboard.js Format JS 2013-07-18 12:34:20 -04:00
enableStaticNAT.js Update jquery and related libraries (#3069) 2019-01-16 14:22:22 -02:00
granularSettings.js CLOUDSTACK-9457: Allow retrieval and modification of VM and template details via API and UI 2016-12-27 23:33:50 -03:00
healthCheck.js CLOUDSTACK-9237: Create LB Healthcheck issues - button alignment and error message goes outside the window 2016-01-14 15:23:01 +05:30
installWizard.js General cleanup, source formatting, remove whitespace 2013-08-02 14:20:47 +05:30
instanceWizard.js server: allows compute offering with or without constraints (#3245) 2019-05-23 11:47:53 +05:30
ipRules.js Format JS 2013-07-18 12:34:20 -04:00
login.js CLOUDSTACK-8701: Allow SAML users to switch accounts 2015-08-14 11:58:44 +05:30
metricsView.js ui: improve metrics view implementation 2016-01-18 12:50:57 +01:00
migrate.js Fix "Migrate instance to another host" popup modal (#2803) 2018-08-28 22:14:03 -03:00
physicalResources.js Update jquery and related libraries (#3069) 2019-01-16 14:22:22 -02:00
pluginListing.js Update jquery and related libraries (#3069) 2019-01-16 14:22:22 -02:00
projectSelect.js populate project select when clicked on to display latest project options (#2810) 2018-08-20 10:03:51 +02:00
projects.js Update jquery and related libraries (#3069) 2019-01-16 14:22:22 -02:00
recurringSnapshots.js Update jquery and related libraries (#3069) 2019-01-16 14:22:22 -02:00
regions.js Update jquery and related libraries (#3069) 2019-01-16 14:22:22 -02:00
saml.js CLOUDSTACK-10101: Present the full domain name when listing user's domains in SAML2 plugin (#2280) 2017-10-10 10:12:03 +05:30
securityRules.js Format JS 2013-07-18 12:34:20 -04:00
uploadVolume.js Update jquery and related libraries (#3069) 2019-01-16 14:22:22 -02:00
vpc.js Update jquery and related libraries (#3069) 2019-01-16 14:22:22 -02:00
zoneChart.js CLOUDSTACK-9997: Add cpu cores information in CapacityResponse 2017-07-22 11:26:37 +02:00
zoneFilter.js Format JS 2013-07-18 12:34:20 -04:00
zoneWizard.js Update jquery and related libraries (#3069) 2019-01-16 14:22:22 -02:00