Commit Graph

3333 Commits

Author SHA1 Message Date
Edison Su 96afeaf38f bug 10624: copyvolume needs to put ".qcow2" at the end of the file
status 10624: resovled fixed
2011-10-05 17:48:22 -07:00
Edison Su 0f76c1fa24 bug 11600: aquirelock before deleting a volume, which can be aquired by snapshot manager
status 11600: resolved fixed
2011-10-03 16:40:59 -07:00
prachi 17eb55cd10 Bug 11617: Ensure the Deployment planner is choosing clusters based on aggregate capacity
Changes:
- We were ordering clusters based on capacity of the first-fit host found in each cluster. Due to this, there were cases where we deployed VMs to one cluster instead of balancing off within clusters.
- Now we order the list of clusters by aggregate capacity and choose the ones that have enough capacity for the required VM in this order.
- This should balance the load between clusters instead of bombarding one.
2011-10-03 15:22:01 -07:00
prachi 2f19599fe9 Bug 11481 - get manual live migration working with all VMs
Changes:
- Added a new API  'migrateSystemVm'  backed by MigrateSystemVMCmd.java to migrate system VMs (SSVM, consoleproxy, domain routers(router, LB, DHCP))
- This is Admin only action
- The existing API 'migratevirtualmachine' is only for user VMs

Conflicts:

	api/src/com/cloud/api/ResponseGenerator.java
	api/src/com/cloud/api/commands/ListHostsCmd.java
	api/src/com/cloud/server/ManagementService.java
	api/src/com/cloud/vm/UserVmService.java
	server/src/com/cloud/api/ApiResponseHelper.java
	server/src/com/cloud/server/ManagementServerImpl.java
2011-09-29 18:11:08 -07:00
anthony 0bdd6ded96 timeout is not set for some commands 2011-09-29 12:17:08 -07:00
alena 3b652f25bf bug 11603: for OSS build - update guru_name from GuestNetworkGuru to ExternalGuestNetworkGuru.
status 11603: resolved fixed
2011-09-29 10:40:57 -07:00
alena 4cea75ba46 bug 11589: don't fail deleteVpn command when domR is in Stopped state.
status 11589: resolved fixed
2011-09-29 10:20:40 -07:00
anthony 59bb2e0289 bug 10579: disable pool vm sync and disable hostTrack for XenServer,
status 10579: resolved fixed

reviewed-by: alex
2011-09-28 20:47:49 -07:00
Sheng Yang 1ef78e4db2 Use router's redundant state to check rather than using global config 2011-09-28 16:50:24 -07:00
kishan ff7fc32949 bug 11581: During router start, create iptables NETWORK_STATS chain before adding rules for additional public interfaces into that chain
status 11581: resolved fixed
reviewed-by: Chiradeep
2011-09-28 16:48:38 +05:30
Kelven Yang 6fdbd309c3 bug 10971: support vSphere 5 2011-09-26 12:15:26 -07:00
alena 73218e51f1 bug 11555: Fixed NPE happening during LB rule cleanup in case when createLB fails
status 11555: resolved fixed

Reviewed-by: frank@cloud.com
2011-09-23 11:01:31 -07:00
alena d8e806748f bug 11550: rolled back the changes done to ConfigurationServerImpl during the resourceLimit refactor as it was leading to System/Admin account not being inserted to the DB
status 11550: resolved fixed
2011-09-23 09:41:56 -07:00
Sheng Yang ac5fd72ded bug 11541: Change CheckRouterCommand timeout from default 10 minutes to 1 minute
Reviewed-by: Anthony Xu

status 11541: resolved fixed
2011-09-22 19:22:09 -07:00
Kelven Yang 4e84804f1f bug 11531: forget to include newly added JUnit test along with the fix, here it is 2011-09-22 16:21:15 -07:00
Kelven Yang ad8f967503 bug 11531: while taking snapshot on volume, if volume is attached to a VM instance and under VMware, check if there are other ongoing snapshot tasks for the VM instance. 2011-09-22 16:19:40 -07:00
Edison Su 5b66200eea bug 11513: another customer hits the same issue by associate ip in the basic zone
Reviewed-by: alena@citrix.com
2011-09-22 15:03:37 -07:00
Edison Su c2b0b4be2f bug 11513: add more log in the cleanup network
Reviewed-by:alena@citrix.com
2011-09-22 15:03:23 -07:00
alena cdb80c76c1 bug 11537: revoke related FirewallRules when do vmExpunge and ipAddress release.
status 11537: resolved fixed

Reviwed-by: edison@cloud.com
2011-09-22 13:58:01 -07:00
alena dd8b031159 bug 11468: create ROOT domain and admin user as a part of cloud-setup-databases, not during the management server startup to avoid multiple records insertion for the same domain
status 11468: resolved fixed

Reviewed-by: will@cloud.com
2011-09-22 10:55:43 -07:00
Sheng Yang 902458bfa0 bug 11513: Fix public IP release in advance network
We should only persist DomR's public ip, not console proxy and ssvm.

