14386 Commits

Author SHA1 Message Date
Pranav Saxena
525912766a CS-15909:[Autoscale] UI: Autoscaler references to be replaced with Autoscale 2012-11-16 10:56:49 +05:30
Jessica Wang
b228841872 CS-15885: cloudstack 3.0 UI - autoscale - add UI-side validation - at least one condition is required in Scale Up/Down Policy. 2012-11-16 10:56:49 +05:30
Jessica Wang
3d754ed429 cloudstack 3.0 UI - autoscale - add validation that scale policy duration can not be less than Polling Interval. 2012-11-16 10:56:49 +05:30
Brian Federle
28513fa6c6 Autoscale UI actions: Support passing new actionFilter on complete
Conflicts:
	ui/scripts/ui-custom/autoscaler.js
2012-11-16 10:56:49 +05:30
Jessica Wang
08a73d1134 cloudstack 3.0 UI - autoscale -fix a bug that action bar was not refreshed after action was complete. 2012-11-16 10:56:48 +05:30
Jessica Wang
f348fcfb0e cloudstack 3.0 UI - autoscale - implement enableAutoScaleVmGroup API, disableAutoScaleVmGroup API. 2012-11-16 10:56:48 +05:30
Jessica Wang
2f40e78056 cloudstack 3.0 UI - autoscale - configure AutoScale - resolve an error returned by updateAutoScaleVmGroup API "Only scaleup policies can be specified in scaleuppolicyids". 2012-11-16 10:56:48 +05:30
Jessica Wang
e1275b4916 cloudstack 3.0 UI - autoscale - configure AutoScale - fix a bug when root-admin tried to update an AutoScale created by regular-user or domain-admin, users dropdown was not correctly populated (should be populated with users under owner account instead of users under current login account). 2012-11-16 10:56:48 +05:30
Jessica Wang
67ea9669ab CS-15836: cloudstack 3.0 UI - autoscale - existing LB - configure AutoScale - fix a bug that root-admin was unable to see autoscale created by regular-user or domain-admin. 2012-11-16 10:56:47 +05:30
Jessica Wang
b8d006c8f5 cloudstack 3.0 UI - autoscale - existing LB - configure AutoScale - fix a JS bug "otherdeployparams is undefined". 2012-11-16 10:56:47 +05:30
Jessica Wang
45f8b8f553 cloudstack 3.0 UI - autoscale - for regular user - fix a bug that createAutoScaleVmProfile API fails because autoscaleuserid is undefined. 2012-11-16 10:56:47 +05:30
Brian Federle
9076ee5018 CS-15861: Validate form fields before showing autoscale UI
--only applies to new LB rule form, not existing LB rules.
2012-11-16 10:56:47 +05:30
Brian Federle
2e4923a286 Autoscale UI: Add actions to top of dialog
Support performing actions via the autoscaler dialog. This adds
'autoscaleActions' and 'actionFilter' options to the autoscaler, which
specify and handle the actions appearing in the UI.

Performing these actions will cause a loading overlay to appear until
actions are finished, when the action bar is refreshed via the action
filter.
2012-11-16 10:56:46 +05:30
Jessica Wang
4abf8ebeac cloudstack 3.0 UI - autoscale is not supported in VPC. So, hide autoscale button in LB listing in IP Addresses under VPC. 2012-11-16 10:56:46 +05:30
Jessica Wang
45891a9269 cloudstack 3.0 UI - autoscale - implement edit mode. 2012-11-16 10:56:46 +05:30
Pranav Saxena
6daff57fdd CS-15744:Incorrect error message with disable autoscaleVmgroup operation- patch sent by Deepak Garg (deepakgarg.iitg@gmail.com) 2012-11-16 10:56:45 +05:30
Pranav Saxena
e9a4a7b1e6 CS-15745:Incorrect error message with update autoscaleVMgroup :patch-sent by Deepak Garg (deepakgarg.iitg@gmail.com) 2012-11-16 10:56:45 +05:30
Brian Federle
2bb5cb024f multiEdit widget: Support field pre-filter
If adding a 'fieldPreFilter' option to a multiEdit, the returned array
specifies field IDs to be hidden.
2012-11-16 10:56:45 +05:30
Brian Federle
bbfb13a1d9 Merge Autoscaler UI implemetation
This change includes the new dialog box for the CloudStack Autoscaler
implementation. It is accessible by a button ('Autoscaler') that
appears under each LB rule.

