7991 Commits

Author SHA1 Message Date
kishan
9393ad410e Merge branch 'master' of ssh://kishan@git.cloud.com/var/lib/git/cloudstack-oss 2010-09-20 15:12:55 +05:30
kishan
b606d14396 Bug 5904: Included version in API header 2010-09-20 15:00:57 +05:30
nit
a39fad5da4 bug 3384: listVolumes: allowing regular user to make a search by "type".
status 3384: resolved fixed
2010-09-20 13:09:33 +05:30
nit
33e683e2c7 bug 4286: Making ExtractVolumeCommand async and some code cleanup 2010-09-19 18:34:12 +05:30
nit
3b8c811143 bug 4286: Making ExtractVolumeCommand async and some code cleanup 2010-09-19 18:33:47 +05:30
nit
1a30ffbdc0 bug 6055: createDiskOffering API - removed isMirrored and domainId parameters.
status 6055: resolved fixed
2010-09-19 16:13:13 +05:30
nit
2c1d4e53f4 bug 6178: Correcting spelling error from capcity to capacity.
status 6178: resolved fixed
2010-09-19 15:47:49 +05:30
Kris McQueen
e2e0e76063 More work on serializing responses. Now responses have to have the name set on them, and the name will eventually be serialized to the JSON/XML response the way it used to work for commands themselves [the result of cmd.getName() was written to the response string]. For list respones, we wrap the individual objects in a ListResponse object that has the name of the response, and the individual objects have the object name so that accounts will be something like <listaccountsresponse><account><...></account><account><...></account></listaccountsresponse>. 2010-09-17 17:13:04 -07:00
abhishek
1a37b661c7 code cleanup 2010-09-17 17:06:19 -07:00
abhishek
573885c615 bug 6203: changed the functionality for custom volume and disk offering creation
status 6203: resolved fixed
2010-09-17 16:59:40 -07:00
abhishek
a016aa27cd bug 6203: incremental fix 2010-09-17 16:59:40 -07:00
Kris McQueen
a5f50d236f Rearranging how response objects work since we need the response name when doing serialization. Now there's a base class that implements the getResponseName method, all responses extend this base class 2010-09-17 15:18:37 -07:00
Kris McQueen
4a73639d67 Fix up setting the response object correctly after dispatching the api method call. Begin working on the serialization of the responses which don't include the command name just yet, that's coming. 2010-09-17 14:56:55 -07:00
Alex Huang
8b417ff04c Changed Public network 2010-09-17 13:37:53 -07:00
Alex Huang
bebe79ebc9 more work from alex 2010-09-17 13:37:53 -07:00
Kris McQueen
1f4b2cfb06 Async commands need to have a start event id for event tracking. 2010-09-17 12:07:16 -07:00
Kris McQueen
d7b6ccd056 Comment out code in executors during the transition to the new API framework. The code is being left around for reference during testing/debugging of the new framework and will be removed in the future. 2010-09-17 11:13:29 -07:00
kishan
91d4715b4b Bug 5947: decrement resource count when deployVM fails for direct attached case 2010-09-17 18:19:10 +05:30
nit
48cd102ab9 Merge branch 'master' of ssh://git.cloud.com/var/lib/git/cloudstack-oss 2010-09-17 17:04:35 +05:30
nit
636dc041c7 bug 4286: Making extractIsoCmd and extractTemplateCmd async 2010-09-17 17:04:07 +05:30
nit
fceb9378ca bug 4286: Making extractIsoCmd and extractTemplateCmd async 2010-09-17 16:59:09 +05:30
Kris McQueen
19413d0bec Comment out executor code to make the branch compile. The executors will be removed after the branch has been thoroughly tested and regressions have been resolved, but in the mean time leave the code around so that it can be used to help debug any problems during the testing phase. 2010-09-16 19:09:04 -07:00
Kris McQueen
3f6a438d92 Refactoring the AsyncJobManager to queue jobs appropriately if there is a need to synchronize execution on an object, e.g. a router. API developers can now call command.synchronizeCommand(String, Long) to force the command to be synchronized on a particular object type [the string arg] with a particular id [the long arg]. When synchronizeCommand() is invoked, an exception maybe thrown by the framework (AsyncCommandQueued exception) to force the business logic to abort. The command will then be queued and invoked at the appropriate time. The synchronizeCommand() is re-entrant and will be a no-op if the command has already been queued and is now ready for execution. 2010-09-16 19:05:06 -07:00
Kris McQueen
83820075b3 removing some commented out code related to the old API framework that is no longer necessary. 2010-09-16 19:05:06 -07:00
alena
091b28a6b3 Modified addSecondaryStorage/addHost/updateHost/associateIpAddress/attachIso/copyIso/copyTemplate/deletePortForwardingService/startRouter/stopRouter/rebootRouter commands to new API framework. 2010-09-16 18:54:15 -07:00
abhishek
f1cab0525c bug 6021: blocking the deletion of private disk offering from the back end api 2010-09-16 16:47:35 -07:00
abhishek
3abe056736 bug 6141: fixed the error of not providing the right error for an incorrect diskoffering
status 6141: resolved fixed
2010-09-16 15:01:13 -07:00
abhishek
6731dc66f1 bug 3120: incremental checkin 2010-09-16 12:02:54 -07:00
Alex Huang
131e487c32 allocation complete. Moving on to actual create and deploy 2010-09-16 12:01:56 -07:00
anthony
7ca2adeb67 first host doesn't need to switch master 2010-09-15 21:24:52 -07:00
alena
6fef440732 Updated DeleteHost/DeleteIso/deletePool/UpdateDiskOffering/updateIso/updateTemplate/updateDomain to new api framework 2010-09-15 20:07:01 -07:00
anthony
ec8a2a9579 always add master host first 2010-09-15 19:56:06 -07:00
Alex Huang
e283bc7f05 no idea how these files were not committed 2010-09-15 18:00:55 -07:00
Alex Huang
84179cd561 add missing files 2010-09-15 18:00:54 -07:00
Alex Huang
327924a9ad More changes for refactoring 2010-09-15 18:00:54 -07:00
alena
ec47f83a4a Merge branch '2.1.refactor' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.1.refactor 2010-09-15 16:45:59 -07:00
alena
b49f63c28e Refactoring addConfig/deleteDiskOffering/deletePod/getCloudIdentifier/enableAccount/enableUser/enableAccount/updateUser/updateDiskOffering/updateConfig commands to new API framework 2010-09-15 16:41:38 -07:00
Kris McQueen
e18898ae4d Cleaning up some TODOs related to generating API command responses. Now that the ApiDBUtils class is available, setting things like domainNames is possible, so make use of that. 2010-09-15 16:22:55 -07:00
Kris McQueen
be6a4612a4 Cleaning up some TODOs related to generating API command responses. Now that the ApiDBUtils class is available, setting things like domainNames is possible, so make use of that. 2010-09-15 15:48:52 -07:00
abhishek
b2efa6872b a few more code cleanup tasks 2010-09-15 15:38:24 -07:00
abhishek
40db8f60e0 bug 6188: fixing the bug
status 6188: resolved fixed
2010-09-15 15:19:18 -07:00
Kris McQueen
8607fbe923 Cleaning up some TODOs related to generating API command responses. Now that the ApiDBUtils class is available, setting things like domainNames is possible, so make use of that. 2010-09-15 14:56:20 -07:00
abhishek
5720ac0e44 bug 6188: incremental checkin 2010-09-15 14:45:32 -07:00
alena
7d2a927973 Merge branch 'master' of ssh://git.cloud.com/var/lib/git/cloudstack-oss 2010-09-15 14:29:10 -07:00
Kris McQueen
496bcb9e85 Adding more db operations to the API utils class and removing them from ManagementServer. These methods delegate directly to the DAO and are cluttering ManagementServer with cover methods specifically for the API. Now that these methods are being moved to the API Utils class, ManagementServer has a smaller, cleaner API than before. 2010-09-15 14:25:21 -07:00
alena
8525992d41 Preparation for 2.1 to 2.2 DB migration: create instance group object if "vm_instance.group" field is not empty for user vm 2010-09-15 14:06:55 -07:00
ahmad
c02cde6775 applied fix suggested by Manuel for fixing rsa key generation on centOS 5.3 2010-09-15 13:48:44 -07:00
Kris McQueen
8bdb8f3581 Adding more db operations to the API utils class and removing them from ManagementServer. These methods delegate directly to the DAO and are cluttering ManagementServer with cover methods specifically for the API. Now that these methods are being moved to the API Utils class, ManagementServer has a smaller, cleaner API than before. 2010-09-15 12:16:00 -07:00
abhishek
652620363d bug 3120: reverting changes as still soliciting feedback on design 2010-09-15 11:52:31 -07:00
abhishek
a05dc480a7 bug 3120: incremental checkin 2010-09-15 11:18:04 -07:00