Commit Graph

191 Commits

Author SHA1 Message Date
alena ef3ea765bf bug 9697: encode api response values
status 9697: resolved fixed

Do encoding for ASCII chars only (done to eliminate problems with multiple language support)
To disable encoding, set "encode.api.response" to false
2011-06-10 18:10:44 -07:00
Alex Huang b07835c557 bug 9651: update network working now 2011-06-09 11:54:12 -07:00
Alex Huang b1de7ece25 bug 9651: we're saving the tags twice. 2011-06-08 15:55:37 -07:00
Sheng Yang ff86c865e2 bug 10135: Add SSL encryption for non-NIO link
Now Link.write() support SSL encryption. And since there is no user of
Link.read(), we comment it out.
2011-06-04 21:27:18 -07:00
Alex Huang d9e0bcfa1e bug 10126: Renamed getPodId() to getPodIdToDeployIn() 2011-06-03 22:17:08 -07:00
Alex Huang 2dbb8eb502 bug 9651: Make same VLAN work on two different nics 2011-06-01 17:07:44 -07:00
Alex Huang 8754f8fab8 bug 9651: checked in missing files 2011-05-31 10:27:50 -07:00
Alex Huang 7c74c3a51d bug 9651: network tagging changes working now 2011-05-31 09:49:27 -07:00
Alex Huang 0ab12edd6c network tagging changes 2011-05-31 09:49:27 -07:00
Alex Huang 67ff27496d tags added 2011-05-31 09:48:34 -07:00
Alex Huang 0dfc44582b bug 9651: Adding network tags
Also changes in Request logging.
2011-05-23 15:51:50 -07:00
Alex Huang ea9703997b proxy agent 2011-05-17 07:12:58 -07:00
anthony 9c4964bc1b fixed merge 2011-05-16 16:54:00 -07:00
Edison Su 47380dc20e fix add host 2011-05-12 15:03:15 -04:00
Sheng Yang 0c1ad8ac88 Fix another "Too many open file open"
Resources need to be released before creating new NioClient instance during the
reconnecting.
2011-05-11 16:48:27 -07:00
Jessica Wang fe8d81e246 bug 9765: This is NOT an UI bug. This is a server-side bug. UI calls DeployVM API with ServiceOfferingID parameter (NOT ServiceOfferingDescription parameter). Then, server-side gets ServiceOfferingDescription by ServiceOfferingID and send it to DomR WITHTOUT escaping it first. DomR doesn't support full range of unicode character set. Therefore, DomR fails to accept metadata that has non-ascii code (error: "vm_data failed"). This check-in will send Unicode-escaped string of metadata "service-offering", "availability-zone" and "local-hostname" to DomR. Data Consumer of VM-data service needs to unescape the content accordingly. 2011-05-10 17:57:44 -07:00
Alex Huang b2cf4e39ea propagate fix from 2.2.4 2011-05-05 17:57:06 -07:00
Edison Su 0138d06cf2 load user specified component specification from enviroment.properties: e.g. cloud-stack-components-specification=components-cloudzone.xml 2011-05-05 11:42:11 -04:00
Alex Huang fba1c95512 bug 9615: Part of the HA cleanup 2011-05-03 16:34:53 -07:00
Chiradeep Vittal cf05527ba8 merge from zonesfeature 2011-05-03 10:41:32 -07:00
Chiradeep Vittal 303e2a7481 Start of zonesfeature / mycloud/cloudkit 2011-05-03 10:40:17 -07:00
Alex Huang 99bc15f64a changed getName to getHostname 2011-04-29 08:34:10 -07:00
alena 11ef6bbbe2 bug 9638: fixed bunch of DB upgrade bugs
status 9638: resolved fixed

Conflicts:

	server/src/com/cloud/upgrade/DatabaseUpgradeChecker.java
	utils/src/com/cloud/utils/net/NetUtils.java
2011-04-28 18:30:40 -07:00
Sheng Yang cf114fc7af Enable SSL for mgmt servers and agents
The port remains 8250.

The keystore saved at /etc/cloud/management/cloud.keystore. We also include one
fail-safe keystore/certificate for fallback if we are unable to generate
certificate and keystore. If we use fail-safe keystore, a warning and calltrace would be show.

Notice you need to upgrade agent, as well as systemVM's images.
2011-04-28 17:41:29 -07:00
Frank 504eb25c37 Intrdouce adapter to template manager. 2011-04-27 14:04:37 -07:00
Kelven Yang 81492dbe04 propagate searching local CIDR fix from 2.2.4 to master 2011-04-27 10:01:35 -07:00
alena 41e5e38fef bug 9336: securityGroups can be used by other securityGroups in the same domain only; no cross domain SG authentication
status 9336: resolved fixed

Following changes were made:

* deleteSecurityGroup/authorizeSecurityGroupIngress - removed account/domainId parameters as SG is uniquely identified by id now
* removed account_name field from securityGroup DB table; removed allowed_security_group/allowed_sec_grp_acct from security_ingress_rule.
These values were used for api response generation only for performance purposes; added caching on API level to improve performance
* Added missing security checks for securityGroups/ingressRules
2011-04-22 11:35:29 -07:00
Kelven Yang 565dfb9809 Add java keystore helper class, prepare for dynamically generating keystore for SSL use 2011-04-18 11:08:07 -07:00
Sheng Yang 227b03fd93 bug 4387: Add maximum limit to the packet, prevent OOME
The OOME is due to when server reading the data, it would try to adjust the
reading buffer size according to the "packet length" it read. But if the "packet
length" is some random numbers, server would still try to allocate a part of
very big memory for the reading buffer, result in OOM.

