Commit Graph

3450 Commits

Author SHA1 Message Date
kishan 6ad712d1c4 bug 11851: When Add VPN user fails, remove the user entry from db instead of leaving in Add state.
status 11851: resolved fixed
reviewed-by: Abhi
2011-11-08 15:53:32 +05:30
Alena Prokharchyk 657edb1a56 bug 11923: don't expose command name in the exception response when command is not available
status 11923: resolved fixed
reviewed-by: Will Chan
2011-11-07 18:00:11 -08:00
Nitin e9b21dad49 bug 11428: For volumes use findIdIncludingRemoved since volumes can be removed
Reviewed by - Kishan
status 11428: resolved fixed
2011-11-07 19:05:44 +05:30
Nitin 18a243e1d6 bug 11428: Under VMware with current version, for snapshot related related operations,
1) if snapshot is originally created from root volume, allow only
CreateTemplateCommand from snapshot

2) if snapshot is originally created from data volume, allow only
CreateVolumeCommand from snapshot

Reviewed by - Kishan
status 11428: resolved fixed
2011-11-07 18:30:24 +05:30
Nitin fff9e275b1 bug 11778: Make sure that there exist no PF/LB rules before enabling static nat on an ip and vice versa. Reviewed by - Jana
status 11778: resolved fixed
2011-11-07 17:08:58 +05:30
Chiradeep Vittal 52dfd3a7fd bug 11336: better message 2011-11-04 11:30:24 -07:00
Chiradeep Vittal cc5e459be0 bug 11336: limit the number of outstanding messages sent to a host to conserve memory 2011-11-04 11:30:13 -07:00
kishan 2c4a564b95 bug 11851: While adding new Vpn user, exisitng users state will remain as Active and still be re-added
status 11851: resolved fixed
2011-11-04 13:48:20 +05:30
Abhinandan Prateek 852679cea9 adding mroe info to warn message 2011-11-04 11:53:14 +05:30
frank abc6075a38 Bug 11808 - Allow additional non-default virtual networks
when isDefault is null, for virtual network set defaut to true, false for direct network
2011-11-03 15:10:42 -07:00
Naredula Janardhana Reddy 34d3679695 Revert "bug 11680: Fix to the listing of routers when the networkid is invalid."
This reverts commit 6d5c46c4b0c6c8782923630947000348590d14f8.
2011-11-03 15:48:04 +05:30
Abhinandan Prateek c1eaef18c1 bug 11678: moving initialization to the configure methog 2011-11-03 15:26:54 +05:30
root 55b5a5c5cd Revert "bug 11791: adding Hypervisor type to list os API"
This reverts commit 78e01c3061795e5d3d80db8a147b5f1c8a836a3c.
2011-11-03 14:53:32 +05:30
Abhinandan Prateek 6e2f732734 bug 11804: Only root admins have a relaxed resource limit 2011-11-03 11:15:13 +05:30
Abhinandan Prateek 5e44458ec1 Revert "bug 11804: Only root admins have a relaxed resource limit now"
This reverts commit 5415bd881b4a5b1b81937171fe494509b5e1619e.
2011-11-03 11:02:59 +05:30
anthony 1ba2d1c8d5 add more logs 2011-11-02 17:04:18 -07:00
frank 720ffc2d1f Bug 11808 - Allow additional non-default virtual networks
completed Java code change, need UI change in line with
2011-11-02 14:35:14 -07:00
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 e6474ff85a bug 11709: saving encrypted password in db
status 11709: resolved fixed
2011-11-02 16:47:42 +05:30
kishan d601313b35 bug 11770: throw error when account is not found in default root domain
status 11770: resolved fixed
2011-11-02 15:24:37 +05:30
kishan daa7d41650 bug 11770: throw error when account is not found in default root domain
status 11770: resolved fixed
2011-11-02 15:22:29 +05:30
Naredula Janardhana Reddy 48c1044ebe bug 11680: Fix to the listing of routers when the networkid is invalid. 2011-11-02 15:10:43 +05:30
Abhinandan Prateek ad5341d0d3 bug 11804: Only root admins have a relaxed resource limit now
status 11804: resolved fixed
2011-11-02 13:30:15 +05:30
frank 5164394949 Bug 11646 - OVM - volume > download volume failed for both ROOT and DATA volumes
return volume name instead of full path to ingratiate mgmt server's bad name convention
2011-11-01 18:14:11 -07:00
frank d4a106319d Disable baremetal fullsync
*    Disable sync until we find a way that only tracks status but not does action
   *
   *    The scenario is: Baremetal will reboot host when creating template. Given most
   *    servers take a long time to boot up, there would be a period that mgmt server finds
   *    the host is stopped through fullsync. Then mgmt server updates database with marking the host as
   *    stopped, after that, the host comes up and full sync then indicates it's running. Because
   *    in database the host is already stopped, mgmt server sends out a stop command.
   *    As a result, creating image gets never happened.
