cloudstack/ui
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
..
css CLOUDSTACK-9051: update nic IP address of stopped vm 2015-11-30 09:20:25 +01:00
images CLOUDSTACK-9020: UI enhancements from metrics view 2015-11-25 14:15:13 +05:30
lib CLOUDSTACK-7659: UI: Upgrade jquery-validate lib to the latest 1.13.0 version with the additional-methods included. 2014-10-28 14:20:56 -07:00
modules Fix Externalization of hard-coded label strings 2014-09-17 13:59:13 -07:00
plugins Merge pull request #1208 from shapeblue/master-quota-greyicon 2015-12-10 14:51:54 +01:00
scripts Merge pull request #1334 from nitin-maharana/CloudStack-Nitin17_4.7 2016-01-20 22:31:51 +01:00
tests List view: tests for filter dropdown 2014-01-28 15:48:44 -08:00
dictionary.jsp CLOUDSTACK-8592: Implement Quota service 2015-12-07 23:02:48 +05:30
dictionary2.jsp [UI] MADNESS 2016-01-07 19:27:51 +01:00
error.jsp rat: add license header to error.jsp 2015-05-18 23:22:26 +01:00
index.jsp CLOUDSTACK-9020: Metrics views for CloudStack UI 2015-11-19 15:17:44 +05:30