14361 Commits

Author SHA1 Message Date
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
Pranav Saxena
9547a2f86e CS-16748:Add Network Resource Dialog Shows Inline Mode Configuration Option for Virtual Router as the Firewall Provider 2012-11-08 17:13:39 +05:30
Pranav Saxena
3e898188a0 Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cloudstack 2012-11-08 16:18:02 +05:30
Rohit Yadav
086b2e15af apidocs: remove whitespace while passing commands.in for apidocs
Due to whitespaces, apidocs was not able to process and generate commands.xml
with APIs listed in ext and virtualrouter .in files. This in turn affects marvin
code generation of cloudstackAPI and cloudmonkey.

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-08 16:33:04 +05:30
Pranav Saxena
dcdf35fc1e Network offering details: Service providers are not displayed anywhere:Modifying the code structure for map loop to retrieve the list of service providers in the form of key-value pairs 2012-11-08 16:17:34 +05:30
Pranav Saxena
fda31ab4b7 CS-16767:Add VM's option is not visible while creating Load Balancing Rules with Netscaler [ Basic EIP and ELB Offering] 2012-11-08 14:05:16 +05:30
Rohit Yadav
c667eee570 cli: make commands pipe-able as on bash, on the shell
Makes commands pipe-able like bash.
Example while inside shell:
  > list virtualmachines | grep id
  > list accounts | more

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-11-08 12:35:20 +05:30
Pranav Saxena
fb57ceef5c Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cloudstack 2012-11-08 12:23:03 +05:30
Pranav Saxena
23247e0530 CS-16714:Updgrading 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 if user selects yes when UI prompts Do you want to keep the current guest network CIDR unchange 2012-11-08 12:20:58 +05:30
Joe Brockmeier
d8e31c7a90 Revised en-US/network-setup.xml to include the correct file. 2012-11-08 00:12:28 -06:00
Joe Brockmeier
079de08194 Commented out missing file. 2012-11-07 23:53:53 -06:00
Radhika PC
35dcda2e88 CLOUDSTACK-403: New Doc file on About password and key encryption. In the Install guide, fixed references to the same section. 2012-11-07 23:29:55 -06:00
Radhika PC
ffdf19dc2c fix for review comments-cloudstack-403
Signed-off-by: Radhika PC <radhika.puthiyetath@citrix.com>
Signed-off-by: Joe Brockmeier <jzb@zonker.net>
2012-11-07 23:13:27 -06:00
Radhika PC
5722827c1b fix for cloudstack-403
Signed-off-by: Radhika PC <radhika.puthiyetath@citrix.com>
Signed-off-by: Joe Brockmeier <jzb@zonker.net>
2012-11-07 23:11:09 -06:00