2011-11-01 16:45:49 -07:00
frank ade383112c Baremetal: bypass HA, only track VM status 2011-11-01 15:12:52 -07:00
kishan 3018a5e124 bug 11796: Catch all exceptions in network usage task and never exit the thread
status 11796: resolved fixed
2011-11-01 20:39:08 +05:30
Abhinandan Prateek e54fc08862 bug 11791: adding Hypervisor type to list os API 2011-11-01 17:56:28 +05:30
Nitin 9a0c16a714 bug 11739: Fix typo 2011-10-30 23:25:37 +05:30
frank c1c9e5c6c3 allow multiple clusters for baremetal 2011-10-28 13:46:25 -07:00
frank 204b07a973 Use constant string instead of hard coding in baremetal parameters passing 2011-10-28 11:05:48 -07:00
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
frank cc6bf73760 allow multiple clusters for baremetal planner
fix build
2011-10-27 17:42:25 -07:00
frank b4fffc9b30 allow multiple clusters for baremetal planner 2011-10-27 17:31:25 -07:00
Abhinandan Prateek edbce41065 bug 11701: cleanup, and vm host sync on delta 2011-10-27 16:23:04 +05:30
frank 295842fac0 Bug 11805 - Cant add baremetal host
status 11805: resolved fixed
2011-10-25 15:17:02 -07:00
Kelven Yang 9ad7c23074 bug 9614: let root volume use IDE disk controller by default to ensure backwards compatibility with existing CloudStack deployments 2011-10-24 15:28:10 -07:00
Kelven Yang 231640f279 bug 9614: enable SCSI device controller for root disk.(default root disk controller type can be conifgured through global configuration) 2011-10-21 18:44:21 -07:00
alena f41dd918a9 bug 11690: don't allow to remove the cluster when it's referenced by existing storage pools
status 11690: resolved fixed
2011-10-21 18:07:16 -07:00
alena 3af0dba676 bug 11744: remove firewall rules before removing statis nat rules as a part of disableStaticNat call
status 11744: resolved fixed
2011-10-21 17:20:13 -07:00
David Nalley ff9ca29bb2 Extending Kevin Brook's original XCP disguised as XS 5.6.100 patch 2011-10-20 08:18:17 -04:00
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
Kelven Yang 3aba30543c bug 11624: command via AgentManagerImpl.sendTo() needs to be redirect to HypervisorGuru for command filtering, the filtering mechanism is required by VMware hypervisor to redirect storage/snapshot commands to SSVM 2011-10-17 18:03:54 -07:00
anthony c459604fa2 handle empty snapshot correctly 2011-10-17 17:24:32 -07:00
frank 953ad818f0 Bug 11647 - OVM - no support for migrate instance
return available hosts when hypervisor type is Ovm
status 11647: resovled fixed
2011-10-17 16:25:13 -07:00
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
Kelven Yang faa3622187 bug 11716: save VMware local datastore info to local storage to support multiple local datastores per host situation 2011-10-14 17:13:22 -07:00
frank 7dcf83bc06 Bug 11745 - Ovm needs user manually start a xenserver user vm in order to start VirtualRouter
status 11745: resolved fixed
2011-10-14 14:46:36 -07:00
frank 9abd7973f2 Bug 11741 - there is no ovm.public.network.device, ovm.private.network.device, ovm.guest.network.device in global configure page
status 11741: resovled fixed
2011-10-14 11:42:32 -07:00
Abhinandan Prateek b1de219cd9 bug 11675: enable RHEL 6 for XCP 1.1 2011-10-14 11:42:04 +05:30
frank 9bf4ac9041 Bug 11647 - OVM - no support for migrate instance
return error if taking snapshot API call happens on Ovm
2011-10-13 16:19:42 -07:00
frank 1e421bbce9 Bug 11670 - OVM - HA failed when host is disconnected from network
status 11670: resolved fixed
2011-10-13 14:44:58 -07:00
Kelven Yang d022eaba9c Make default value of pre-allocated public NICs in domR consistent with the default value in DB 2011-10-12 14:56:30 -07:00
Kelven Yang 4c6110e020 bug 11585: using pre-allocated NIC approach to support additional public interfaces for VMware 2011-10-11 15:13:55 -07:00
Abhinandan Prateek ff5dfdbf68 bug 11675: fixed error messages 2011-10-11 17:26:01 +05:30
Abhinandan Prateek 4a3b4d21c3 bug 11675: optimized the code 2011-10-11 17:25:04 +05:30
Nitin 5d6a48dd26 bug 11668: Do not apply 'cpu.overprovisioning.factor' while setting total_cpu in the op_host_capacity entry. 2011-10-11 16:55:42 +05:30
kishan 06d3d8db85 bug 11561: Added new Dao RandomlyIncreasing, which will increase the Vm Id by 1-10 randomly
status 11561: resolved fixed
2011-10-11 14:08:40 +05:30
kishan 86ea3a1c12 bug 11672: While listing volumes, check for null Vm instance. Log error when Vm instance is null
status 11672: resolved fixed
2011-10-11 12:21:22 +05:30
Abhinandan Prateek 81e661c9f8 bug 11675: enabling support for XCP 1.1.0 2011-10-11 11:34:30 +05:30
Edison Su feec96b8b5 bug 11634: add manual vm migration support for kvm
status 11634: resolved fixed
2011-10-10 11:30:45 -07:00
prachi 078190f76d Bug 11481 - get manual live migration working with all VMs
Changes:

- Added the resopnse object name for the SystemVmInstanceResponse that this new MigrateSystemVMCmd will return.
2011-10-07 15:07:53 -07:00
alena 16989227d9 bug 11667: drop primary keys in cloud_usage.usage_load_balancer_policy and cloud_usage.usage_port_forwarding
status 11667: resolved fixed
2011-10-07 10:58:19 -07:00
alena e765ea769f bug 11666: fixed foreign key upgrade in networks table
status 11666: resolved fixed
2011-10-06 18:15:41 -07:00
alena dce06146af bug 11664: fixed regression bug in listVms introduced by performance changes
status 11664: resolved fixed
2011-10-06 16:52:51 -07:00
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
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