256 Commits

Author SHA1 Message Date
kishan
36d7ee5634 bug 10372: Added Vm State Machine listener for usage events
status 10372: resolved fixed
2011-07-01 16:37:53 +05:30
Kelven Yang
1edf772f92 bug 10480, 10494: NPE fix in VirtualMachineManagerImpl, move keystore upgrade sql to upgrade225to226.sql 2011-06-28 15:00:34 -07:00
Kelven Yang
0059dd0e57 bug 10480, 10494: NPE fix in VirtualMachineManagerImpl, move keystore upgrade sql to upgrade225to226.sql 2011-06-28 14:57:02 -07:00
anthony
9b56ac973e host is stucked in prepareMaintenance mode if you put last host into maintenance mode,
fixed

Conflicts:

	server/src/com/cloud/vm/VirtualMachineManagerImpl.java
2011-06-27 11:36:10 -07:00
anthony
3ab96b99af host is stucked in prepareMaintenance mode if you put last host into maintenance mode,
fixed
2011-06-27 11:33:23 -07:00
alena
18dc85c765 Pass isForRebalance parameter to processConnect method of all the listeners - some listeners don't have to be notified when connection happens as a a part of Agent Rebalance process (VirtualMachineManagerImpl listener for instance) 2011-06-27 10:37:00 -07:00
alena
826f5eedf1 bug 10447: don't notify VirtualMachineManager listener when do host rebalance - vm sync is not needed in this case.
status 10447: resolved fixed
2011-06-27 10:37:00 -07:00
alena
41f12eb642 Pass isForRebalance parameter to processConnect method of all the listeners - some listeners don't have to be notified when connection happens as a a part of Agent Rebalance process (VirtualMachineManagerImpl listener for instance) 2011-06-27 10:20:41 -07:00
alena
0bf34f3612 bug 10447: don't notify VirtualMachineManager listener when do host rebalance - vm sync is not needed in this case.
status 10447: resolved fixed
2011-06-27 10:20:40 -07:00
Edison Su
28f0068151 add new option to force destroy vm when delete host, if the VMs are created on local storage 2011-06-23 20:36:13 -04:00
Murali Reddy
8eb9ee6a8b Bug 10377 - API listAccounts return vmtotal=-14 2011-06-23 17:31:38 +05:30
Murali Reddy
1bfe6d8d72 Bug 10377 - API listAccounts return vmtotal=-14 2011-06-23 17:28:09 +05:30
Abhinandan Prateek
4922eda764 bug 10062: reverting the change as the error can be due to several factors in deployment of domain router 2011-06-23 10:56:21 +05:30
Abhinandan Prateek
a1622d9f75 bug 10062: reverting the change as the error can be due to several factors in deployment of domain router 2011-06-23 10:41:37 +05:30
Kelven Yang
be38384e76 bug 10414: update VM sync logic and capacity management to sync VM state change initiated from external source 2011-06-22 18:25:35 -07:00
Kelven Yang
7f8b129dc5 bug 10414: update VM sync logic and capacity management to sync VM state change initiated from external source 2011-06-22 18:23:43 -07:00
Alex Huang
da402fdd35 added back @DB annotation 2011-06-21 10:44:46 -07:00
Alex Huang
07354b441c added back @DB annotation 2011-06-21 10:44:32 -07:00
Alex Huang
22e28b4941 bug 10368: better fix for the db connection problem. 2011-06-20 16:31:32 -07:00
Alex Huang
36ceb02abe removed useless manager declarations 2011-06-20 16:31:32 -07:00
Alex Huang
a58d730e34 bug 10368: Print out the hash code of the db connection instead of the toString(). Changed the transaction in changeToStart() method to be of a shorter interval so it won't cause so many db connection exceptions 2011-06-20 16:31:32 -07:00
Alex Huang
78d19f8690 bug 10368: better fix for the db connection problem. 2011-06-20 16:30:38 -07:00
Alex Huang
dc605655a0 removed useless manager declarations 2011-06-20 16:20:48 -07:00
Kelven Yang
50c1652172 bug 8996: make VMsync to track host change 2011-06-20 16:13:46 -07:00
Kelven Yang
7279dad925 bug 8996: make VMsync to track host change 2011-06-20 16:12:33 -07:00
Alex Huang
e4f42d0e52 bug 10368: Print out the hash code of the db connection instead of the toString(). Changed the transaction in changeToStart() method to be of a shorter interval so it won't cause so many db connection exceptions 2011-06-20 11:30:23 -07:00
Alex Huang
9d4311cc0a bug 10352: fixed the issue. I mistakenly threw an exception when I was not suppose to 2011-06-17 17:18:28 -07:00
Alex Huang
36ee97334b bug 10352: fixed the issue. I mistakenly threw an exception when I was not suppose to 2011-06-17 17:18:04 -07:00
Kelven Yang
2a6307f272 1) Remove customer field applied to virtual machine in VMware. 2) always track VM host change in VMware regardless whether or not native HA is enabled 2011-06-16 16:22:11 -07:00
Kelven Yang
464d793754 1) Remove customer field applied to virtual machine in VMware. 2) always track VM host change in VMware regardless whether or not native HA is enabled 2011-06-15 18:37:38 -07:00
Abhinandan Prateek
61cdbd0e1f bug 10062: better error message
status 10062: resolved fixed
2011-06-15 09:56:42 +05:30
Abhinandan Prateek
db94ece73b bug 10062: better error message 2011-06-15 10:05:45 +05:30
Alex Huang
59fc206664 bug 10260: propagate ha and deployment planner fixes 2011-06-13 17:33:10 -07:00
Alex Huang
63113661d1 bug 10260: propagate ha and deployment planner fixes 2011-06-13 17:33:09 -07:00
Alex Huang
d39048faca bug 10260: propagate ha and deployment planner fixes 2011-06-13 17:33:09 -07:00
Alex Huang
1ac7276942 bug 10260: propagate ha and deployment planner fixes 2011-06-13 17:36:32 -07:00
Alex Huang
1561275838 bug 10260: propagate ha and deployment planner fixes 2011-06-13 17:35:34 -07:00
Alex Huang
1d7e70acd1 bug 10260: propagate ha and deployment planner fixes 2011-06-13 17:35:20 -07:00
Sheng Yang
0c92bf5b79 Some build fixes and code refactoring for redundant router 2011-06-07 14:47:46 -07:00
Sheng Yang
62ac899091 bug 9154: Initial check in for enabling redundant virtual router
This patch enable redundant virtual routers.

