Commit Graph

11073 Commits

Author SHA1 Message Date
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
Jessica Wang a12f30e539 bug 13971: deployVM wizard - select network step - pass new API parameter zoneId to listNetworkOfferings API. 2012-02-23 17:18:22 -08:00
anthony b16eb44a9c bug 13975: use correct hypervsor_version
status 13975: resolved fixed

reviewed-by : edison
2012-02-23 17:05:44 -08:00
Alena Prokharchyk 6612744c61 bug 13971: return only offerings with matching tags when zoneId is passed in and corresponding zone has more than 1 physical network
status 13971: resolved fixed
Reviewed-by: Prachi Damle
2012-02-23 16:52:50 -08:00
Brian Federle 7f6d6c6b87 bug 13974
Fix table not including reorder column when switching filter
2012-02-23 16:17:14 -08:00
Sheng Yang 02595f1b33 bug 12706: Add broadcast address for the network interface
status 12706: resolved fixed
2012-02-23 15:50:50 -08:00
Brian Federle 3a28cfddfa bug 13941
Add missing labels for user dashboard
2012-02-23 15:42:44 -08:00
Brian Federle 2d08583682 bug 13972
Properly refresh data for users detail view
2012-02-23 15:30:13 -08:00
Alena Prokharchyk c052d96428 bug 13966: cleanup the vm (stop it on the backend) when work step is Release. Also never retry when finalizeStart failed
status 13966: resolved fixed
reviewed-by: Alex Huang
2012-02-23 15:13:47 -08:00
Brian Federle 856f41bdf8 System, secondary storage UI fixes
-Add state field ('resourcestate') to list view

-Fix destroy action to have proper UI feedback
2012-02-23 15:07:43 -08:00
Brian Federle ea7ea4ce6f bug 12767
Hide previous button on first step of instance wizard

status 12767: resolved fixed
2012-02-23 14:45:56 -08:00
Brian Federle 152e58c444 Fix destroy system VM action 2012-02-23 14:42:29 -08:00
frank e0072edf4b Bug 13962 - CloudRuntimeException: Failed to update keypairs on disk: cannot create key file null/.ssh/id_rsa
using a flag instead of calculating timeout value. The monitor thread may have inaccurate execution time which
 may cause script forever hang

 status 13962: resolved fixed
 reviewed-by: Alex, Edison
2012-02-23 14:11:53 -08:00
Brian Federle 3c61e205a1 bug 13965
Remove listPhysicalNetworks API altogether from network step
2012-02-23 13:47:17 -08:00
frank d9019b3f70 Bug 13962 - CloudRuntimeException: Failed to update keypairs on disk: cannot create key file null/.ssh/id_rsa
Changes for Script.java:
1. Even the script is non-timeout one, set default timeout to one hour. This avoid a wrongn script forever hang
2. When InterruptedException happens, check if timeout is really reached, if not, continue

status 13962: resolved fixed
reviewed-by: Alex, Edison
2012-02-23 13:43:10 -08:00