cloudstack/ui/scripts
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
..
ui Improvements after jquery update (#3183) 2019-04-25 16:09:43 -03:00
ui-custom server: allows compute offering with or without constraints (#3245) 2019-05-23 11:47:53 +05:30
accounts.js ui: show complete domain for accounts (#2994) (#3256) 2019-04-10 17:18:01 +05:30
accountsWizard.js Remove 'todb' in favor of 'encodeURIComponent'. (#2572) 2018-04-16 13:44:27 +02:00
affinity.js Removed leading tabs from ui/scripts/*.js 2015-08-07 11:58:13 +02:00
autoscaler.js [migrateVolume API method] Filter disk offerings based on storage pool selected (#2612) 2018-05-04 08:04:10 -03:00
cloud.core.callbacks.js CLOUDSTACK-9408 for the move away from download.cloud.com 2017-04-20 11:35:36 +05:30
cloudStack.js Update jquery and related libraries (#3069) 2019-01-16 14:22:22 -02:00
configuration.js server: allows compute offering with or without constraints (#3245) 2019-05-23 11:47:53 +05:30
dashboard.js CLOUDSTACK-10059: Dashboard ignores resource value that is less than 1% 2017-08-31 16:11:58 +02:00
docs.js server: allows compute offering with or without constraints (#3245) 2019-05-23 11:47:53 +05:30
domains.js Fix delete domain button in the UI to update only after job finishes (#2905) 2018-11-11 18:41:37 -02:00
events.js ui: add user information on the Event-View in the UI (#2826) 2018-08-30 14:33:38 +05:30
globalSettings.js Remove 'todb' in favor of 'encodeURIComponent'. (#2572) 2018-04-16 13:44:27 +02:00
installWizard.js Remove 'md5Hashed' variable from Javascript. (#2555) 2018-04-13 10:43:52 +02:00
instanceWizard.js server: allows compute offering with or without constraints (#3245) 2019-05-23 11:47:53 +05:30
instances.js ui: use executable template filter for users (#3214) 2019-03-29 12:13:26 +05:30
lbCertificatePolicy.js [CLOUDSTACK-9261] Upgrate jQuery-UI to 1.11 (JQuery UI 1.8.4 prone to XSS) (#2524) 2018-07-16 13:18:55 -03:00
lbStickyPolicy.js CLOUDSTACK-8744 Add missing localization (l10n) for several parts in the UI 2015-08-18 11:16:14 +01:00
metrics.js CLOUDSTACK-10129: UX improvements and event timeline 2017-12-23 09:22:44 +05:30
network.js RIP Nuage Cloudstack Plugin (#3146) 2019-05-14 10:58:24 +02:00
plugins.js ui: insert plugin css files before custom.css file (#2784) 2018-08-08 12:07:56 +05:30
projects.js Add to project detail page: cpu,memory,template,storage and VMs count 2016-08-08 20:04:55 -04:00
regions.js CLOUDSTACK-8672 : NCC Integration with CloudStack. 2017-07-20 12:42:43 +05:30
roles.js Improvements after jquery update (#3183) 2019-04-25 16:09:43 -03:00
sharedFunctions.js Merge remote-tracking branch 'origin/4.11' into 4.12 2019-03-25 13:24:46 +05:30
storage.js server: fix for vm snapshot search (#3208) (#3257) 2019-04-08 14:18:00 +05:30
system.js RIP Nuage Cloudstack Plugin (#3146) 2019-05-14 10:58:24 +02:00
templates.js ui: don't ignore project when listing templates (#3233) 2019-04-09 16:40:38 +05:30
vpc.js Improvements after jquery update (#3183) 2019-04-25 16:09:43 -03:00
zoneWizard.js Improvements after jquery update (#3183) 2019-04-25 16:09:43 -03:00