This also contains changes to the multiEdit widget to support features
required for Autoscaler:

-Fixes context/data passing to custom button widgets
-Fixes data retrieval for select fields
2012-11-16 10:56:45 +05:30
Pranav Saxena
6f3df699d1 Removing the Author's name from the file - Patch sent by Deepak Garg(deepakgarg.iitg@gmail.com) 2012-11-16 10:56:44 +05:30
Vijay
f96810b9ae AutoScale. Adding default counters
Conflicts:

	server/src/com/cloud/server/ConfigurationServerImpl.java
	setup/db/create-schema.sql
	setup/db/db/schema-304to305.sql
2012-11-16 10:56:44 +05:30
Vijay
dda4d39b55 AutoScale changes in Apache master 2012-11-16 10:56:44 +05:30
Jessica Wang
bcd60dab09 CLOUDSTACK-496: cloudstack UI - zone wizard - replace Isolation mode VLAN/SecurityGroup radio buttons with one single checkbox SecurityGroup. 2012-11-15 15:52:28 -08:00
Jessica Wang
57aeb17a5f CLOUDSTACK-495: cloudstack UI - template page - delete template/ISO - fix a JS error "cloudStack.context.projects is null" 2012-11-15 15:50:01 -08:00
Brian Federle
27fcb788e9 Instance wizard UI: Support conditional hide/show of add network box
Adds new function 'showAddNetwork' to instance wizard configuration,
which conditionally hides the 'add network form' on the select network
step. If it returns true, then show the box, otherwise false hides it.
2012-11-15 12:16:42 -08:00
Brian Federle
83229aa460 Zone wizard UI: Change isolation mode selection
-Remove VLAN + SG radio buttons; replace with 'Security groups'
checkbox

-Pass boolean 'zone.sgEnabled' to zoneWizard action handler, instead of
'zone.isolationMode' from before.
2012-11-15 11:42:00 -08:00
Rohit Yadav
08d16cf4d1 cli: Handle HTTP and URL errors
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-15 18:43:51 +05:30
Rohit Yadav
4c86b1545d CLOUDSTACK-424: Update userdata should propagate to VR
The code that would propage userdata to router, when updateVirtualMachine api
is called, was missing. As per the docs [0], userdata should be a base64 encoded
string upto 2KB which is put on domr's html directory adn using HTTP GET the
userdata information can be obtained from the domr.

The updateVirtualMachine api [0] would accept a base64 encoded string
and decoded and put into the domr's /var/www/html/userdata/<uservm ip>/user-data
file. The operation does not require the VM to be in stopped state, though it is
advised to stop and call this api in case the user vm has a script which gets
the userdata information from domr while starting.

For example, this script can be used to fetch the data:
server_ip=$(grep dhcp-server-identifier /var/lib/dhclient-eth0.leases | tail -1 | awk '{print $NF}' | tr '\;' ' ')
wget http://${server_ip}/latest/user-data

This feature can be useful, for example to use into puppet facts [1], or to do
automation and horizontal scaling etc. based on userdata.

[0] http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/domain_admin/updateVirtualMachine.html
[1] http://geek.jasonhancock.com/2011/11/09/cloudstack-userdata-into-puppet-facts/

BUG-ID : CLOUDSTACK-424
Reviewed-by: Rohit Yadav <bhaisaab@apache.org>
Reported-by: Nick Wales

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-15 18:43:51 +05:30
Rohit Yadav
7ae8c4ad7e cli: Split using only space
Patch fixes lexical parser for default argument on shell.

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-15 18:43:51 +05:30
Pranav Saxena
fe460fac43 Upgrading a network that has Network offering SRX/F5 inline mode to a network offering that has all service provided by VR does not give proper error message: Hence correcting the error message 2012-11-15 13:52:54 +05:30
Alena Prokharchyk
2914985837 Fixed json response to return "size" parameter (resources count in the system) when pageSize=0 is specified 2012-11-14 15:01:48 -08:00
Alena Prokharchyk
6d9cafbf35 DeployVm: when SG enabled network is passed to the command, but no SG list is defined in the request, add the vm to SG enabled network automatically
Conflicts:

	server/src/com/cloud/vm/UserVmManagerImpl.java
