Commit Graph

1305 Commits

Author SHA1 Message Date
Devdeep Singh eef9a90ff6 Rat fixes for hyper agent. Added the missing headers in files where it was missing. 2013-11-01 15:32:19 +05:30
Devdeep Singh 8ea0668382 Remove the hard coded path in the agent code. 2013-11-01 13:31:25 +05:30
Devdeep Singh 96b670a511 Add a SCSI controller by default. This is needed so that data volumes can be added/removed
on a running vm.
2013-10-31 17:17:27 +05:30
Donal Lafferty 92a66dfddb If a VM is already running, deploy virtual machine shouldn't fail and throw an exception. 2013-10-31 12:20:35 +05:30
Rajesh Battala cce0a27e2b Fixed VM state changes w.r.t wmi version 2 changes 2013-10-30 17:59:28 +05:30
Anshul Gangwar a134a9bb17 Unit test for DestroyCommand implementation in hyperv agent. 2013-10-30 14:59:47 +05:30
Devdeep Singh 9bfc1c0c38 Remove the unused wmi v1 interface file. 2013-10-30 13:35:40 +05:30
Devdeep Singh 8eabfdcfb0 Removing the executable attribute from some files. 2013-10-30 13:18:06 +05:30
Devdeep Singh e9a9f687e2 Fixing rebase issues after integrating with wmi v2 implementation. 2013-10-30 11:40:22 +05:30
Devdeep Singh 77cdbcbd9f Make sure only unit tests are run during build time and not functional tests. 2013-10-30 11:06:38 +05:30
Donal Lafferty d0035fcc23 Changes for switching all wmi calls to V2 namespace. V1 namespace is deprecated so it is better
to be on v2 namespace.
2013-10-30 11:05:53 +05:30
Rajesh Battala 2de16b13b2 checksum is failing for the copied system vm images, currently bypassing. 2013-10-29 18:31:28 +05:30
Rajesh Battala ee0788bff8 Fixed HypervDirectConnect resource to figure out the status of systemvms, Need to fix this issue by connecting to public/control ip instead of local ip 2013-10-29 15:44:59 +05:30
Rajesh Battala 279793e530 Fixed the issues for ssvm and cpvm to wait until it gets configured and then return the status. Made checksum method to return true. 2013-10-29 15:43:28 +05:30
Rajesh Battala 7ac1ac9faf Fixed the UNC path for copying the files from CIFS, and from seeded template 2013-10-29 15:41:17 +05:30
Rajesh Battala 8f508a023b Fix to discover the seeded template to bring up the systemvm's for the first startup and fixed UNC path isues 2013-10-28 18:33:10 +05:30
Rajesh Battala f1b8aa90a0 Fix to bring up SSVM and Console Proxy systemvms 2013-10-28 18:30:33 +05:30
Anshul Gangwar 273ac5c8cf Fix for functional tests. The test was failing to build on java 1.6. 2013-10-28 18:08:42 +05:30
Anshul Gangwar 75857e3f0d Update the unit test to create a fake vhd file on the fly and run the test. The file is removed when the test completes. 2013-10-28 18:02:40 +05:30
Anshul Gangwar f7bd4614c0 Fixing the warnings while running unit tests for hyper agent.
Added a new switch for functional tests.
2013-10-28 13:49:50 +05:30
Anshul Gangwar c05758b25f Fix to make sure the hyperv agent and the funcitonal tests are working after the unit tests update. 2013-10-28 11:40:07 +05:30
Anshul Gangwar a27899aae1 Hyperv unit tests for the agent. Unit tests are written using NSubstitute and XUnit and
they test the create, stop and start commands in the agent.
2013-10-28 11:31:01 +05:30
Devdeep Singh d0f764b55a Changes for attaching the systemvm iso to virtual router will booting it -
part 2. The agent copies over the systemvm iso during setup. When a
virtual router is being booted it attaches the iso to it.
2013-10-25 16:54:43 +05:30
Devdeep Singh 15f9b82735 Changes to attach the system vm iso when booting the virtual router - part 1.
Copy the iso to the secondary storage and let the hypervisor agent know of its
location during setup. The agent will copy it over once it handles the setup
command.
2013-10-25 15:57:31 +05:30
Rajesh Battala 1b5cd843da Fixed hyperv localstorage path encode url issue. encode is converting space to '+' 2013-10-22 15:51:32 +05:30
Rajesh Battala 62098f76c0 Implemented VR network commands to provide the necessary services from VR 2013-10-22 12:41:13 +05:30
Rajesh Battala f74e9aac74 Implemented SetFirewallRulesCommand in HyperV Resource 2013-10-18 17:40:36 +05:30
Rajesh Battala b24935f2f9 Fix for VR to boot up and get configured with boot args, Fixed issue in VolumeOrchestrator 2013-10-13 09:10:14 +05:30
Rajesh Battala c15a295e91 Modified hyperv agent code, to deploy VR with Boot Args, boot args passed to VR using KVP Exchange Component. 2013-10-11 17:26:15 +05:30
Rajesh Battala 16422cbc0e Implemented commands that are required for VR to bootup and Vm deployment to work 2013-10-11 16:43:32 +05:30
Devdeep Singh f1c2c502ec Implementation for attach iso command. Attaches an iso to a given vm. 2013-10-11 15:12:18 +05:30
Donal Lafferty c2ddf836bf Test failures are easier to deal with if test key is not deleted. 2013-10-10 18:18:05 +05:30
Donal Lafferty 1edd300966 Rearrange code to make it clearer what .NET objects are being used. 2013-10-10 18:16:16 +05:30
Devdeep Singh 53fd4e8c72 Add ability to pass kvp data via the key cloudstack-vm-userdata 2013-10-10 18:11:58 +05:30
Donal Lafferty 1d0a931dea A plugin for Hyper-V control is available for CloudStack. The plugin implements basic VM control; however, its
architecture allows additional functionality to be easily added.  Incorporating the plugin in CloudStack will allow
the community to participate in improving the features available with Hyper-V.

