11087 Commits

Author SHA1 Message Date
Prasanna Santhanam
01fa6e3322 adding retry logic, error handling, and urllib2 used for managing connections 2012-02-29 11:58:25 +05:30
Prasanna Santhanam
1316fb7714 Wrong place to put a return 2012-02-29 11:58:25 +05:30
Alena Prokharchyk
e01088f4a6 DB upgrade: added missing account_details table 2012-02-28 17:19:17 -08:00
Kelven Yang
5aade501dc fix merge conflicts 2012-02-28 17:06:23 -08:00
Kelven Yang
52ebf15e7c Console proxy refactoring incremental check-in - new VNC protocol implementation 2012-02-28 17:03:38 -08:00
Edison Su
8fb378ac53 fix db upgrade 2012-02-28 17:03:18 -08:00
Edison Su
215bcb1ce6 fix db upgrade 2012-02-28 16:38:53 -08:00
Alena Prokharchyk
6ac729e294 Add is_system field to user_ip_address table during the db upgrade 2012-02-28 16:30:56 -08:00
Sheng Yang
0d2693c1c4 Add element_id for 3.0 upgrade 2012-02-28 16:19:38 -08:00
Edison Su
66b4351caf fix db upgrade 2012-02-28 15:39:32 -08:00
Alena Prokharchyk
9b6c3867c7 Updated test data for db upgrade unittest 2012-02-28 15:27:03 -08:00
Alena Prokharchyk
2eaefc4aa8 Fixed unittest and some issues with 2.2.14-3.0 upgrade 2012-02-28 15:17:14 -08:00
Jessica Wang
2e479ff240 cloudstack 3.0 new UI - support single-sign-on. 2012-02-28 14:54:17 -08:00
Jessica Wang
1136cd7cf1 remove g_type that is no longer in use. 2012-02-28 13:34:47 -08:00
Brian Federle
2022cd2dea Use user.role instead of user.type 2012-02-28 12:09:45 -08:00
Jessica Wang
43570f9898 cloudstack 3.0 new UI - check whether session is valid or not before sending API request. If session is invalid, pop up "session expired" dialog instead of send API request. 2012-02-28 11:34:24 -08:00
Vijayendra Bhamidipati
83101a752f Bug 13127: API error text refer to database ids instead of uuids
Description:

	Modified the IdentityTypeAdapter's custom serializer to
	identify whether this is an exception response that is being
	serialized, by checking if the idFieldName is set. If so,
	serialize both uuid and the uuidProperty (for eg, zoneId and
	"zoneId" (string)) and pass back the json representation of that.

	Modified XML serializer also to build a list of uuids+fieldnames.

	Introduced a new field "cserrorcode" in ExceptionResponse. This
	refers to an error code that can be according to the specific
	Exception being thrown. This will be serialized as usual. There
	shouldn't be any need to do a db lookup for conversion for these
	error codes.
2012-02-27 17:55:06 -08:00
Vijayendra Bhamidipati
59631452b9 Bug 13127: API error text refer to database ids instead of uuids
Description:

	Modify Exception handling to enable addition of multiple
	uuids in a single exception thrown by API functions. Both
	XML and JSON outputs will store all uuids and Fieldnames.
	This will make it easier to provide more information when
	an exception occurs - for example, a zone id, a cluster id,
	host id, and then a specific property id.
2012-02-27 17:55:03 -08:00
Vijayendra Bhamidipati
bfe1122bc6 Bug 13127: API error text refer to database ids instead of uuids
Description:

	Added a field name for the db id in the IdentityProxy class, and
	modified setProxyObject() to take an additional id name parameter.
	This will let us know the name of the uuid that we are returning.
	E.g.- domainId, zoneId, etc. The client can view this field in
	the json/xml output. Modified the JSON/XML serialization routines
	to append this new parameter to the serialized output for Exception
	Responses.
