cloudstack/ui/scripts
Remi Bergsma 8361595946 Merge pull request #1334 from nitin-maharana/CloudStack-Nitin17_4.7
CLOUDSTACK-9229: Autoscale policy creation failing in VPC due to zone id missing in createAutoScaleVmProfileAutoscale policy creation is failing on VPC while creating autoscalevmprofile since zoneid parameter is missing.

Steps to Reproduce:
================
1. Create VPC Network offering with NS as service provider for LB
2. Create VPC using offering which has NetScaler as LB provider
3. Add a tier using the network offering created in Step1
4. Launch a VM
5. Acquire a public IP
6. Create an auto scale policy with all required parameters on an LB rule

Result:
======
Fails during autoscalevmprofile creation with the following error:

GET  command=createAutoScaleVmProfile&response=json&serviceofferingid=05ac866f-604c-43e2-a48b-47e83ef7c4f1&templateid=3cdd83c4-ad27-11e5-9eaf-42407779c24b&destroyvmgraceperiod=30&counterparam%5B0%5D.name=snmpcommunity&counterparam%5B0%5D.value=public&counterparam%5B1%5D.name=snmpport&counterparam%5B1%5D.value=161&_=1451458073663
DEBUG [o.a.c.a.BaseCmd] (catalina-exec-10:ctx-58bcf6cf ctx-f5123e30) (logid:ae6742c8) Ignoring paremeter fordisplay as the caller is not authorized to pass it in
INFO  [c.c.a.ApiServer] (catalina-exec-10:ctx-58bcf6cf ctx-f5123e30) (logid:ae6742c8) Unable to execute API command autoscalevmprofile due to missing parameter zoneid

Expected Result:
=============
Autoscale policy creation should be successful and the "min" number of VMs specified in the policy should be deployed.

Following should be the params for autoscalevmprofile creation:
command=createAutoScaleVmProfile&response=json&zoneid=0b43fff3-c069-417b-ac0c-e4dc46b407ea&serviceofferingid=0
5ac866f-604c-43e2-a48b-47e83ef7c4f1&templateid=3cdd83c4-ad27-11e5-9eaf-42407779c24b&destroyvmgraceperiod=30&counterparam%5B0%5D
.name=snmpcommunity&counterparam%5B0%5D.value=public&counterparam%5B1%5D.name=snmpport&counterparam%5B1%5D.value=161

Fix:
===
Added a conditon to check whether the zoneid in networks is undefined,
If that is undefined, it gets the zoneid from ipaddresses argument.
Fixed a localization issue.

* pr/1334:
  CLOUDSTACK-9229: Autoscale policy creation failing in VPC due to zoneid missing in createAutoScaleVmProfile

Signed-off-by: Remi Bergsma <github@remi.nl>
2016-01-20 22:31:51 +01:00
..
ui CLOUDSTACK-8592: Implement Quota service 2015-12-07 23:02:48 +05:30
ui-custom Merge pull request #1334 from nitin-maharana/CloudStack-Nitin17_4.7 2016-01-20 22:31:51 +01:00
accounts.js Merge branch '4.6' 2015-12-07 12:44:07 +05:30
accountsWizard.js Removed leading tabs from ui/scripts/*.js 2015-08-07 11:58:13 +02:00
affinity.js Removed leading tabs from ui/scripts/*.js 2015-08-07 11:58:13 +02: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
cloud.core.callbacks.js Removed leading tabs from ui/scripts/*.js 2015-08-07 11:58:13 +02:00
cloudStack.js CLOUDSTACK-9230: Remove unnecessary return statement from cloudStack.js 2016-01-13 16:00:20 +05:30
configuration.js CLOUDSTACK-8984: VPC Network offerings tab missing from UI 2015-10-29 09:21:16 +05:30
dashboard.js Removed leading tabs from ui/scripts/*.js 2015-08-07 11:58:13 +02:00
docs.js Merge pull request #1319 from nitin-maharana/CloudStack-Nitin15_4.7 2016-01-19 17:44:56 +01:00
domains.js CLOUDSTACK-9220 Sort list of domains on Domain tab in UI 2016-01-09 21:02:38 +01:00
events.js Removed trailing whitespace from ui/scripts/*.js 2015-08-07 11:25:15 +02:00
globalSettings.js Removed leading tabs from ui/scripts/*.js 2015-08-07 11:58:13 +02:00
installWizard.js api: avoid sending sensitive data in api response 2015-03-11 16:34:56 +05:30
instanceWizard.js Merge pull request #937 from autotraderuk/sec-group-sorting 2015-12-04 20:21:18 +01:00
instances.js CLOUDSTACK-9051: update nic IP address of stopped vm 2015-11-30 09:20:25 +01: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 ui: improve metrics view implementation 2016-01-18 12:50:57 +01:00
network.js Merge pull request #1337 from nitin-maharana/CloudStack-Nitin20_4.7 2016-01-20 22:17:54 +01:00
plugins.js Plugin API: Support multiple JS includes per plugin 2014-01-27 12:39:36 -08:00
projects.js Removed leading tabs from ui/scripts/*.js 2015-08-07 11:58:13 +02:00
regions.js CLOUDSTACK-8744 Add missing localization (l10n) for several parts in the UI 2015-08-18 11:16:14 +01:00
sharedFunctions.js Made interface changes related to CLOUDSTACK-8580 2015-08-14 11:13:21 +02:00
storage.js CLOUDSTACK-9132: API createVolume takes empty string for name parameter 2016-01-08 13:41:41 +05:30
system.js CLOUDSTACK-9129: list vpc routers by keyword in Infrastructure -> Virtual Routers 2015-12-10 09:14:12 +01:00
templates.js CLOUDSTACK-4787: Allow users to select disk controller for VM/template 2015-11-27 18:52:02 +05:30
vm_snapshots.js UI code cleanup: Fix trailing commas in JS 2013-09-24 11:16:13 -07:00
vpc.js Merge pull request #1301 from nitin-maharana/CloudStack-Nitin3_4.7 2016-01-16 19:40:07 +01:00
zoneWizard.js CLOUDSTACK-9044: Add RBD Primary Storage to the Zone Wizard. 2015-11-08 18:22:39 +01:00