Commit Graph

186 Commits

Author SHA1 Message Date
Koushik Das 16b30c0966 Fix CS-15603. When a VM is force deleted and the host is not available then CS simply marks the state in db as "Destroyed/Expunging". The VM is still running on the host and once it becomes available again there is a discrepancy in state of the VM. In this scenario the VM is removed from the host when the next full cluster sync happens.
Reviewed-by: Abhi
2012-07-19 16:03:53 +05:30
Edison Su 81a57b2be8 bug CS-15543, resolved fixed 2012-07-11 12:31:08 -07:00
prachi 8516186db1 Bug 13824 - VM Deployment: If Root Volume is Ready, Planner should reuse the storagepool until cluster has capacity
Reviewed-By: Alex

Changes:
- Reuse the same storagepool where the Volume is ready on each retry of VM deployment until the cluster where the volume is has capacity
- After the cluster is out of capacity, we look in other clusters and find a new storagepool.
- At this point if the volume is recreatable on the new storagepool, depoyment will succeed provided everytyhing else goes through
- But if the volume is not recreatable and its cluster is out of capacity, we will still fail to deploy the VM

Conflicts:

	server/src/com/cloud/vm/VirtualMachineManagerImpl.java
2012-02-16 17:20:54 -08:00
abhi 11d37d1a23 bug 13549: cleanup stopped/starting VMs if present on host during MS startup 2012-02-10 09:52:18 +05:30
abhi ca6fd0b92c bug 13439: full sync at management server restart, disabling hourly sync 2012-02-06 13:57:36 +05:30
abhi c4adad34c6 bug 12849: cleanup logs, moved vm.getNameLabel(conn) before vm is removed, reverted fb277a2bd0934d13022a90565ad902318afa6f53 2012-01-27 20:25:48 +05:30
abhi 04adac0a06 bug 12875: a starting VM can be discovered as running if a disconnected host connects back 2012-01-18 12:06:56 +05:30
Abhinandan Prateek 17b1324284 bug 12189: bringing vm sync at par with master fixes 2012-01-06 17:59:42 +05:30
Abhinandan Prateek 59a48ce59d bug 11910: no need to do full sync as first thing after connect 2011-11-29 11:35:11 +05:30
Abhinandan Prateek 09e3e2e2ff bug 11910: full sync will only stop unknown VMs on agent 2011-11-23 17:18:51 +05:30
Abhinandan Prateek 6ced772ce8 bug 11910: avoid Starting to Running state changes during full sync, as the VM startup process does not like it 2011-11-17 14:30:25 +05:30
Abhinandan Prateek 89d046a62b bug 11987: changing virtualmachineimpl to reoccuring listener
reviewed-by: nitin
2011-11-11 19:22:56 +05:30
Abhinandan Prateek 02c97f90ce bug 11910: during full sync ignoring VMs which have been into starting state shortly
reviewed-by: kishan
2011-11-10 11:59:08 +05:30
Abhinandan Prateek 852679cea9 adding mroe info to warn message 2011-11-04 11:53:14 +05:30
Abhinandan Prateek c1eaef18c1 bug 11678: moving initialization to the configure methog 2011-11-03 15:26:54 +05:30
Abhinandan Prateek 15a8c015ea bug 11678: added vm.destory.forcestop config var to set force when destroying a vm 2011-11-02 17:47:08 +05:30
Abhinandan Prateek b81c380f86 bug 11701: cluster sync only for Xen, old way of syncing for other Hypervisor 2011-10-28 11:45:15 +05:30
Abhinandan Prateek edbce41065 bug 11701: cleanup, and vm host sync on delta 2011-10-27 16:23:04 +05:30
Abhinandan Prateek 2f5adb0baf bug 11701: cleanup of spurious message 2011-10-19 13:44:05 +05:30
Abhinandan Prateek 8ee0fd700b bug 11701: putting the intervals in Config 2011-10-18 14:41:35 +05:30
Abhinandan Prateek b15b0ddd0f bug 11701: separating vm sync from ping and doing it per cluster from pool master 2011-10-17 18:31:00 +05:30
prachi 25196871b9 Bug 11169 - Couldn't deploy a router because the host it existed on is in Maintenance.
Changes:
- VirtualMachineMgr puts the constraint that if Root volume is already READY, we provide the clusterId in the plan to the deploymentPlanner. Planner then searches for resources only under that cluster.
- If no deployment could be found, deploying VM fails.
- Fixed this, such that incase the root volume is recreatable, we call the planner again by removing the cluster constraint. Planner will then search for resources in other clusters.
- Works for system VMs(SSVM, consoleproxy, virual routers).
2011-10-05 18:31:35 -07:00
prachi 97bdb58b6d 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:47:05 -07:00
prachi c5199dd328 Bug 11457 - NullPointerException while synching VM state from Starting -> Running between management server and agent
Reviewed-by: Kelven and Alex

Changes:
- Added log statements about the podId during deploying a VM.
2011-09-15 16:11:51 -07:00
prachi 0aec7560bb Bug 11457 - NullPointerException while synching VM state from Starting -> Running between management server and agent
reviewed-by: Alex/Kelven

Changes:
1.	UserVmManagerImpl :: finalizeStart()
Added null check for the cmds.getAnswers() object. Return ‘true’ if null.