2012-02-27 17:55:01 -08:00
Vijayendra Bhamidipati
e5b4cf5cf1 Bug 13127: API error text refer to database ids instead of uuids
Description:

	1) Put in an IdentityProxy object in the ExceptionResponse class.
	   This allows us to copy over the IdentityProxy object contained
	   in the exception caught by handlerequest() when thrown by the
	   command's execute() method, into the Response object that is
	   prepared to return an exception response to the calling API
	   invocation.

	2) Modified the GSON serialization method to conver the entire
	   exception object into JSON format and not just the error text.

	3) Modify the updateDomain API to populate the exception it throws
	   upon detecting a duplicate domain to include the tablename and
	   domain db id in the exception's IdentityProxy object.

	NOTE:
	1) We can modify the base exception classes and the ExceptionResponse
	   class to contain a list of IdentityProxy objects rather than a
	   single one.
	2) We will need to modify all commands such that wherever applicable
	   (wherever a db id is involved), they populate the IdentityProxy
	   object(s) before throwing an exception.
2012-02-27 17:54:58 -08:00
Vijayendra Bhamidipati
c3fbe29cf8 Bug 13127: API error text refer to database ids instead of uuids
Description:

	1) Added a setProxyObject() method to CloudException and RuntimeCloudException
	2) Modified a bunch of throw exceptions in NetworkManagerImpl.java to call setProxyObject() before throwing an exception.
	3) Changed scope of ProxyIdentity attribute to protected.
	4) Added routines to ServerApiException to get/set IdentityProxy object, and
	   routine in RuntimeCloudException to get the Idproxy object.
	5) Modified the exception handling around the dispatcher and handlerequest()
	   to copy over the IdentityProxy information before rethrowing an exception
	   eventually back to handle().
	6) Removed duplicate IdentityProxy object in ServerApiException.
	   It was extending RuntimeCloudException which already had an
	   IdentityProxy object.
2012-02-27 17:54:56 -08:00
Vijayendra Bhamidipati
768d7a2a26 Bug 13127: API error text refer to database ids instead of uuids
Description:

1)	Moved RuntimeCloudException from api/ to utils/.

	Added simple constructor to RuntimeCloudException.

	Modified all classes that extended RuntimeException
	to extend RuntimeCloudException. These classes
	are listed below:

		ServerApiException
		CloudAuthenticationException
		CloudExecutionException
		AsyncCommandQueued
		HypervisorVersionChangedException
		RuntimeCloudException

2)	Added overloaded constructed to CloudException.
	Modified all classes that extend Exception to extend CloudException instead.
	These classes are listed below:

		ConcurrentOperationException
                ConflictingNetworkSettingsException
                ConnectionException
                DiscoveryException
                InsufficientCapacityException
                ManagementServerException
                ResourceUnavailableException
                VirtualMachineMigrationException
                AgentControlChannelException
                OperationTimedoutException.java
                UnsupportedVersionException.java
                UsageServerException.java
                UnableDeleteHostException.java
                AgentAuthnException.java
                HttpCallException.java
                ActiveFencingException.java
                ClusterInvalidSessionException.java
                GreTunnelException.java
                OvsVlanExhaustedException.java
2012-02-27 17:54:53 -08:00
U-CITRITE\vijayendra1
698c1ebe12 Bug 13127: API error text refer to database ids instead of uuids
Description:

1)	Adding two new classes, CloudException and RunTimeCloudException.
	The former extends Exception and the latter RunTimeException.
	These will be used by classes that formerly directly extended
	Exception and RuntimeException. These two classes have an attribute
	of type IdentityProxy to enable exceptions fill in db ids in separate
	attribute fields rather than in a string. Doing so will allow the
	serialization module (GSON for JSON and other for XML) to kick in
	and convert this db id to a uuid in ApiServer.java just before the
	JSON/XML responses are sent out.

2)	Moving IdentityProxy.java from api/ to utils/ since
	both CloudException and RuntimeCloudException refer to it.

3)	Changing references to IdentityProxy class from api/ to utils/.

4)	While rebasing to master, a new file was added, merging
	api/src/com/cloud/api/response/IsoVmResponse.java to this diff.
