cloudstack/ui/scripts/ui-custom
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
..
accountsWizard.js CLOUDSTACK-9092: L10n fix in "Add LDAP Account page" 2015-11-30 11:21:17 +05:30
affinity.js Format JS 2013-07-18 12:34:20 -04: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
dashboard.js Format JS 2013-07-18 12:34:20 -04:00
enableStaticNAT.js CLOUDSTACK-5114: Remove checkbox column from dialog list view 2013-12-03 12:33:09 -08:00
granularSettings.js CLOUDSTACK4515: UI > Settings tab of zone/cluster/account/primaryStorage detailView > add Description field. 2013-10-07 13:35:26 -07: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 CLOUDSTACK-8744 Add missing localization (l10n) for several parts in the UI 2015-08-18 11:16:14 +01:00
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
physicalResources.js Removed trailing whitespace from ui/scripts/*.js 2015-08-07 11:25:15 +02:00
pluginListing.js Removed trailing whitespace from ui/scripts/*.js 2015-08-07 11:25:15 +02:00
projectSelect.js Sorting projects alphabetically in drop down menu 2014-11-06 10:16:15 +05:30
projects.js CLOUDSTACK-8744 Add missing localization (l10n) for several parts in the UI 2015-08-18 11:16:14 +01:00
recurringSnapshots.js Format JS 2013-07-18 12:34:20 -04:00
regions.js Removed large chunks of commented code 2015-08-07 14:55:59 +02:00
saml.js CLOUDSTACK-8701: Allow SAML users to switch accounts 2015-08-14 11:58:44 +05:30
securityRules.js Format JS 2013-07-18 12:34:20 -04:00
uploadVolume.js Format JS 2013-07-18 12:34:20 -04:00
vpc.js Format JS 2013-07-18 12:34:20 -04:00
zoneChart.js CLOUDSTACK-8744 Add missing localization (l10n) for several parts in the UI 2015-08-18 11:16:14 +01:00
zoneFilter.js Format JS 2013-07-18 12:34:20 -04:00
zoneWizard.js CLOUDSTACK-8930: Showing blank screen when click 'Next' link in final step of Add Zone wizard. 2015-10-07 07:47:00 +01:00