alena
6c3256d1e4
1) Return embedded objects for enable/disable/lock/update Account/User and updateDomain
...
2) Added "haschild" return parameter to Domain response.
3) Fixed updateDomain command - used to set domainname to "updatedomainnameresponse" value if no name was specified in the request. Added more logging for updateDomain command.
2010-11-01 23:49:57 -07:00
alena
5d4e4be974
1) Created ApiResponseHelper class - all api response objects should be built there.
...
2) Removed isMirrored tag from the update/create/listDiskOffering commands
2010-11-01 23:49:57 -07:00
abhishek
3bab616478
After discussing with Alex, it was agreed that there is no need to mgmt server level locking using the mgmt_server_id. This makes the code easier, as we have one parent acquire and release mechanism, and the complexity is reduced. In accordance, we do not need to maintain cleanup tasks for mgmt server crashes, as the async mechanism deals with this. Also, the schema becomes a tad simpler as the mgmt_server_id column is not needed anymore
2010-11-01 17:04:28 -07:00
edison
d9ba39bd8b
enable user to config default hypervisor type as vmware
2010-11-01 15:25:32 -07:00
Alex Huang
394af1b29c
more changes on the way
2010-11-01 15:01:28 -07:00
Alex Huang
cd1c903260
Better integration between it and virtual machine gurus
2010-11-01 15:01:28 -07:00
Alex Huang
4db0b7d156
Better integration between it and virtual machine gurus
2010-11-01 15:01:28 -07:00
abhishek
8e9d74c7f6
bug 5190: This covers the case of unforseen exceptions (although a corner case), which might pop up. We introduce a finally block which will release the cert db record for other ms to process, in case the owning ms errors out (not crash), whilst running the cert update process
2010-11-01 14:36:13 -07:00
abhishek
45f4499c14
bug 6836: fixing the api responses for disk offerings. We were using the wrong objext name, and were only returning success responses. Now, we are constructing the apt object and returning the entire object back.
...
status 6836: resolved fixed
2010-11-01 13:24:28 -07:00
Chiradeep Vittal
76c7b54fc5
fix problems after merging in bug fixes from 2.1.x
2010-11-01 12:27:15 -07:00
Chiradeep Vittal
40f15106be
when user vm migrates, update rules on destination host
2010-11-01 12:21:56 -07:00
abhishek
f70b55daa2
bug 6380: removing the code which returns hostid and hostname, as on a stopped vm, we do not have any association of the vm to the host
2010-11-01 12:16:53 -07:00
root
fe46ddfd63
bug 6806: changing the 'iso' to 'ISO' in all the error messages being thrown back from the API
...
status 6806: resolved fixed
2010-11-01 11:12:03 -07:00
root
bee976b5f5
bug 6779: returning the deviceId wherever possible, in the xxxVolume() calls
...
status 6779: resolved fixed
2010-11-01 11:12:03 -07:00
Chiradeep Vittal
ff91abbb86
fix build break
2010-11-01 11:05:22 -07:00
Chiradeep Vittal
1e0eb04442
Add VPN apis, some systemvm changes for vpn
2010-11-01 10:27:49 -07:00
abhishek
71f37ff1c7
This is another improvement over the existing code for custom certs. We should ideally validate the cert for being a valid cert file (X.509 spec), instead of persisting it to the db and then validating it whilst constructing the ssl context. I am adding some validation around the same.
2010-11-01 10:07:53 -07:00
abhishek
9b684443bb
bug 5190: Final commit to clean up an unused import, and to merge the changes with the master branch.
...
status 5190: resolved fixed
2010-11-01 09:09:18 -07:00
abhishek
c74fd77730
putting in final comments, so that the code to be checked in is better readable for others trying to understand it
2010-11-01 09:06:32 -07:00
abhishek
fbe2d288d7
adding some code comments
2010-11-01 09:06:32 -07:00
abhishek
b9cd3e2522
some more fine tuning around corner cases
2010-11-01 09:06:32 -07:00
abhishek
f3b4dd8a1c
further code modularization, extracting redundant code to common methods
2010-11-01 09:06:32 -07:00
abhishek
362e67d724
adding failover protection case for when the mgmt svr crashes in the middle of executing something; along with custom response for cert
2010-11-01 09:04:51 -07:00
abhishek
7b87aad660
fixed a bug in the listener flow; now handling the application of certs to existing cpvms and new cpvms based on a fork in the logic in the console proxy resource
2010-11-01 09:04:51 -07:00
abhishek
abd64eddd1
adding more exception handling and debugging support
2010-11-01 09:04:51 -07:00
root
3752a4eb31
making the logic more robust, testing more corner cases, improving efficiency and changing the schema
2010-11-01 09:04:51 -07:00
abhishek
9c80911e52
more changes
2010-11-01 09:00:58 -07:00
abhishek
d9ebb7147c
improving efficiency by reducing the number of db lookups, whilst updating the custom certificates across multiple console proxies when the command is issued. Now, we use in memory hashmaps for hosts to get the hostids for cphosts, which eliminates the need to make a db lookup for every cpvm that needs to be rebooted
2010-11-01 09:00:58 -07:00
abhishek
4d2e126ea1
more cpvm refactoring
2010-11-01 09:00:58 -07:00
kishan
b08037d22c
bug 6851: use specified account properties instead of admin, resourceType enum instead of type
...
status 6851: resolved fixed
2010-11-01 19:19:33 +05:30
kishan
3a0f30a049
bug 6408: remove security groups/port forwarding service in virtual network case
...
status 6408: resolved fixed
2010-11-01 14:28:03 +05:30
nit
1b88b0eae4
bug 6748: Correcting secondary storage space utilization on the dashboard. The fix will update the existing db entry and will create a new entry for the first time only.
...
status 6748: resolved fixed
2010-11-01 12:16:07 +05:30
edison
5c88bb936b
Oops, == doesn't work...
2010-10-29 19:51:24 -07:00
edison
d0c68cd4a7
add a timeout (5 minutes) to wait for KVM agent host connecting to mgt svr, during adding host->discover
2010-10-29 19:18:07 -07:00
Kris McQueen
24551eea3a
Add constants for API command parameter names and for API response parameter names. Update the commands with the new constants rather than custom strings. Update several of the responses with the constants. Not all the responses have been updated, this is still work in progress...
2010-10-29 17:20:40 -07:00
edison
f526a92b08
Only allow to attach a volume to a vm, when they are created by the same hypervisor.
2010-10-29 15:48:26 -07:00
Kris McQueen
a9349cb815
bug 6857: if the dispatcher recieves an IllegalArgumentException, bubble that up to the response so the caller gets a useful message
2010-10-29 14:07:23 -07:00
Kris McQueen
519633cd38
bug 6763: restore the volume lock when creating a snapshot for the volume to ensure only one thread is creating the snapshot at a time.
2010-10-29 13:53:00 -07:00
Kris McQueen
88dac13bb0
use the API response date format when serializing response objects
2010-10-29 13:23:29 -07:00
will
9cc5aaa978
Fixed listTemplates to use the template type.
2010-10-29 13:17:32 -07:00
Alex Huang
96a4aa6f2b
checkin to allow regular code path
2010-10-29 12:16:58 -07:00
Alex Huang
14f80f2e13
domain router up and running...now on to patching through the network between the domain router and the vm
2010-10-29 12:16:58 -07:00
anthony
b00a9174e2
always add master first when adding host
2010-10-29 11:07:51 -07:00
kishan
ad3c18a46c
bug 6789: release router lock after commiting transaction
...
status 6789: resolved fixed
2010-10-29 16:22:19 +05:30
Kris McQueen
ebac4539d0
it's possible createSnapshotDB will return null, handle that case. However, if createSnapshotDB returns null because there was no work to do (empty snapshot) we should probably throw an exception that reports that fact instead of returning null and throwing an internal error
2010-10-28 17:52:37 -07:00
Kris McQueen
642b8a56f4
If the create command returns null for whatever reason, throw an exception so it aborts scheduling the async job to act on the created object
2010-10-28 17:52:37 -07:00
Kris McQueen
640a3dc239
bug 6818: if the userAccount is null, the user is either removed or does not exist. Since we can't log them out in those cases, just skip saving the logout event (and hence avoid the NPE).
...
status 6818: resolved fixed
2010-10-28 17:52:37 -07:00
Kris McQueen
2f9e91a9ae
bug 6738: honor groupid when listing vms (restrict the list to just that group)
...
status 6738: resolved fixed
2010-10-28 16:27:07 -07:00
Kris McQueen
50a72d7f71
bug 6740: update the group for a VM if a group name is given
...
status 6740: resolved fixed
2010-10-28 16:27:07 -07:00
Kris McQueen
6435991086
bug 6782: somehow in my testing I missed this exception when creating the event for USER_DELETE. The change is to get the userAccount by 'idIncludingRemoved' just like getting the account. The proper userAccount object is returned and the event is successfully created.
...
status 6782: resolved fixed
2010-10-28 14:32:13 -07:00