Reviewed-by: Edison
2011-09-21 19:16:29 -07:00
alena ad0c82cae7 bug 11513: always wrap marking IP address with Releasing state and actual IP deallocation in Transaction
Reviewed-by:edison@citrix.com
2011-09-21 18:41:47 -07:00
Edison Su d722766427 bug 11047: change the put storage pool into maintenance mode: 1. only look at the available storoge pool in its own dc to decide to start vms created on it. 2. if start vm failed, don't throw exception, as these vms are marked stopped already, admin can start these vm by himself.
status 11047: resolved fixed
Reviewed-by: frank
2011-09-21 16:20:09 -07:00
alena 6ea66248dd bug 11515: reapply all firewall rules for the IP address when VPN related rules are being revoked
status 11515: resolved fixed

Reviewed-by: will@cloud.com
2011-09-21 09:50:21 -07:00
alena a4fb8e7d28 bug 11487: catch all exceptions in cleanupAccount, and mark the account for cleanup when the exception is caught.
status 11487: resolved fixed

Reviewed-by: will@cloud.com
2011-09-20 10:31:17 -07:00
alena a5a7103df6 bug 11462: 1) when delete PF rule, revoke corresponding firewall first (if exists) 2) never remove PF rule from the table when corresponding firewall rule wasn't removed yet
status 11462: resolved fixed

Reviewed-by: edison@cloud.com
2011-09-20 10:31:08 -07:00
alena 36344a3395 bug 11493: no need to do cross domain checks for the templates as domain level templates are not supported. We support only public (everybody can see and use) and private (only owner can see and use unless changed with updateTemplatePermissions call)
status 11493: resolved fixed

Reviewed-by: will@cloud.com
2011-09-20 10:31:01 -07:00
Edison Su 2632594a70 bug 11495: set bootable as user selected for iso/templates
status 11495: resolved fixed
Reviewed-by:alena@citrix.com
2011-09-19 17:47:01 -07:00
alena 28b26f755a bug 11480: verify account/user state when do single signon verification
status 11480: resolved fixed

Reviewed-by: kelven@cloud.com
2011-09-19 10:57:05 -07:00
alena 41871d5687 bug 11470: 1) fixed listResourceLimits 2) Fixed -1 to be treated as unlimited for all the resources
status 11470: resolved fixed
2011-09-19 09:46:11 -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
alena f4e22094e0 Do agent disconnect when agent rebalance fails
Reviewed-by: Alex Huang
2011-09-15 18:36:22 -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
keshav d27810afa2 In inline SRX/F5 mode, collect outbound usage for LB rules from the SRX. 2011-09-15 14:42:49 -07:00
alena 9bb95e915e bug 11447: don't do security group check if both groups belong to the same domain
status 11447: resolved fixed
2011-09-15 10:02:32 -07:00
anthony 16a97468c2 bug 9777: introduce Error status for snapshot, if snapshot creation fails, it will be in Error status
status 9777: resolved fixed
2011-09-14 18:12:44 -07:00
Kelven Yang d5cc708143 Let VmwareInvestigator return fake but meaningful investigation result 2011-09-14 17:03:39 -07:00
alena 8e47cb21c1 Fixed the problem in addDhcpEntry code when _dnsBasicZoneUpdates was never reset once set to false. 2011-09-14 16:08:12 -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
Sheng Yang 0ef051b4d2 bug 11307: Using latest query result rather than set bumpup to false
After the host is disconnected, we can't get latest result, but it's not safe to
think it's priority bump up flag changed.
2011-09-14 14:56:02 -07:00
anthony d6af51a402 bug 9777: only allow to delete snapshot in BackedUp status
status 9777: resolved fixed
2011-09-14 14:15:44 -07:00
alena 428232da21 bug 10435: use "hostName" instead of "name" as a search filed in listSystemVms
status 10435: resolved fixed
2011-09-14 11:01:21 -07:00
prachi 2e4b39de33 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
Changes:

A KVM agent always connects to the management server itself, we dont have to do direct connect. This part of code was missing updating the DB host entry with hosttags.
Corrected the code to save the hosttags while adding a KVM host.
2011-09-14 10:45:03 -07:00
Edison Su 4999511a2d bug 11239: bugy database contains a cluster whose hypervisor type is Null, then listhypervisorscmd return a None hypervisortype. Fixed in the API, don't return None
status 11239: resovled fixed
2011-09-14 10:43:47 -07:00
Murali Reddy d73bf096c0 bug 11425: dont count direct IP in resource count while updating resource count through API
status 11425: resolved fixed
2011-09-14 23:09:59 +05:30
alena 97c4029700 bug 11434: don't execute destroy call when vm is already in Destroyed/Expunging state
status 11434: resolved fixed
2011-09-14 10:33:16 -07:00
Nitin 22cca97894 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
Naredula Janardhana Reddy 01ac82d9d6 bug 11372:
Added two New values "all" and "default" to global config "network.loadbalancer.haproxy.stats.visibility" . With this change, it can take six possible value:
       global - stats visible from public network.
       guest-network - stats visible only to guestnetwork.
       link-local - stats visible only to link local network(for xen and kvm).
       disabled - stats disabled.
       all - stats available on public,guest and link-local.  (Newly added)
       default - stats availble on the serving http port, this does need any specific http port.(Newly added)

Except default and disabled, all the rest of 4 need to configure the stats port.
2011-09-14 17:09:21 +05:30
Sheng Yang 7713d675a7 Fix restartNetwork wrongly report stop failure 2011-09-14 03:05:57 -07:00