1. To enable this feature, db need to be updated using follow SQL by now(we
would get a UI way later):

UPDATE network_offerings SET redundant_router=1 WHERE guest_type="Virtual" AND
system_only=0;

2. System would try to start up two routers at different hosts. But if there is
only one host in the zone, system would start up two routers on it.

3. The failover part is using keepalived, and connection tracking part is using
conntrackd. There would be one master router and one backup router. The status
of router(master or backup) can be query from the database table domain_router
now. Management server would update the status every 30s by default.

4. The routers for the same zone would use same external NIC(same ip and mac).
The script used for fail-over would ensure only one external NIC present in the
network at any time.

5. Currently management server don't got the ability to stop one of router is
both of them reported as master. The feature is in the todo list.

After two routers start up, disconnect anyone of them, the guest network
shouldn't be affected, and established connection(http, ssh, etc.) should still
works. The fail-over on gateway part should be 3~4 seconds.

Currently the patch works with KVM. Would deal with vmware and XenServer soon.
2011-06-07 14:47:45 -07:00
Alex Huang
d9e0bcfa1e bug 10126: Renamed getPodId() to getPodIdToDeployIn() 2011-06-03 22:17:08 -07:00
Alex Huang
2ceadec326 bug 9651: tags parameter added to createnetwork 2011-06-01 17:36:14 -07:00
Frank
9961e1ca2a Fix NPE when reboot vm
vm.podId has different meaning than you think
2011-06-01 11:54:20 -07:00
Alex Huang
e552f118af propagated bf8afdbc7af3c0e9fbc90c841fedec57ac7b8cdf 2011-05-17 16:02:44 -07:00
Alex Huang
ea9703997b proxy agent 2011-05-17 07:12:58 -07:00
Abhinandan Prateek
029a9e6a8a bug 9815: ClassCastException: com.cloud.agent.api.Answer cannot be cast to com.cloud.agent.api.StopAnswer
status 9815: resolved fixed

The type cast should be done after making sure that the command was successful. Otherwise you may have the base Answer returned.
2011-05-10 11:41:20 +05:30
prachi
4c89cc57ae Bug 9652: Need to provide a way to specify deployment plan during VM start
Changes:
- Throw an exception if the deployment plan passed into start() cannot be satisfied by the current constraints (such as root volume is already created in a pool in a different
cluster).
2011-05-06 14:39:53 -07:00
Alex Huang
7bc25643a9 propagating fix from 2.2.4 2011-05-05 17:57:06 -07:00
Alex Huang
117a81acf6 cleanup agent manager 2011-05-05 17:57:06 -07:00
prachi
9aba817256 Bug 9652: Need to provide a way to specify deployment plan during VM start
Changes:
- Added a new parameter to pass in deployment plan during vm start
- If a hostId is passed in to the DeployVMCmd (only allowed for a root admin to test a host), a plan is passed in to start the vm in that host's datacenter, pod and cluster and on that host
- If a plan is passed in during start, but if the VM's root volume is READY, then plan of the root volume takes precedence. In that case the plan passed in is not used.
2011-05-04 15:02:52 -07:00