Commit Graph

542 Commits

Author SHA1 Message Date
Kelven Yang 2c919c5c01 Make unique name conforming with the name generated in template installation for routing template, some other minor fixes 2010-10-15 16:36:02 -07:00
anthony d41f7d78d9 DeleteStoragePool command fix
1. not delete SR in xenserver side, only delete it in database.
    2. remove a storagepool,  adding it back fails
2010-10-15 14:15:55 -07:00
Kelven Yang 8555eb1913 Fix the broken ConsoleProxyServlet after the merge of API refactoring changes 2010-10-15 11:17:27 -07:00
Alex Huang 84d2a0c842 reverted back most of my changes to merge in Kris stuff. Thanks much to Anthony who caused my XenServer to reboot all the time which caused me unable to unit test stuff and unlike Kris, I do not check in code untested so now I have to do all this stuff. 2010-10-15 07:10:16 -07:00
Alex Huang bebf9dbc3f Adding stuff 2010-10-15 06:26:24 -07:00
Alex Huang b3da4cea1b Forcing me to commit because of stupid git 2010-10-15 06:22:59 -07:00
Kris McQueen 80090990a6 Fix configuration in light of new API framework. Move code from ConfigurationManager into ConfigurationServer for creating disk/service offerings, pods, and zones. This prevents the ComponentLocator from pulling in a lot of extra DAOs and Managers now that ConfigurationManager has a lot more dependencies due to API changes. Without making this change, there would be a dependency on ClusteredAgentManager in both config-server and mgmt-server, which would try to start two listeners on port 8250, which is bad. Now that the configuration happens in ConfigurationServer, things should be kept simple. 2010-10-14 19:11:22 -07:00
Kris McQueen 88814d95f0 A zoneId of -1 means all zones, so if zoneId is passed in as -1 just list all zones for registering the template 2010-10-14 19:11:21 -07:00
Kelven Yang f6e0d2dd41 Make system VM work on vmware 2010-10-14 17:23:13 -07:00
Kris McQueen e168760295 The code implies resource could be null, and yet de-references resource before the null check. As I was experiencing a NPE because if this exact scenario, put the remote agent check inside the check for null to avoid problems. If resource is null we log that we were unable to send ping due to agent disconnected... 2010-10-14 15:02:43 -07:00
anthony 39d30b9bf1 only send commands to host which is Up and Connecting 2010-10-14 11:35:48 -07:00
anthony 7115aa06bd send commands to host which is UP and connecting 2010-10-14 11:08:35 -07:00
anthony 9b839d749b only send command to host which is UP 2010-10-14 10:24:52 -07:00
anthony f7ec2ebc48 bug 6521: for add host, return api response, even if the host is in disconnected state
status 6521: resolved fixed
2010-10-14 10:20:48 -07:00
Kris McQueen d928a6f3d9 If storage pool is null after adding a pool, throw an exception so the user sees a problem adding the pool. This is better than the NPE that was happening... 2010-10-13 16:08:49 -07:00
Kris McQueen 5960911511 Fix processing of session parameters in logout case 2010-10-12 19:42:53 -07:00
Kris McQueen 8e086d7a21 resolving merge conflicts between 2.1.refactor and master 2010-10-12 16:28:16 -07:00
Kris McQueen 0f4a245f0a resolving merge conflicts before pushing to the remote repository 2010-10-12 15:37:50 -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
Alex Huang ce091de3d2 more changes for refactor 2010-10-12 07:17:47 -07:00
anthony 09cefaf3e9 bug 6500: add back the special handle for secodary storage host, it is in the same path of handling xenserver host, it is easy to break that, so I add some comments there
status 6500: resolved fixed
2010-10-11 12:05:13 -07:00
alena fb50fe624c * Added descriptions for Api command's request and response parameters.
* Changed response type for DeleteDomain and DeletePreallocatedLun commands to SuccessResponse
* Implemented small tool (ApiXmlDocReader) for comparing api commands of different product versions.
2010-10-11 09:21:42 -07:00
anthony 0c750aa8fa bug 6462: notifyMonitorsOfConnection of handleDirectConnect may fail, but it still returns the removed attach, and lauch ping task
status 6462: resolved fixed
2010-10-09 17:34:36 -07:00
anthony a93d36d81a should use _hostDao.listByCluster instead of _hostDao.listByPodId in some places 2010-10-08 18:10:15 -07:00
edison 2f39664f94 maybe it was an incorrect merge that snapshot was disabled for KVM
Re-enable it.
2010-10-07 18:56:42 -07:00
Kelven Yang 0d64b460f8 add vmware network configuration variables 2010-10-07 18:23:26 -07:00
edison 3028dab141 fix systemvm template in direct attached mode, guest vm can't get gateway and dns server 2010-10-07 16:32:46 -07:00
anthony 2861895a84 bug 6450: list all snapshot for admin
status 6450: resolved fixed
2010-10-07 15:35:58 -07:00
Kris McQueen 9e03518c94 fix return value of stopSystemVm (should be the vm, not a boolean); add the missing disableAccount API in management server to avoid a NoSuchMethod exception when disabling an account 2010-10-07 15:10:03 -07:00
Kris McQueen 45c611100a fix NPE when updating a resource limit using the internal API port 2010-10-07 15:10:03 -07:00
Kris McQueen 55201432f6 createServiceOffering had cpuSpeed passed twice when creating the offering rather than cpuNumber then cpuSpeed...fixed 2010-10-07 15:10:03 -07:00
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
anthony 48f1264a80 bug 6446: do not pass private, guest, public network in host_detail to CitrixResourceBase.configure
status 6446: resolved fixed
2010-10-06 18:16:19 -07:00
Kelven Yang d307b86b07 Temporarily add a blank system vm for vmware testing, explcitly check the ticket info in console access URL 2010-10-06 17:36:13 -07:00
Alex Huang 9d1270b35f console proxy started completely and running 2010-10-06 17:22:35 -07:00
anthony 0cb11027e9 back port from 2.1.x 2010-10-06 15:18:23 -07:00
Alex Huang b369103a87 reverted back to old console proxy code 2010-10-06 10:18:09 -07:00
Alex Huang 94a26d2038 Still needs to add mac address allocation but basically console proxy is started and running 2010-10-06 10:18:09 -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
Kelven Yang 3982bc0558 When storing job record, for domain routers, appoint its owner account in stead of system account 2010-10-05 13:48:09 -07:00
edison 1cd370fc36 hypervisor type for deployvmCmd is optional, only deploying blankvm
needs it.
2010-10-05 09:52:06 -07:00