cloudstack/server/src/com/cloud
prachi 13cfa9660d Bug 11404 - VM was in Running state, had null for a pod_id, basically didnt allow creation of subsequent vm's
Reviewed-by: Alex

Changes:
- When management server starts, it goes through all the pending work items from op_it_work table and schedules HA work for each. It used to mark each item as done. Instead we should keep the item as pending and let it get marked as Done after the HA work is done.
- Changes in VirtualMachineMgr::advanceStop() :
a) if we find a VM with null hostId, we stop the VM only if it is forced stopped.
b) if VM state transition to Stopping fails,for state Starting and Migrating we try to find the pending work item and then do cleanup the VM. In case state is Stopping we can cleanup directly.
c) We proceed releasing all resources only if state transitioned to 'Stopping'.
- Changes in HA:
a) Depend on VirtualMachineMgr::advanceStop() in case host is not found to do VM cleanup
- When Vm state between mgmt server and agent syncs from starting -> running, mark any pending work item as done.
2011-09-15 18:56:20 -07:00
..
account Added more changes to the api 2010-10-21 15:11:49 -07:00
acl bug 11236: domainAdmin/regularUser can edit/delete/copy/extract Public template/iso only if it was created by them. They still can use/see public template/iso when execute list/deploy/attachIso commands. Root admin can operate with other people templates w/o any restrictions. 2011-08-24 14:48:22 -07:00
agent Bug 11404 - VM was in Running state, had null for a pod_id, basically didnt allow creation of subsequent vm's 2011-09-15 18:56:20 -07:00
alert 1) Increase working buffer size to 1M when downloading/uploading VMDK, hopefully can improve OVF exporting/importing performance. 2) use atomic SQL operation to get rid of global lock usage 2011-09-09 17:06:34 -07:00
api bug 11246: return lb rule Id in the async response for createLoadBalancer api 2011-09-13 12:06:46 -07:00
async bug 11196: fixed the code when gson serialization was done twice 2011-08-29 14:48:09 -07:00
baremetal Bug 11350 - Baremetal destroy instance doesnt power off machine 2011-09-12 14:17:18 -07:00
capacity bug 11237: 1) Remove capacity records when corresponding pod/zone is removed 2) On api layer check if zone exists before listing capacity record 2011-08-24 13:19:27 -07:00
certificate/dao Add license header to files 2011-04-14 11:23:14 -07:00
cluster Do agent disconnect when agent rebalance fails 2011-09-15 18:36:55 -07:00
configuration bug 11372: 2011-09-14 17:09:21 +05:30
consoleproxy bug 11360: make user_vm_details generic to all VMs instead of user-only VMs, VM details info will be carried down to hypervisor resource 2011-09-07 15:37:50 -07:00
dao Port forwarding rules and load balancing rules rewrite 2010-12-03 08:48:02 -08:00
dc Merge branch 'cvm' into 2.2.y 2011-08-19 16:08:35 -07:00
deploy bug 11219: use local storage flag from service offering when it is ROOT disk 2011-08-24 15:03:39 -07:00
domain bug 11036: resource count update is refactored 2011-09-13 10:47:55 -07:00
event throw exception after intercepting to log error event 2011-07-19 18:39:32 +05:30
ha Bug 11404 - VM was in Running state, had null for a pod_id, basically didnt allow creation of subsequent vm's 2011-09-15 18:56:20 -07:00
host/dao bug 11275: 2011-09-13 22:11:37 -07:00
hypervisor add VmwareInvestigator and VmwareFencer, use short worker VM name to avoid vCenter truncation 2011-09-14 15:14:36 -07:00
keystore Finalize custom certficate support. hook with UI 2011-04-22 13:45:09 -07:00
maint Use Long type for version comparsion 2011-03-22 11:07:11 -07:00
migration bug 10305: for a systemvm only applicable system vm offering should be displayed 2011-06-20 20:01:40 +05:30
netapp full opensource 2011-08-23 19:23:49 -07:00
network In inline SRX/F5 mode, collect outbound usage for LB rules from the SRX. 2011-09-15 14:47:40 -07:00
offerings Defined missing length field for VO classes 2011-08-17 15:10:07 -07:00
resource Bug 11430 - add host > Host Tags field missing from DB + UI even when host tags specified in add host 2.2.y -> 2.2.12 KVM 2011-09-14 10:45:03 -07:00
secstorage Move VMware/Premium Secondary storage VM to opensource 2011-08-23 14:33:05 -07:00
server bug 10435: use "hostName" instead of "name" as a search filed in listSystemVms 2011-09-14 11:01:21 -07:00
service bug 10681: for serviceOfferings, diskOfferings, templates/isos return records with not null Removed field on findById method call 2011-07-13 17:16:07 -07:00
servlet bug 11036: if resource_count record is missing for account or domain, insert it during the management server startup (with count=0) 2011-09-13 15:19:14 -07:00
storage bug 9777: introduce Error status for snapshot, if snapshot creation fails, it will be in Error status 2011-09-14 18:12:44 -07:00
template 1. added timeout in Command Class, then each command can configure itself timeout, if timeout is not configed, use the default timeout , which is 30 minute 2011-09-07 19:18:36 -07:00
test bug 11036: resource count update is refactored 2011-09-13 10:47:55 -07:00
upgrade bug 11199: Moved DB upgrade changes to schema-2211to2212-premium 2011-09-13 23:30:31 +05:30
usage full opensource 2011-08-23 19:23:49 -07:00
user bug 11190: My changes got reverted. Putting them back - Treating the max account limits with -1 values as infinite 2011-09-14 19:36:54 +05:30
vm Bug 11404 - VM was in Running state, had null for a pod_id, basically didnt allow creation of subsequent vm's 2011-09-15 18:56:20 -07:00