50 Commits

Author SHA1 Message Date
Kris McQueen
41a16a478a Fixes required for regressions found running automated tests. (1) method signatures that weren't properly refactored to new API framework (2) API request parameter types should always be specified lest they default to String which may or may not be desired (3) better exception handling with regard to Queued commands and generic exceptions (4) fix eventing to pass the proper accountId where neccessary 2010-10-01 14:11:18 -07:00
Kris McQueen
848ce60097 Merging master into 2.1.refactor, resolve the merge conflicts as best I can. New commands related to extracting template/iso/volume and related to instance groups were refactored to the new API framework. 2010-09-28 15:47:14 -07:00
Alex Huang
42986f43ba removed service offering from storageallocator 2010-09-24 10:27:02 -07:00
Kris McQueen
2a4ddac41a Change getResponse() to return a ResponseObject so that the caller can choose how to serialize. This in in preparation for serializing the async commands to the database with class information and deserializing them into the ResponseObject itself when queryAsyncJobResult is called. Once the ResponseObject is deserialized, the proper string can be returned to the caller.
The previous behavior had the JSON response from the command embedded into the queryAsyncJobResult response as a string rather than a JSON object which prevented the client from being able to read the response.  With this new behavior an actual JSON object should be returned which can then be parsed on the client side.
2010-09-23 17:34:28 -07:00
alena
0f2f356874 bug 6277: listVirtualMachines with group=-1 would return all vms that don't belong to any group. As a part of the fix, changed Dao layer to be able to make different types of Joins - Inner, Right, Left, etc.
status 6277: resolved fixed
2010-09-23 10:43:17 -07:00
root
979fcf8b78 finalized guru design 2010-09-22 10:44:00 -07:00
Alex Huang
c0d8422d69 more changes 2010-09-22 10:43:59 -07:00
Alex Huang
22652e7ace got the vm created 2010-09-22 10:43:59 -07:00
Alex Huang
8acba8fbd1 more checkins 2010-09-22 10:43:59 -07:00
Alex Huang
286e78c849 moved account id, service offering id, and domain id into isntance 2010-09-22 10:43:59 -07:00
anthony
fb628a1929 add rate limit for system VM, after you change rate limit, you need to restart managementserver to make it effect 2010-09-21 12:25:53 -07:00
abhishek
437f717633 bug 3120: incremental checkin 2010-09-20 14:54:06 -07:00
Alex Huang
bebe79ebc9 more work from alex 2010-09-17 13:37:53 -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
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
Alex Huang
131e487c32 allocation complete. Moving on to actual create and deploy 2010-09-16 12:01:56 -07:00
Alex Huang
327924a9ad More changes for refactoring 2010-09-15 18:00:54 -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
root
76e5cf3321 renamed dao methods to correctly reflect what they do 2010-09-09 18:01:50 -07:00
root
077690cf15 switched from networkprofile to network configuration 2010-09-09 17:48:24 -07:00
alena
3659b7b207 Code cleanup - deleted code that was commented out and unused imports. 2010-09-09 16:07:29 -07:00
Alex Huang
5d185ad82f removed network profile creation 2010-09-09 14:45:16 -07:00
Alex Huang
7249f168d5 more file changes 2010-09-09 13:27:20 -07:00
Alex Huang
6134f7dfd2 more file changes 2010-09-09 11:52:12 -07:00
alena
44f86d3726 Refactored AssignPortForwardingServiceCmd and DeletePortForwardingServiceCmd 2010-09-08 20:06:15 -07:00
alena
b0aa28032c Refactored DeleteIPForwardingRule/UpdateIPForwardingRule commands to new api framework. 2010-09-08 19:03:42 -07:00
alena
5170c215f8 Refactored DeleteLoadBalancerRule/UpdateLoadBalancerRule api commands. 2010-09-08 15:04:26 -07:00
alena
41000e61d3 Refactored copyIso/copyTemplate/attachIso/startRouter/stopRouter/rebootRouter commands 2010-09-07 18:53:04 -07:00
Kris McQueen
931706ad87 Refactor listPortForwardingRules to new API framework. Clean up imports. 2010-09-01 15:00:22 -07:00
alena
53892037c4 Refactored associateIPAddress and updateHost commands. 2010-08-30 15:22:42 -07:00
abhishek
dc750e2691 Moving the disassoc logic to network manager 2010-08-30 10:50:27 -07:00
Kelven Yang
7eb61b705a Allow NetworkManagerImpl and SecondaryStorageImpl to tolerate missing of system vm template at startup 2010-08-27 16:32:03 -07:00
abhishek
0ea56e1504 refactored the delete port forwarding service rule cmd 2010-08-27 10:22:11 -07:00
jessica
895fb85162 check in for Alex. 2010-08-24 15:48:40 -07:00
Alex Huang
415bc8ae20 bug 5764: checkin before I switch to work on 2.1.x 2010-08-24 14:40:29 -07:00
Alex Huang
20b26082db bug 5764: changing from networkoffering to network profile 2010-08-24 00:00:43 -07:00
Alex Huang
e0165dd2ef my changes 2010-08-23 13:59:23 -07:00
abhishek
c200375b0f Refactoring RemoveFromLoadBalancerRuleCmd 2010-08-19 11:59:56 -07:00
Alex Huang
b250b985ec changes 2010-08-18 12:19:22 -07:00
alena
e2950eb5a1 Merge branch '2.1.refactor' of ssh://git.cloud.com/var/lib/git/cloudstack-oss into 2.1.refactor
Conflicts:
	server/src/com/cloud/api/BaseCmd.java
	server/src/com/cloud/network/security/NetworkGroupManagerImpl.java
2010-08-18 11:36:05 -07:00
alena
3d85fdf687 API refactor 2010-08-18 11:24:29 -07:00
kishan
d202ce4c7a Issue #: 5775
Release vnet and private IP allocation when domR fails to start
2010-08-18 19:43:16 +05:30
kishan
ef41ebc9ec Check for null vnet when allocation fails 2010-08-18 13:54:53 +05:30
Kris McQueen
82d6edcdf3 Refactoring CreateIPForwardingRule and CreateLoadBalancerRule to new API framework 2010-08-17 19:07:00 -07:00
Kris McQueen
a6c34d422c Work in progress for modifying createPortForwardingRule command.
- some of the logic has been moved to manager
  - some annotations have been added for the command itself
2010-08-17 19:07:00 -07:00
Kris McQueen
0c644a5ccb Add EventUtils to consolidate the creation of events and make it usable from all managers (there were some private methods in ManagementServerImpl). Add some validation logic to AssignToLoadBalancer implementation in NetworkManagerImpl. 2010-08-11 16:53:03 -07:00
Manuel Amador (Rudd-O)
14ae76781e Committing Kris' big merge 2010-08-11 16:02:57 -07:00
Manuel Amador (Rudd-O)
ac730ec496 Branch 2.1.refactor committed 2010-08-11 09:13:42 -07:00
Manuel Amador (Rudd-O)
05c020e1f6 Source code committed 2010-08-11 09:13:29 -07:00