The plugin uses a Director Connect Agent architecture described here: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Progress
2013-10-02 14:37:22 +05:30
Darren Shepherd efbfae723e Switch to setter injection for extensibility
Various classes are using member injection to inject extensible objects.
Really those object should come from an AdapterList that is injected in.
This patch switches the code to use setter injection that will later allow
spring to inject an AdapterList or something similar to allow
extensibility.
2013-09-30 09:45:07 -07:00
Darren Shepherd 692535f928 Cleanup DefaultUserAuthenticator and removed masking _name variable
DefaultUserAuthenticator maskes the _name varible in ComponentLifecycleBase
making the setName() method not work as expected.  This patch cleans up the
code such that getName() will be getClass().getSimpleName() unless
overridden in the Spring configuration.
2013-09-30 09:33:33 -07:00
Alex Huang b60eef3e82 Added comments and finished off the work 2013-09-28 07:53:28 -07:00
Alex Huang e8cac2c5d8 Changed SearchCriteria2 to GenericQueryBuilder to reflect the same placement 2013-09-28 07:53:26 -07:00
Alex Huang e2988902c9 Changed SearchCriteria2 to GenericQueryBuilder to reflect the same placement 2013-09-28 07:53:25 -07:00
Alex Huang af8832f6bd Unified both the SearchBuilder and SearchCriteriaService 2013-09-28 07:53:24 -07:00
Kelven Yang f3c917db05 CLOUDSTACK-4734: Validate and Fail-over to another VmwareContext object when it is from the pool 2013-09-27 15:57:56 -07:00
Kelven Yang 08c3b6596d CLOUDSTACK-4659: Vmware allows destroying VM that has pending tasks, worker VM GC actually relies on the assumption that Vmware is protected from that which is a false assumption. Recycle Worker VM only it is from previous session 2013-09-27 15:57:02 -07:00
Kelven Yang 159d798a19 Disable VMwareTools detection to avoid unreliable result caused by race-condition when VMwareTools is not ready in guest OS yet and the API is called. This is the corrected commit 2013-09-27 15:56:43 -07:00
ynojima a45ee749ac CLOUDSTACK-2328: Linux native VXLAN support on KVM hypervisor
Initial patch for VXLAN support.
Fully functional, hopefully, for GuestNetwork - AdvancedZone.

Patch Note:
 in cloudstack-server
- Add isolation method VXLAN
- Add VxlanGuestNetworkGuru as plugin for VXLAN isolation
- Modify NetworkServiceImpl to handle extended vNet range for VXLAN isolation
- Add VXLAN isolation option in zoneWizard UI

 in cloudstack-agent (kvm)
- Add modifyvxlan.sh script that handle bridge/vxlan interface manipulation script
-- Usage is exactly same to modifyvlan.sh
- BridgeVifDriver will call modifyvxlan.sh instead of modifyvlan.sh when VXLAN is used for isolation

Database changes:
- No change in database structure.
- VXLAN isolation uses same tables that VLAN uses to store vNet allocation status.

Known Issue and/or TODO:
- Some resource still says 'VLAN' in log even if VXLAN is used
- in UI, "Network - GuestNetworks" dosen't display VNI
-- VLAN ID field displays "N/A"
- Documentation!

Signed-off-by : Toshiaki Hatano <haeena@haeena.net>
2013-09-26 23:37:18 +09:00
Edison Su 81ff4795df fix compile errors 2013-09-25 17:59:54 -07:00
Edison Su 3420f2d016 CLOUDSTACK-4641: fix create volume from snapshot timeout issue 2013-09-25 16:32:55 -07:00
Edison Su 4fb4593553 CLOUDSTACK-4618: fix CLVM 2013-09-25 16:29:16 -07:00
Edison Su 0eb3944fc8 kvm upgrade issue from 2.2.14: 1. the uuid passed by mgt server is malformat, libvirt can't start vm. 2. the template path on primary storage is incorrect, which contains absolute path 2013-09-25 16:20:06 -07:00
Edison Su 3ddc6da10b CLOUDSTACK-4405: fix vm migration during the upgrade to 4.2
Conflicts:

	plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/BridgeVifDriver.java
2013-09-25 16:19:53 -07:00