Kris McQueen
ea84f3bde2
registerTemplate and registerIso expect the template to be returned, not the template id...fixed
2010-10-07 15:10:02 -07:00
Kris McQueen
7c4a06a764
fix the method name for listIsos command
2010-10-07 15:10:02 -07:00
Kris McQueen
e18895f15b
account and domainid are required parameters when disabling an account
2010-10-07 15:09:28 -07:00
Kris McQueen
bef7998bbf
resolving merge conflicts between the documentation changes and other API refactoring work
2010-10-07 15:07:49 -07:00
Kris McQueen
335613a8a9
Add the mirrored property to the disk offering response
2010-10-07 15:03:47 -07:00
alena
e7b478f43d
Added descriptions for Api commands and corresponding requrest parameters
2010-10-07 14:46:29 -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
Kris McQueen
6db9f377a3
use the name of the configuration variable rather than the name of the command
2010-10-06 18:28:12 -07:00
Kris McQueen
1ae2273871
when updating the account, use the correct name for the updates
2010-10-06 18:27:46 -07:00
Kris McQueen
ec62ef3cd7
Injection doesn't work on private methods, restore the visibility of the methods so injection works.
2010-10-06 18:25:58 -07:00
Kris McQueen
9c593352d0
Fixing events for async jobs so that there's a scheduled event recorded with appropriate type/description whenever the API framework schedules the async command to run. A few miscellaneous fixes as well uncovered during regression testing (router response was not parsed correctly by UI, etc.)
2010-10-05 20:26:18 -07:00
Kris McQueen
24bd6a39e6
Fix the type of the id attribute in BaseAsyncCmd (it should be Long), deleteNetworkRuleConfig is async command again (this was a regression), misc event and account verification fixes
2010-10-04 10:36:44 -07:00
alena
136060e5cf
1) Finished XmlApiDoc writer. The program gets api classes from commands.properties.in file, and build Command objects with "name"/"description"/"request"/"response" fields. Request and response are represented by the list of arguments, each argument contains "name"/"description"/"isrequired" fields. The commands are being serialized to commands.xml using imported xstream library, and can be desiarialized later - it will help to compare commands from differemt product versions.
...
2) Added description() methods to Implementation and Param annotations.
2010-10-04 09:50:14 -07:00
alena
46a433d750
Incremental checkin for ApiXmlDocBuilder
2010-10-04 09:50:14 -07:00
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
5f2acc8cdd
Fixing API responses for user VMs (we need to return ipaddress rather than privateip) and domain routers (guestMacAddress != guestmacaddress for case sensitive string comparison)
2010-09-30 14:22:10 -07:00
Kris McQueen
bc2449a69a
If the session in invalidated due to a bad session key, just return to avoid the situation where the session is invalidated twice (which causes IllegalStateException)
2010-09-30 11:39:36 -07:00
Kris McQueen
0105aec338
Always set the response type on the command object so that the correct output is generated. Add both Strings and Longs to the login response (domainId and userId will be the Longs). Use the correct method name for ListSystemVMsCmd.
2010-09-29 17:32:19 -07:00
Kris McQueen
da660f2575
Change session parameters to be their actual type (domainId and userId are saved to the session as Longs and not Strings)
2010-09-29 15:18:43 -07:00
Kris McQueen
9e2d1f5e70
Refactoring disableUser and disableAccount to new API framework (they are both async commands).
2010-09-29 13:57:26 -07:00
Kris McQueen
95a7f20a0a
Adding in XML response serializing. Now the new API framework supports both XML and JSON responses the way the old framework did.
2010-09-28 17:36:27 -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
Kris McQueen
62257d4021
Fix serializing async job responses by writing a custom adapter for ResponseObjects. Improve exception handling when calling async commands (the job still needs to complete, but with FAILED status).
2010-09-24 13:52:35 -07:00
Alena Prokharchyk
9228088ce3
bug 6103: Made "capacity.skipcounting.hours" to apply only for Stopped vms. Introduced "capacity.skipcounting.destroyed.hours" config value that is used for vms in Destroyed state
...
status 6103: resolved fixed
2010-09-24 11:30:44 -07:00
Alex Huang
c48bd7cf63
revert console proxy
2010-09-24 10:33:04 -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
anthony
c9ae6fd09d
record used byte not available byte
2010-09-23 16:25:17 -07:00
abhishek
188711c18d
bug 6236: fixing some more api issues, this time with the stopped vm.
...
status 6236: resolved fixed
2010-09-23 16:21:10 -07:00
abhishek
24dd41f9d0
some api changes to enable vm functioning
2010-09-23 16:09:21 -07:00
abhishek
eee7c2c97e
bug 6212: returning a whole bunch of new params in the api response
...
status 6212: resolved fixed
2010-09-23 15:36:19 -07:00
abhishek
320df380c9
bug 6217: incremental fix for the vm api
...
bug 6217: resolved fixed
2010-09-23 14:56:25 -07:00
abhishek
29f8c5d94c
bug 6217: incremental checkin
2010-09-23 14:55:13 -07:00
abhishek
e0dcb95511
bug 6217: incremental checkin
2010-09-23 14:55:13 -07:00
abhishek
5d97c029bf
bug 6217: incremental checkin
2010-09-23 14:55:13 -07:00
alena
99165dc0a1
Fixed search by keyword in listRouters command - deleted displayName parameter from keyword list as it applies for user vms only
2010-09-23 11:09:41 -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
abhishek
703c182f8f
bug 6222: removing non needed attribs
...
status 6222: resolved fixed
2010-09-23 10:32:42 -07:00
abhishek
2d67815ddf
bug 6239: some changes to the router api
...
status 6239: resolved fixed
2010-09-23 10:23:03 -07:00
abhishek
29bf0cd718
bug 6238: fixing some api issues with the deploy vm cmd
...
status 6238: resolved fixed
2010-09-23 10:05:56 -07:00
anthony
abaa66f6e3
bug 6181: ingore provisioning factor for iscsi primary storage
...
status 6181: resolved fixed
2010-09-22 20:39:57 -07:00
abhishek
6f92235365
some more modifications to the ip selection logic in direct attached case
2010-09-22 16:12:31 -07:00
abhishek
32884572b9
bug 6241: incremental checkin
2010-09-22 15:32:42 -07:00
abhishek
242a55f120
bug 6271: Fixed the issue of us not iterating over all vlans, in the direct attached case. now, we consider all vlan ranges before we error out saying no ip address available
...
status 6271: resolved fixed
2010-09-22 10:58:12 -07:00
Alex Huang
91f77b6cc5
revert back console proxy manager for git push
2010-09-22 10:50:00 -07:00
root
979fcf8b78
finalized guru design
2010-09-22 10:44:00 -07:00
Alex Huang
0be5053c56
more changes
2010-09-22 10:43:59 -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