Commit Graph

418 Commits

Author SHA1 Message Date
Sateesh Chodapuneedi 5d7f42d647 CLOUDSTACK-1403 Storage and console-proxy related error
Aborting lease over VM/template if uploading file fails.
Earlier the lease was completed successfully even if upload fails due to IOException or ConnectionException while uploading file to HTTP URL.

Porting the fix from 4.1 branch to master.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-03-01 09:41:30 +05:30
Min Chen 737dac2e65 Some cosmetic changes to VmwareClient private methods. 2013-02-28 15:42:56 -08:00
Min Chen bcaac324aa Rebase with master, bring into Vmware vswitch change. 2013-02-28 11:00:03 -08:00
Min Chen 93f14e7c65 Merge branch 'master' into vim51_win8
Conflicts:
	client/tomcatconf/componentContext.xml.in
	plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareManagerImpl.java
	vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java
	vmware-base/test/com/cloud/vmware/TestVMWare.java
2013-02-27 17:47:10 -08:00
Min Chen 7d2ebc9fc3 Add some comments on some code source to give credit to vmware sample
code.
2013-02-27 13:46:43 -08:00
sateesh 3c00e7b8c5 Re-basing with latest master.
CLOUDSTACK-657 VMware vNetwork Distributed Virtual Switch support in CloudStack

This is 5th patch for feature 'Support for VMware dvSwitch in CloudStack'.

This patch contains
1)Changes to addCluster done in vmware discoverer to support vswitch type provided as parameters. Also performing validation of vswitch type parameter provided with addCluster api call. Checks for physical network configuration for vmware cluster is added.
2)Changes to vmware resource to use specified vswitch type while preparing network for guest and public traffic types.
3)Changes to vmware manager to introduce new global parameter vmware.ports.per.dvportgroup. Some cleanup.
Virtual switch type could be chosen at zone level or at cluster level for specific traffic type.
autoExpand of dvPortGroup is available in code but disabled as its breaking because vCenter 4.1 does not support autoExpand feature. Would be enable once vSphere 5.1 SDK support is added to CloudStack.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-02-27 18:37:15 +05:30
sateesh a9446a9811 CLOUDSTACK-657 VMware vNetwork Distributed Virtual Switch support in CloudStack
This is 3rd patch for feature 'Support for VMware dvSwitch in CloudStack'.

This patch contains few helper functions (get dvswitch reference, check the type of a port group). Also added method getType() to VirtualSwitchType enum.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-02-27 18:37:15 +05:30
sateesh 1777f160c4 CLOUDSTACK-657 VMware vNetwork Distributed Virtual Switch support in CloudStack
This is 1st patch for feature 'Support for VMware dvSwitch in CloudStack'.

This contains 3 newly introduced classes. Added apache license header for all 3 files.
[1]TrafficLable and [2]VmwareTrafficLabel classes are to define and encapsulate virtual switch type per traffic type along with other network label fields (VLAN ID and physical network).
[3]DistributedVirtualSwitchMO class is wrapper class for vSphere API calls specific to a distributed virtual switch in a vCenter datacenter.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-02-27 18:37:14 +05:30
Min Chen fbfc5c6894 Merge from master and fix conflicts 2013-02-25 11:53:24 -08:00
Min Chen 8343931a32 Fix how we can get VimPort cookie in SDK 5.1 due to ws implementation
change from Axis to JAX-WS.
2013-02-22 10:11:36 -08:00
Bharat Kumar 23e54bb0f4 Cloudstack-711: Cpu and Ram Overcommit Ratio. 2013-02-22 17:31:06 +05:30
Min Chen 525fe14c25 Trust all certificate in vcenter connect. 2013-02-20 10:57:52 -08:00
Mice Xia 9a12756ae4 CLOUDSTACK-684 support vm snapshot 2013-02-14 01:26:30 +08:00
Min Chen 14ef9151a5 Fix ClassCastException. 2013-02-07 16:23:56 -08:00
Min Chen 640fa6be76 Fix a bug in converting Enum type to String. 2013-02-07 12:23:57 -08:00
Min Chen 105bf7134a Merge branch 'master' into vim51_win8
Conflicts:
	plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareContextFactory.java