2012-11-14 15:01:35 -08:00
Alena Prokharchyk
74622a4dc3 Fixed listNetworks for the case when a) caller is an admin 2) projectId=-1 is specified - admin wasn't able to list networks belonging to regular users' projects 2012-11-14 14:59:51 -08:00
Jessica Wang
9d7f48c40d CLOUDSTACK-485: cloudstack UI - zone wizard - Hide Guest Traffic Step(VLAN Range field) when Advanced/SecurityGroup is selected. Show it when Advanced/VLAN is selected. 2012-11-14 14:43:04 -08:00
Jessica Wang
60cec46333 CLOUDSTACK-484: cloudstack UI - zone wizard - Hide Guest CIDR field when Advanced/SecurityGroup is selected. Show it otherwise. 2012-11-14 14:39:54 -08:00
Brian Federle
d1fb2f7634 Revert "CLOUDSTACK-483: Disable 'update' tab when host updates aren't supported"
Reverting because host update feature isn't supported under CS

This reverts commit 7f905cd94a273696d8f6d3fb405e7fee70998c6a.
2012-11-14 10:39:40 -08:00
Brian Federle
7f905cd94a CLOUDSTACK-483: Disable 'update' tab when host updates aren't supported 2012-11-14 10:29:35 -08:00
Laszlo Hornyak
499a28cb43 Removed redundant imports from VolumeHostDao
Signed-off-by: Laszlo Hornyak <lhornyak@redhat.com>
Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1352883689 +0530
2012-11-14 14:31:29 +05:30
Jessica Wang
9f8d1e0048 CLOUDSTACK-477: cloudstack UI - zone wizard - When Advanced/SecurityGroup is selected, pass forVirtualNetwork=false to createVlanIpRange API. 2012-11-13 16:59:48 -08:00
Jessica Wang
5122cb9553 CLOUDSTACK-476: cloudstack UI - create network offering - Supported Source NAT type dropdown - set "Per zone" as default option. 2012-11-13 16:47:43 -08:00
Jessica Wang
0f7266767e CLOUDSTACK-475: cloudstack UI - create network offering - Hide VPC checkbox when Guest Type is Shared. Show it when Guest Type is Isolated. 2012-11-13 16:44:02 -08:00
Edison Su
9dea5f5fc1 Fix maven build 2012-11-13 13:17:26 -08:00
Brian Federle
70a5a22329 Network list view: Fix incorrect 'acquire new ip' message from appearing
Fixes issue where global flag was sometimes causing the confirm
message to be incorrect for non-VPC acquire IP action.

Conflicts:
	ui/scripts/network.js
2012-11-13 10:52:32 -08:00
Brian Federle
456202162c Detail view/list view: Pass context to confirm messages 2012-11-13 10:52:32 -08:00
Jessica Wang
792c6c0082 CS-16749: cloudstack UI - create network offering - show LB Isolation dropdown when LB is selected and provider is external device regardless of Guest Type(Isolated/Shared) 2012-11-13 10:49:11 -08:00
Jessica Wang
442fff1dfd CS-16777: cloudstack UI - create network offering dialog - Associate IP checkbox should show when elastic IP (NOT elastic LB) is selected. 2012-11-13 10:20:08 -08:00
Jessica Wang
2f27746d71 CS-16802: cloudstack UI - Zone Wizard - add "Isolation Mode" (VLAN, Security Group) under advanced zone option. 2012-11-13 10:19:36 -08:00
Chip Childers
a61cb24e91 CLOUDSTACK-473: Improving the uploadCustomCertificate API documentation
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-11-12 15:41:27 -05:00
Laszlo Hornyak
1a67e3f5c6 Summary: Extract redundant datasource code into method for Transaction.java
Reviewed-by: Prasanna Santhanam <tsp@apache.org>
Reported-by: Laszlo Hornyak <lhornyak@redhat.com>
Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1352745925 +0530
2012-11-13 00:15:24 +05:30
Brian Federle
29978bdb81 CS-16802: Add isolation mode drop-down to zone wizard
-Adds new radio button pair, 'isolation mode' under Advanced zone
select, allowing selection of isolation mode

-Isolation mode is disabled if 'Basic' zone is selected

-Pass isolation mode via new property 'zone.isolationMode'
2012-11-09 14:38:46 -08:00