2.	VirtualMachineManagerImpl :: advanceStart()
Move the line to set PodId to the vm being started above the state transition where hostId gets set, so that podId is not null in case management server goes down when vm starts on the agent. On restart, podId is not updated during fullsync. So this will prevent podId remaining null.

vm.setPodId(dest.getPod().getId());
2011-09-15 16:11:50 -07:00
Kelven Yang 8c56bfffbc add VmwareInvestigator and VmwareFencer, use short worker VM name to avoid vCenter truncation 2011-09-14 15:14:36 -07:00
Kelven Yang bf814aeadd bug 11263: only update host Id when VM is in running state when detected external VM migration 2011-08-26 16:27:42 -07:00
Kelven Yang c312ad4b99 bug 11208: use cleanup instead of scheduling to stop based on server state 2011-08-22 17:36:11 -07:00
Kelven Yang 773065de9e bug 11208: When agent reported state is out of sync with CloudStack, stop VM when its state in CloudStack is not in Running or Migrating 2011-08-22 16:38:36 -07:00
Edison Su ea102aa045 add host guid in migrate command 2011-08-18 11:03:40 -07:00
frank 523a32edaa Fix baremetal planner reply to non-baremetal VM when migration 2011-08-18 10:14:16 -07:00
Abhinandan Prateek 2df6e5cc69 fixed execptions while adding second host 2011-08-18 16:26:00 +05:30
Kelven Yang a9c67d23fa bug 11099: Let VM sync to cooperate with migration process 2011-08-16 15:23:01 -07:00
Kelven Yang 9e1ee30ea3 bug 11019: Let VM sync to coordinate with possible VM-relocation under VMware when VM is in starting time 2011-08-11 14:28:39 -07:00
Alex Huang 1079a77024 bug 11043: rverted the bad fix 2011-08-11 10:27:02 -07:00
anthony dc7ff2b5ad Bug 10197:
implement pool-wise VM sync,
    For XenServer, VM fullSync is pool-wise now, VM deltaSync is still per host
2011-08-02 16:52:24 -07:00
anthony 5f9884d97a Bug 10197:
1. don't try HA vms if host hypervisor version changes
    2. fixed a bug related to VM full sync with hosttrack enabled
2011-08-02 16:48:27 -07:00
Alex Huang f043f63eaa Merged changes from 2.2.8.zucchini 2011-08-02 15:33:48 -07:00
Alex Huang 79ddba246d Revert "looks like lock tables don't return the tables locked"
This reverts commit 76781c10f8534acdd6f81c46952f88ade941e269.
2011-08-02 03:48:57 -07:00
Alex Huang 91550836cf looks like lock tables don't return the tables locked 2011-08-02 02:10:47 -07:00
anthony 31100824d7 Bug 10197: if VM is already running, just return the host it is running on 2011-07-29 16:33:33 -07:00
anthony d48e97a368 bug 10768: root cause is StopCommand is not sent out in force stop,
status 10768: resolved fixed
2011-07-29 15:41:00 -07:00
Alex Huang 200d2b9cd0 bug 10847: sg got executed in a big transaction leading to the deadlock 2011-07-25 17:41:11 -07:00
anthony d4ae9483cb bug 10768: root cause is StopCommand is not sent out in force stop,
status 10768: resolved fixed
2011-07-20 12:11:21 -07:00
kishan 427b73a2b9 bug 10372: Added Vm State Machine listener for usage events
status 10372: resolved fixed
2011-07-20 11:13:56 +05:30
Sheng Yang fa623c04e2 bug 10640: Redundant virtual router: Try to deploy the second virtual router to different pod/cluster/host/storagepool
The old strategy is to deploy the second virtual router to diffent host only.

status 10640: resolved fixed
2011-07-19 15:06:15 -07:00
Sheng Yang 4bc8686513 bug 10429: Backport redundant virtual router
Part 1

This backport contained:

commit 52317c718c25111c2535657139b541db0c9d1e1f
    bug 9154: Initial check in for enabling redundant virtual router

commit 54199112055d754371bfb141168fb5538bf6d6ea
    Add host verification for CheckRouterCommand

commit cef978a228c90056ead9be10cbc4de74c2b8de76
    Fix CheckRouterAnswer's isMaster report

commit 4072f0a6991ac3b63601a1764fbe14188965f62f
    Some build fixes and code refactoring for redundant router

commit 4d3350b7cd8ee2706a9bace4437fc194e36c8dd5
    Redundant Router: Fix OVS

commit 6a228830e7c46d819fa0c3317e159e041337e887
    Fix findByNetwork()/findByNetworkAndPod()'s return

commit c627777b3d5bdbcd60db4032cebd349a5b1ecd83
    Redundant Router: Fix isVmAlive()

commit e1275d2514adc41f8744f5107d4069c38be195f1
    Only issue CheckRouterCommand to redundant routers

And all modification to the scripts till
commit 4e3942462ed3fde3a3d7011e95839e2128fba514
logging changes

in the master branch.
2011-07-18 18:29:56 -07:00
alena 25206e6257 bug 10681: for serviceOfferings, diskOfferings, templates/isos return records with not null Removed field on findById method call
status 10681: resolved fixed
2011-07-13 17:16:07 -07:00
Alex Huang fb8c3c032a find templates that are not removed 2011-07-09 13:37:26 -07:00
Alex Huang b23c2a3c53 bug 10447: don't set the reservation id to null 2011-07-08 11:36:30 -07:00