Signed-off-by: Min Chen <min.chen@citrix.com>
2013-02-06 15:27:45 -08:00
Min Chen 1ce4d62ace Fix cast error from List<?> to array. 2013-02-05 21:44:38 -08:00
Min Chen 481f480472 Upgrade to use Vsphere 5.1 SDK jar, fixed all compilation error with new
wrapper class VmwareClient.
2013-02-04 17:41:36 -08:00
Min Chen 780ac2a9c6 Introduce POM dependency on VSphere 5.1 SDK, not done yet, WIP. 2013-01-31 10:32:05 -08:00
Koushik Das 3dfd81fd6b CLOUDSTACK-605: Host physical CPU is incorrectly calculated for Vmware hosts Fixed logic to compute Vmware host cpu
Signed-off-by: Koushik Das <koushik.das@citrix.com>
2013-01-09 14:03:04 -06:00
Kelven Yang 3113f32f25 Commit for https://reviews.apache.org/r/6701/ 2012-08-21 11:55:06 -07:00
Kelven Yang 340b086df4 commit review request https://reviews.apache.org/r/6502/# 2012-08-10 13:38:47 -07:00
David Nalley 3ae274a47c adding runbook and publican-cloudstack to docs 2012-06-29 11:16:18 -04:00
David Nalley 6ed90df654 merging vmware-base license header updates from Chip Childers 2012-06-23 00:40:01 -04:00
Vijayendra Bhamidipati 361ca9643d CS-15173: Additional Cluster is allowed to add with the same VSM IPaddress as the previous cluster
Description:

    Restricting association of a Cisco Nexus VSM to a single
    cluster.
2012-06-22 13:31:56 -07:00
Sateesh Chodapuneedi ab768f03fd CS-14956 Support for rate limiting policies in Nexus dvSwith feature for CloudStack
Reviewed-by: Devdeep

Conflicts:

	vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java
2012-05-25 19:20:58 -07:00
Sateesh Chodapuneedi 8eff665784 CS-15073 Nexus vSwitch: Source NAT is being programmed on the wrong nic on the Virtual Router
Reviewed-by: Devdeep

Conflicts:

	vmware-base/src/com/cloud/hypervisor/vmware/mo/VirtualMachineMO.java
2012-05-25 18:42:24 -07:00
Sateesh Chodapuneedi e952f0d5f3 CS-15010 Nexus vSwitch: Advanced Zone - System VMs failed to deploy due to Start Command Failure
CS-15016 SSH connections to VSM are not cleared [Once the connections are exceeded it failed to connect to VSM]

Conflicts:

	core/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
	vmware-base/src/com/cloud/hypervisor/vmware/mo/VirtualMachineMO.java
2012-05-25 18:17:59 -07:00
Sateesh Chodapuneedi a20aace44e CS-9919 Support for Nexus Swiches (Cisco Vswitches)
Description:

	Temporarily skipping exception until vsmresponse
	parser doesn't throw malformed exceptions after
	adding port profile for native access.
2012-05-25 18:08:28 -07:00
Sateesh Chodapuneedi c65199cd8c CS-9919 Support for Nexus Swiches (Cisco Vswitches)
Added VSM credentials to AddClusterCmd(optonal params only).
Cleanup.

Conflicts:

	api/src/com/cloud/api/commands/AddClusterCmd.java
2012-05-25 17:56:46 -07:00
Sateesh Chodapuneedi 9709774b4b CS-9919: Support for Nexus Swiches (Cisco Vswitches)
Description:

	Instance configuration to join distributed vNetwork.

Conflicts:

	core/src/com/cloud/hypervisor/vmware/manager/VmwareManager.java
	core/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
	vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareHelper.java
2012-05-25 17:53:00 -07:00
Sateesh Chodapuneedi 7838b3fed6 CS-9919: Support for Nexus Swiches (Cisco Vswitches)
Description:

	Discover dvSwitch UUID for dvPort configuration.