2012-02-27 17:54:50 -08:00
Jessica Wang
b7b9b096a2 cloudstack 3.0 new UI - clean up global variable and session cookie when logging out. 2012-02-27 17:32:05 -08:00
Brian Federle
c4e5ce36c5 bug 13072: Remove host 'type' field
status 13072: resolved fixed
2012-02-27 16:45:37 -08:00
Kelven Yang
7eded374b7 bug 13860: add sanity check to ApiResponseSerializer when serializing XML response. Reviewed-By: Anthony 2012-02-27 16:07:39 -08:00
frank
0276217c5e fix Ovm network for bond device 2012-02-27 16:07:01 -08:00
Edison Su
cf0a4e0274 bug 14034: add newline around configuration file. status 14034: resolved fixed. Reviewed-by: frank 2012-02-27 15:40:27 -08:00
Kelven Yang
bdc99ea17a bug 13989: correct the usage about the control IP in VMware resource, new command like GetDomRVersion command is not using the right control IP address under basic zone mode. Reviewed-By: Anthony 2012-02-27 15:05:34 -08:00
Kelven Yang
2d9a949ff8 bug 13989: get domr control IP from NIC table, the old private ip in domain_router table is no longer valid under basic zone configuration. Reviewed-By: Anthony 2012-02-27 15:05:18 -08:00
Alena Prokharchyk
867db1ae5e Don't initialize the logger in AsyncJobResponse class 2012-02-27 14:22:58 -08:00
anthony
3a4ee0d486 removed unused files 2012-02-27 13:59:09 -08:00
Jessica Wang
a2962c0f59 Add Network Offering dialog - trigger change event to show/hide fields when the dialog box is opened. 2012-02-27 12:43:26 -08:00
Alena Prokharchyk
50b2c26d3e Fixed XML api writer
Reviewed-by: Alena
2012-02-27 12:38:30 -08:00
Jessica Wang
2f69ec34cc bug 14030: ISO page - download ISO action - fix to show correct message ("url: ~~~") after ISO is downloaded. 2012-02-27 12:24:16 -08:00
Brian Federle
a4197874c4 bug 14012
Fix typo in shutdown provider message code

status 14012: resolved fixed
reviewed-by: jessica
2012-02-27 10:45:25 -08:00
Brian Federle
d0ed8bf227 bug 14013
Decrease height of details container to prevent apply button from
being hidden
2012-02-27 10:42:08 -08:00
Alena Prokharchyk
856418e700 bug 13860: Added async job types to Account/User Async api commands and more logging.
Reviewed-by: Kelven Yang
2012-02-27 10:36:17 -08:00
Brian Federle
b0f038c421 bug 14011
Fix to show install wizard when re-loading the page, so that the EULA
is always shown until installation is completed.
2012-02-27 10:27:41 -08:00
Alena Prokharchyk
75bbefec63 More details to api doc
Reviewed-by: Jessica Tomechak
2012-02-24 16:12:17 -08:00
anthony
bd9b52fc3d bug 13955: increase the retry time for checkssh
status 13955: resolved fixed

reviewed-by : edison
2012-02-24 16:01:08 -08:00
Alena Prokharchyk
8f988b97cb Clone services map when do provider/service verification during network offering addition.
Reviwed-by: Prachi Damle
2012-02-24 15:32:01 -08:00
anthony
6d39e10b76 get fsimage from sp2 for XenServer 5.6 GA 2012-02-24 15:03:34 -08:00
Kelven Yang
16e1f18afe bug 13987: a regression was caused by typo. Reviewed-By:Anthony 2012-02-24 13:29:03 -08:00
frank
3f28c225f5 Bug 13990 - Ubuntu packages install the wrong files
contributed by Wido
reviewed-by: David N

status 13990: resolved fixed
2012-02-24 10:35:09 -08:00
Brian Federle
d6a8db3826 Move untranslated labels into the 'new' section of properties files 2012-02-24 10:29:46 -08:00
Kelven Yang
b597362e50 bug 13989: GetDomRVersion command context is not correctly set for VMware under Basic zone configuration. Reviewed-By: Anthony 2012-02-24 10:01:07 -08:00
Jessica Tomechak
30d495cd09 Add new images for documentation. 2012-02-24 04:09:30 -08:00
Jessica Tomechak
46503de5a9 Update CloudStack 2.2.x documentation source files. 2012-02-24 04:08:38 -08:00
Jessica Wang
9ff7056820 bug 13971: network page - create network - pass new API parameter zoneId to listNetworkOfferings API. [Reviewed-by: Brian] 2012-02-23 17:18:50 -08:00