This patch add a 64k limit to sending/receiving the packet. It's the maximum
length one IP datagram can support, and we don't think the request can exceed
this limit. Even if exceed the limit in normal condition, we would aware of it
due to the exception.

Solution has been verified using wget and telnet.

status 4387: resolved fixed
2011-04-15 15:28:43 -07:00
Abhinandan Prateek efa0417881 bug 5242: adding a host does not return useful error
status 5242: closed fixed
2011-04-15 17:28:46 +05:30
Frank 92155522f2 Add license header to files 2011-04-14 11:23:14 -07:00
Kelven Yang 1b9cbd9166 bug 9223, 9224: persist runid to form cluster session, based on cluster session and DB condition to issue isolation notification for self-fencing 2011-04-13 15:13:54 -07:00
Kelven Yang 03afe54084 Regression fixes for adding openNew() to Transaction.java 2011-04-11 17:44:31 -07:00
Kelven Yang 149eb0fade Use seperate DB connection to handle cluster management 2011-04-11 16:37:58 -07:00
Frank 105db3b15a Merge branch 'baremetal' to master
modifies:
	api/src/com/cloud/api/ApiConstants.java
	api/src/com/cloud/api/commands/AddHostCmd.java
	api/src/com/cloud/api/commands/CreatePodCmd.java
	api/src/com/cloud/api/commands/DeployVMCmd.java
	api/src/com/cloud/dc/Pod.java
	api/src/com/cloud/network/NetworkService.java
	server/src/com/cloud/agent/manager/AgentManagerImpl.java
	server/src/com/cloud/configuration/ConfigurationManagerImpl.java
	server/src/com/cloud/dc/HostPodVO.java
	server/src/com/cloud/network/NetworkManager.java
	server/src/com/cloud/network/NetworkManagerImpl.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
	setup/db/create-schema.sql
	utils/src/com/cloud/utils/SerialVersionUID.java
2011-04-11 14:21:41 -07:00
anthony 288a36d09f Merge branch '2.2.4'
Conflicts:
	api/src/com/cloud/configuration/ConfigurationService.java
	core/src/com/cloud/agent/resource/virtualnetwork/VirtualRoutingResource.java
	server/src/com/cloud/api/ApiDBUtils.java
	server/src/com/cloud/configuration/ConfigurationManagerImpl.java
	server/src/com/cloud/network/NetworkManagerImpl.java
	server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
	setup/db/db/schema-21to22.sql
	setup/db/db/schema-222to224.sql
	utils/src/com/cloud/utils/exception/ExceptionUtil.java
2011-04-05 12:04:09 -07:00
Alex Huang 2230c24ab3 check in changes from 2.2.4 2011-04-05 11:01:35 -07:00
Alex Huang 075fba5899 stackmaid is now taskmanager 2011-04-05 10:17:22 -07:00
kishan 5401ee84ba add support to run scripts on usage DB 2011-04-05 16:11:02 +05:30
prachi 204aa86686 Bug 9043 - VM manual migration - when destination host is out of memory for migration, VMs being migrated remained in 'migrating' state
Changes:
- When migration fails we try to do cleanup on the destination host agent. The AgentUnavailableException in this cleanup was not caught.
-Due to that other cleanup like reverting capacity allocated and vm state were skipped.
-Fix is to catch the AgentUnavailableException so that rest of the cleanup can happen.
- Also corrected the exceptions in various cases of migration failure.
- In case the VM is still starting, HA should schedule a retry. Introduced a special migration exception for handling this.
2011-04-04 17:39:27 -07:00
prachi 53f8ebf6f0 Bug 9043 - VM manual migration - when destination host is out of memory for migration, VMs being migrated remained in 'migrating' state
Changes:
- When migration fails we try to do cleanup on the destination host agent. The AgentUnavailableException in this cleanup was not caught.
-Due to that other cleanup like reverting capacity allocated and vm state were skipped.
-Fix is to catch the AgentUnavailableException so that rest of the cleanup can happen.
- Also corrected the exceptions in various cases of migration failure.
- In case the VM is still starting, HA should schedule a retry. Introduced a special migration exception for handling this.
2011-04-04 17:30:08 -07:00
Kelven Yang f14be91167 Apply changes in FOSS because of prioprietary merges 2011-04-01 14:13:38 -07:00
Kelven Yang 6ff40b7e88 allow controllable stack dump in ExceptionUtil.java 2011-03-29 14:04:04 -07:00
Alex Huang 6bd978abfe bug 9192: fixes the caches that are gone due to configuration server uses the same dao without cache 2011-03-29 11:31:59 -07:00
Alex Huang f2e692099e bug 9192: fixes the caches that are gone due to configuration server uses the same dao without cache 2011-03-29 11:31:23 -07:00
Kelven Yang fa0dd8a228 Allow cluster management confliction detection to handle quick manageemnt server restarts 2011-03-28 15:14:51 -07:00
Kelven Yang 359dc18992 Fix possible duplicated JMX registration issue 2011-03-25 15:16:41 -07:00
Kelven Yang aadeceaf78 Add a DNS name resolution helper 2011-03-22 10:58:22 -07:00
alena 7c1a6e4884 bug 8831: API/Management server part is done for "Dedicate Network to domain". UI part is left 2011-03-21 18:17:59 -07:00
Kelven Yang b264866d2e Perform and alert management.network.cidr configuration on management server startup 2011-03-21 16:46:43 -07:00