Conflicts:

	vmware-base/src/com/cloud/hypervisor/vmware/mo/DatacenterMO.java
2012-05-25 17:47:58 -07:00
Sateesh Chodapuneedi c59d5415ad CS-9919 Support for Nexus Swiches (Cisco Vswitches)
Description:

	Portprofile shaping policies will be fetched
	from nexus vswitch instead of vcenter.
	ACLs and Policies won't be synced to vCenter.
	Get physical network label while adding cluster.
	Cleanup.

Conflicts:

	core/src/com/cloud/hypervisor/vmware/manager/VmwareManager.java
	server/test/com/cloud/network/MockNetworkManagerImpl.java
2012-05-25 17:44:02 -07:00
Devdeep Singh 8db1ca296b CS-9919: Support for Nexus Swiches (Cisco Vswitches)
Description:

	Do not set the access mode of an interface if vlanid is zero.
2012-05-25 17:41:17 -07:00
Sateesh Chodapuneedi b6687faf89 CS-9919 Support for Nexus Swiches (Cisco Vswitches)
Description:

	Retreving physical network configuration from
	database. Passing configuration down to resource.
	Cleanup.

Conflicts:

	core/src/com/cloud/hypervisor/vmware/manager/VmwareManager.java
	server/src/com/cloud/hypervisor/vmware/VmwareServerDiscoverer.java
2012-05-25 17:40:38 -07:00
Devdeep Singh ec19facd30 CS-9919: Support for Nexus Swiches (Cisco Vswitches)
Description:

	Adding apis to create service policies and
	associate them with a port profile.
2012-05-25 17:36:42 -07:00
Sateesh Chodapuneedi aa1f26cb00 CS-9919 Support for Nexus Swiches (Cisco Vswitches)
Description:

	Moved dvSwitch specific functionality over datacenter.

Conflicts:

	vmware-base/src/com/cloud/hypervisor/vmware/mo/DatacenterMO.java
	vmware-base/src/com/cloud/hypervisor/vmware/mo/HostMO.java
2012-05-25 17:35:50 -07:00
Sateesh Chodapuneedi fb887ac7b7 CS 9919 - Support for Nexus Swiches (Cisco Vswitches)
Support for various types of vswitches in VMware.
2012-05-25 17:27:15 -07:00
Sateesh Chodapuneedi 205f4a2192 CS-9919 - Support for Nexus Swiches (Cisco Vswitches)
Description:

	Code changes to manage Cisco Nexus 1000v in CloudStack.
	VmwareResource has been modified to leverage Nexus vSwitch.

	Providing following global configuration parameters,

vmware.use.nexus.vswitch -
	This would decide whether Nexus vSwitch in the VMware
	cluster environment would be used/managed by CloudStack
	for it's network infrastructure needs.

vmware.guest.network.vswitch.type -
	This setting would enable CloudStack to use Nexus vSwitch
	in the VMware cluster environment for guest traffic.

vmware.private.network.vswitch.type -
	This setting would enable CloudStack to use Nexus vSwitch
	in the VMware cluster environment for private traffic.

vmware.public.network.vswitch.type -
	This setting would enable CloudStack to use Nexus vSwitch
	in the VMware cluster environment for private traffic.

Functional Specification -
	http://wiki.cloudstack.org/display/RelOps/Cisco+Nexus+1000v+Support+in+CloudStack+-+Functional+Specification

Documentation / README for usage instructions -
	http://wiki.cloudstack.org/display/RelOps/Configuration+instructions+for+CloudStack+Deployment+with+Nexus+vSwitch

Conflicts:

	core/src/com/cloud/hypervisor/vmware/manager/VmwareManager.java
	core/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
	server/src/com/cloud/hypervisor/vmware/VmwareServerDiscoverer.java
	vmware-base/src/com/cloud/hypervisor/vmware/mo/HostMO.java
	vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java
	vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContext.java
