Commit Graph

27 Commits

Author SHA1 Message Date
Alex Huang 25e4ed6997 more changes in the api 2010-10-21 16:53:42 -07:00
Alex Huang d5d8f27cad Added more changes to the api 2010-10-21 15:11:49 -07:00
Kris McQueen 3be625ca6e The stopVirtualMachine API should return the vm instance rather than a boolean indicating success. The response for async jobs is now under the jobresult property of the JSON response, handle the start/stop virtual machine responses using data from the jobresult rather than expecting some embedded object. 2010-10-18 11:15:07 -07:00
Kris McQueen 2740ba6c40 final merge of master->2.1.refactor preparing for merge back into master 2010-10-12 14:46:24 -07:00
Kris McQueen fbb5a109cc Fix return types for resetVmPassword and upgradeVirtualMachine commands. Fix response for resetVmPassword to be a vm rather than success/failure. Make sure the password is a transient variable for the resetVmPassword command so that the new password is returned to the user. 2010-10-06 18:29:27 -07:00
anthony 319d4f1aa0 snapshot redesign
1. use full snapshot and delta snapshot, there are maxsnashot/2 of delta snapshot between two full snapshot
2. only support one policy for one volume
3. remove all coleases in secondary storage.
2010-09-28 18:37:46 -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
alena 49143dbe4a Remove user vm from instance_group when empty string is passed as value for "group" parameter in updateVirtualMachine API. 2010-09-27 14:24:08 -07:00
alena b26ac321de bug 6177: Make VM group a first class object
1) Added new apis: createInstanceGroup, updateInstanceGroup, deleteInstanceGroup, listInstanceGroups
2) Group can be created using:
* createInsanceGroup api
* deployVirtualMachine/updateVirtualMachine commands (we create a group with name equal to "group" parameter value if the group doesn't exist already)
3) Group can be removed by:
* deleteInstanceGroup api
* when corresponding account is removed
4) Vm can be assigned to one group only. To move vm from one group to another, use updateVirtualMachine command with "group" parameter
5) Changed listVirtualMachines command to use "groupId" parameter instead of "group".

status 6177: resolved fixed
2010-09-14 19:08:01 -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 7249f168d5 more file changes 2010-09-09 13:27:20 -07:00
alena b0aa28032c Refactored DeleteIPForwardingRule/UpdateIPForwardingRule commands to new api framework. 2010-09-08 19:03:42 -07:00
alena c0185e713a Refactored AttachVolume/PrepareForMaintenance/CancelMaintenance/PreparePrimaryStorageForMaintenance/CancelPrimaryStorageMaintenance commands. 2010-09-08 12:18:46 -07:00
abhishek 2bdaaa48a6 Refactored the destroy vm command 2010-08-26 13:37:57 -07:00
Kris McQueen defae59126 Finish refactoring createTemplate to new API framework. The executor and result object from old framework still need to be deleted, but this commit moves all the business logic to the manager with validation in the createPrivateTemplateRecord and creating a snapshot if necessary in createPrivateTemplate. Additionally, added a find method on the template dao to check if the template name is in use for the account (this is part of the validation). 2010-08-25 18:26:38 -07:00
Kris McQueen 97f3068687 Work in progress refactoring createTemplate command to new API. The logic had been partially moved to the manager, still need to finish up moving the logic, then delete the unnecessary code. 2010-08-25 18:26:38 -07:00
abhishek 82fbae2553 Refactoring the detach volume command 2010-08-25 13:53:43 -07:00
abhishek dc45e9b08b Refactoring the rebootvm cmd 2010-08-20 11:48:24 -07:00
abhishek 49482e947b Refactoring another bunch of commands for vms 2010-08-20 10:38:44 -07:00
abhishek 25d5126f68 Refactoring the resetVmPassword command 2010-08-19 10:12:38 -07:00
abhishek 6ca1ceb769 Refactoring the startvm cmd 2010-08-18 15:38:02 -07:00
abhishek aa6e9ab2bb Refactoring the startvm command 2010-08-18 14:01:15 -07:00
abhishek 6f680375f3 Refactoring some more vm commands, as well as refactoring the account and user validation into a method. Please use the same for future validation calls 2010-08-17 11:28:23 -07:00
abhishek b5a6d81ffe Forgot to check this part in, for the UpgradeVmCmd 2010-08-12 14:28:24 -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