Sheng Yang
53e6825b74
CLOUDSTACK-689: Clean stop pending flags when VR start/stop
2012-12-20 18:51:01 -08:00
Min Chen
e4dbc2033f
Add upgrade script from 4.0 to 4.1.
...
Signed-off-by: Min Chen <min.chen@citrix.com>
2012-12-20 18:18:06 -08:00
Kelven Yang
1d5019c3d0
add RPC client side implementation
2012-12-20 17:55:06 -08:00
Min Chen
b14b39a69f
Remove IdentityProxy from BaseResponse, ExtractResponse. Now
...
IdentityProxy is only referenced in CreateCmdResponse, which involves
some async job logic change. Since it is not impacting list performance,
will leave it there for now.
Signed-off-by: Min Chen <min.chen@citrix.com>
2012-12-20 16:52:52 -08:00
Rohit Yadav
13944a0e5e
cli: Cosmetic fixes for cloudmonkey and setup.py dependency version fix
...
- Fixes shell class name to CloudMonkey
- Fixes prettyprint version req. to 0.6
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-20 16:34:36 -08:00
Rohit Yadav
8f51c630bd
CLOUDSTACK-545: Tabularize cloudmonkey's response using filter=<fields,> argument
...
- Adds new cloudmonkey config field, tabularize
- If tabularize is set to true, all the list of dict in response are printed as
table
- The columns of the tables can be filtered using the filter= argument, for ex:
list domains listall=true filter=id,name,path
- filter arg will take comma separated values, if they have space put them under
quotes
- Empty filter argument will cause it to print the whole table
- Multiple fields with the same name will cause it to print the column again
- In case there is a typo in the field, that column is skipped. It takes an
intersection of response dict keys and filter keys provided
- Uses opensource prettytable library to pretty print tabular data
TODOs:
- Handle recursive table printing for nested list of dicts
- Colorize table columns if community wants such a feature
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-20 16:33:08 -08:00
Brian Federle
da8f0be2e7
Merge branch 'master' into ui-plugins
2012-12-20 13:28:05 -08:00
Brian Federle
1a3ea28243
UI plugins API: addSection method
...
Adds 'addSection' method to UI plugins, which will add a new top-level
section. It follows the same syntax used by the existing sections in
the UI.
2012-12-20 13:27:37 -08:00
Brian Federle
977123be36
UI sections: Support per-section pre-filter
...
In addition to the main sectionPreFilter in the cloudStack UI, allow a
per-section 'preFilter' which is called if the navigation section is
not returned in sectionPreFilter. This is used primarily to support
plugin sections which will not be displayed by default.
2012-12-20 13:26:28 -08:00
Brian Federle
347ac311a0
UI Plugin: Use new format
...
Define plugins as namespaced objects instead of as function calls. This
is easier to implement and manage by the framework.
New format changes for defining plugins:
Now create 2 JS files in plugin folder:
-config.js
-[pluginName].js
plugins.js (listing) format:
cloudStack.plugins = [
'testPlugin'
];
config.js format:
cloudStack.plugins.testPlugin.config = {
title: 'Test Plugin',
desc: 'Sample plugin'
};
[pluginName].js format:
cloudStack.plugins.testPlugin = function(plugin) {
//
// Plugin code goes here
//
};
2012-12-20 11:55:44 -08:00
Rohit Yadav
5548d08fb6
api: Annotate missing systemvm api, annotate SystemVmResponse
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-20 01:37:36 -08:00
Fang Wang
d9718e82f2
api: Annotate some systemvm commands
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-20 01:37:36 -08:00
Min Chen
a88ce6bb7f
Remove IdentityProxy from CloudException and ExceptionResponse.
2012-12-19 23:49:44 -08:00
Edison Su
c216990e1c
trying to add code to download url into devcloud
2012-12-19 18:43:04 -08:00
John Burwell
264a0670a8
- [CLOUDSTACK-509] S3-backed Secondary Storage - Adds S3 configuration support to Marvin - Moves configuration of global options to occur creation of zones since the values of global options impact the configuration and zone enablement processes
2012-12-19 16:09:25 -08:00
Edison Su
8aaf5ba3a0
fix unit test
2012-12-19 16:01:58 -08:00
Brian Federle
59c77b4850
Add plugin loading functionality and basic framework
...
Dynamically load UI plugins via require.js
Plugin code uses the following format:
(function (cloudStack) {
var testPlugin1 = function(plugin) {
// Plugin code goes here
};
cloudStack.plugin({
id: 'testPlugin1',
title: 'Test Plugin 1',
desc: 'Sample plugin 1',
load: testPlugin1
});
}(cloudStack));
2012-12-19 15:47:25 -08:00
Rohit Yadav
eb2a7deddd
api: Annotate start,stop router cmds
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-19 15:19:46 -08:00
Brian Federle
f0a6e86e14
Add/style basic plugin listing
2012-12-19 15:04:47 -08:00
Brian Federle
11dbab0a6d
CSS: Cleanup formatting
2012-12-19 14:14:06 -08:00
Brian Federle
bd9bedac8a
Fix path for plugins.js
2012-12-19 14:03:31 -08:00
Brian Federle
eae7d43c2c
Merge branch 'master' into ui-plugins
2012-12-19 14:00:28 -08:00
Brian Federle
9b1c74e7f5
Add plugins section
2012-12-19 14:00:20 -08:00
Min Chen
98b022a430
Remove IdentityProxy from plugin response classes.
...
Signed-off-by: Min Chen <min.chen@citrix.com>
2012-12-19 13:09:02 -08:00
Edison Su
ad3b226ab2
fix test build
2012-12-19 12:08:58 -08:00
Edison Su
8214f18897
fix build, due to refactor rpc
2012-12-19 12:02:11 -08:00
Fang Wang
c4b600a8d1
api: Fix Validator annotation interface
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-19 11:57:13 -08:00
Min Chen
e397f23f6b
Revert "Guard null pointer exceptions."
...
This reverts commit fc56e29a3e .
Conflicts:
server/src/com/cloud/api/ApiResponseHelper.java
Signed-off-by: Min Chen <min.chen@citrix.com>
2012-12-19 11:23:09 -08:00
Kelven Yang
ea713c70a2
remove parent concept from AsyncCallbackDispatcher, let user of AyncMethod handle high level concept of chaining
2012-12-19 11:05:24 -08:00
Min Chen
1d729578d4
Remove IdentityProxy from Response classes.
...
Signed-off-by: Min Chen <min.chen@citrix.com>
2012-12-18 23:16:38 -08:00
Min Chen
fc56e29a3e
Guard null pointer exceptions.
2012-12-18 22:26:38 -08:00
Edison Su
0581ea763a
add xenserver backend code: download template from http directly
2012-12-18 18:34:13 -08:00
Rohit Yadav
7b6132e8e2
api: Skip empty uuid processing in ApiDispatcher for received params
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-18 18:16:18 -08:00
Rohit Yadav
3e292869eb
api: Annotate project API cmd and response
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-18 18:07:37 -08:00
Rohit Yadav
32ca9e2aa4
api: Annotate ListRoutersCmd, fix @Entity for Network,User,VPC Response
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-18 17:44:18 -08:00
Rohit Yadav
a9df2cb0f5
api: Fix NullPointerException for listProjects in ProjectJoinDaoImpl
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-18 17:44:18 -08:00
Rohit Yadav
434258080f
api: Fix NullPointerException in ApiResponseHelper for DomainResponse
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-18 17:44:17 -08:00
Rohit Yadav
22ee4200c3
api: Fix findByXId to findByUuid in EntityManager and ApiDispatcher
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-18 17:44:17 -08:00
Rohit Yadav
ba5fba939c
api: Fix method name findByXId to findByUuid
...
- findByXId is read as find using some external Id (used by external network devices for ex.)
- what we really need is findByUuid that finds a unique VO using a uuid string
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-18 17:44:17 -08:00
Kelven Yang
644b783110
Modify RPC callback style to be in consist with the latest AsyncMethod callback style
2012-12-18 17:09:56 -08:00
Min Chen
4b75132aa2
Remove IdentityProxy from Response classes.
...
Signed-off-by: Min Chen <min.chen@citrix.com>
2012-12-18 16:33:12 -08:00
Rohit Yadav
97d9fd01bd
api: Annotate network related api cmd and response classes
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-18 15:16:58 -08:00
Rohit Yadav
a6ce3b5450
api: Annotate Network device,offering,service apis
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-18 14:56:27 -08:00
Rohit Yadav
275208e175
api: Annotate phy network apis
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-18 14:47:27 -08:00
Rohit Yadav
9624a59d8e
api: Annotate host apis
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-18 14:32:30 -08:00
Kelven Yang
e6ac3fd199
Add chain support to AsyncCallDispatcher
2012-12-18 14:15:38 -08:00
Rohit Yadav
855ba0439f
api: Annotate cfg and hypervisorcapabilities apis
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-18 14:04:00 -08:00
Rohit Yadav
fb9db2b1b1
api: Annotate autoscale and cluster apis
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-18 13:59:11 -08:00
Rohit Yadav
6116f3a433
api: Annotate account apis remove IdentityMapper
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-18 13:49:23 -08:00
Rohit Yadav
e940562dca
api: Annotate domain apis
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2012-12-18 13:38:27 -08:00