2012-05-25 17:27:00 -07:00
Edison Su a74e8d8b6b bug CS-15094: cpu limit is cpuspeed*cpucount 2012-05-25 10:52:34 -07:00
Kelven Yang 1e84fa4b12 bug CS-14964: use shorter UUID for datastore names 2012-05-24 15:21:49 -07:00
Kelven Yang 3020df75f1 Add support routines for incremental snapshot support 2012-05-11 17:17:48 -07:00
David Nalley bd4ad55535 fixing line endings for vmware-base 2012-04-09 14:21:43 -04:00
frank 2f634c0913 Switch to Apache license 2012-04-03 04:50:05 -07:00
Kelven Yang bd9a250e12 bug 13777: propagate snapshot packaging failures up. Reviewed-By: Anthony
tar command random failure may occur due to linux kernal bug (or feature) that tar can't handle well. The failuar happens when tar wants to package a newly created file before file system has fully synced
2012-02-17 15:02:32 -08:00
Kelven Yang 7f36269c14 add a debian 5.0 32 bit guest os mapping 2012-02-15 17:35:47 -08:00
Kelven Yang 3d74932a85 bug 13777: propagate snapshot packaging failures up. Reviewed-By: Anthony 2012-02-15 16:20:03 -08:00
Kelven Yang f0e048a968 More protective cleanup when exporting snaphost to reduce chances of leaving intermediate files behind under soft error conditions 2012-01-27 09:34:08 -08:00
Kelven Yang c23e998bdb bug 12711: make sure NFS storage is not considered as local storage 2012-01-24 18:35:26 -08:00
Kelven Yang 25d11cba05 bug 12985: give it 3 seconds to realize a poweroff state 2012-01-20 18:48:59 -08:00
Kelven Yang 1056afbbcf bug 13225: setup firewall rules for all ESX/ESXi hosts under a cluster as worker VM may be created at any host available, also add connect retry when work with vCenter and ESX/ESXi hosts 2012-01-20 17:58:54 -08:00
Kelven Yang c89f6e2936 bug 12994: fix IndexOutOfBoundsException problem in VMDK upload 2012-01-11 15:37:36 -08:00
Kelven Yang 6b8ff93330 Add storage network support at VMware resource 2012-01-09 16:44:23 -08:00
Kelven Yang bde008ed7e bug 12787: improve worker VM cleanup in snapshot operation 2012-01-06 19:15:29 -08:00
Kelven Yang 55175fb2fd bug 12653: add default gateway support for multiple networks under VMware 2011-12-19 14:48:56 -08:00
Kelven Yang 443c175793 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:56 -07:00
Kelven Yang 590ce6d78a bug 11774: refactor guest OS mapping to avoid conflicts with changes in master branch 2011-10-20 17:38:57 -07:00
Kelven Yang dce4e74b58 bug 11585: using pre-allocated NIC approach to support additional public interfaces for VMware 2011-10-11 15:40:31 -07:00
Kelven Yang d32241ec9c bug 10971: support vSphere 5 2011-09-26 12:16:28 -07:00
Kelven Yang 6b33d114e8 bug 11380: taking VM snapshot is moved to do it at the same time when backup it to secondary storage, wait snapshot MOR really appears in vCenter until we continue. 2011-09-13 17:26:19 -07:00
Kelven Yang 3c41775184 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:07:09 -07:00
Kelven Yang 9736c1e3b1 bug 11283: deal with empty snapshot disk chain 2011-09-08 16:10:58 -07:00
Kelven Yang 4ef35767f5 bug 11324: merge fix from branch 2.2.10 2011-09-02 15:37:32 -07:00
Kelven Yang cddd117e99 bug 11296 : merge fix from 2.2.10 2011-09-01 11:57:35 -07:00
Kelven Yang 8d3d3272ab bug 11269: merge fix from 2.2.10 2011-08-25 18:28:37 -07:00
Kelven Yang 9ace681547 bug 11162: merge fix from 2.2.10 premium 2011-08-25 15:38:43 -07:00
Kelven Yang fcd26a999b bug 11264: merge fix from 2.2.10 2011-08-25 13:58:56 -07:00
Kelven Yang 4f8a52f94c Move VMware/Premium Secondary storage VM to opensource 2011-08-23 14:43:39 -07:00