14374 Commits

Author SHA1 Message Date
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
Satoshi Kobayashi
67490f75e6 Display the reason which failed certificate generation fails
within cloud.server.ConfigurationServerImpl.generateDefaultKeystore

Description:

The reason which failed in generation of the certificate is not displayed now.
At that time, IOException which does not include the reason is raised.
In order to solve the problem quickly, the reason should be included in the message.

(Now)
WARN  [cloud.server.ConfigurationServerImpl] (main:) Would use fail-safe keystore to continue.
java.io.IOException: Fail to generate certificate!
    at com.cloud.server.ConfigurationServerImpl.generateDefaultKeystore(ConfigurationServerImpl.java:490)

(Fix)
WARN  [cloud.server.ConfigurationServerImpl] (main:) Would use fail-safe keystore to continue.
java.io.IOException: Fail to generate certificate!: sudo: sorry, you must have a tty to run sudo
    at com.cloud.server.ConfigurationServerImpl.generateDefaultKeystore(ConfigurationServerImpl.java:490)

Testing Completed:

mvn clean install
mvn -pl :cloud-client-ui jetty:run

And generation of the certificate was made to fail, checked it.

Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-11-09 14:25:44 -05:00
Chip Childers
cfecd20738 Updating gitignore to exclude egg-info directories
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2012-11-09 14:04:37 -05:00
Brian Federle
8ed3788ade CS-16736: Remove 'mode' field from add SRX form 2012-11-09 09:40:53 -08:00
Prasanna Santhanam
145ba437cb fixing sed replace typo 2012-11-09 18:56:23 +05:30
Wido den Hollander
e477e1b78d CLOUDSTACK-448: Detect when running inside Xen HVM
This was reported by Jason Bausewein <jason.bausewein@tier3.com>
2012-11-09 14:05:27 +01:00
Prasanna Santhanam
d251bafbd4 Summary: tests can be driven parallely per module
Detail:  multiprocess plugin will drive each module in a seperate
process. the test runs will now be speeded up.

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1352465966 +0530
2012-11-09 18:29:25 +05:30
Prasanna Santhanam
c290bf6cd0 Summary: xml reports library changes
Detail: unittest-xml-reporting 1.4 - the verbose option is available via
settings.py.

Signed-off-by: Prasanna Santhanam <tsp@apache.org> 1352448075 +0530
2012-11-09 13:31:15 +05:30
Gavin Lee
ddca805912 Docbook xml for additional installation options 2012-11-09 13:55:27 +08:00
Brian Federle
85a107447c CS-16788: Fix width of multi-edit
Conflicts:
	ui/css/cloudstack3.css
2012-11-08 16:11:40 -08:00
Brian Federle
e73634733b CS-16737: Restore show tooltip on focus 2012-11-08 11:29:30 -08:00
Brian Federle
d24f057ff0 CS-16737: Fix tooltip alignment; allow attaching to parent element
Fixes issue where tooltip overlaps form due to variable input
widths. To fix, a new option 'attachTo' can be specified, which will
attach to the closest parent element matching the option's selector.
2012-11-08 11:29:19 -08:00
Pranav Saxena
4cb08a3d37 CLOUDSTACK-459:[Optional Public IP assignment for EIP with Basic Zone] Associate IP Checkbox in Create Network Offering Dialog is Displayed When Elastic LB is Selected 2012-11-09 00:44:53 +05:30