Commit Graph

1909 Commits

Author SHA1 Message Date
Rajesh Battala 234f7e4b76 CLOUDSTACK-6338 [Automation] Failed to NetScaler Device with error 2014-04-25 21:45:54 +02:00
Mike Tutkowski 66fcfee220 CLOUDSTACK-6488 Fixed an issue where the "path" field was not being set properly in the DB when the volume had a snapshot taken of it 2014-04-25 21:35:24 +02:00
Anthony Xu 33c0d6c7bb CLOUDSTACK-6438
CLOUDSTACK-6442
  XAPI plugins must be copied to XS master first.
2014-04-23 15:30:36 -07:00
Mike Tutkowski 4ae75b426b CLOUDSTACK-6469 2014-04-23 08:57:22 +02:00
Mike Tutkowski b32fb37c51 [DB-CHANGE] CLOUDSTACK-6170 (VMware root-disk support for managed storage) 2014-04-22 10:06:42 +02:00
Anthony Xu 3f74cb2feb enable event on XS 6.2 + FOX 2014-04-21 14:26:40 -07:00
Mike Tutkowski e49e282c63 CLOUDSTACK-6170 (VMware root-disk support for managed storage) 2014-04-19 10:13:10 -06:00
Sheng Yang 3578c7137f CLOUDSTACK-6047: Make aggregation command timeout configurable
In case some environments has different performance or we found some commands
would took too long to execute, one global configuration item is introduced to
specify "time out in seconds per one command in aggregation commands".

By default it's 3 seconds. If admin feel it's too long, it can be adjust to as
low as 1 seconds, which runs still well in my machine.
2014-04-18 23:27:12 -07:00
Murali Reddy 4c0505f649 remove the unintended file checked in 2014-04-18 19:18:54 +05:30
Murali Reddy 18c269a575 fix KVM plug-in for OVS tunnel network. Fix addreses two issues.
fix  mismatch of ovs-host-setup, ovs_host_setup used Libvirt resource and
scripts

plug the nic to OVS bridges created for the tunnel network.
2014-04-18 18:14:14 +05:30
Murali Reddy 192856fdcc add support for sequence numner in the VPC topology updates and VPC
routing policy updates
2014-04-18 18:14:13 +05:30
Anshul Gangwar 7d6712c05e CLOUDSTACK-6411: removing license header from nuget.config and agent settings file, with
the header they are not getting loaded properly. Added an exception to not to do rat
checks on these files.
2014-04-18 15:42:55 +05:30
Sachchidanand Vaidya 8d371ab031 CLOUDSTACK-6322 - Don't allow service instance creation with empty or null service-instance "name".
Signed-off-by: Daan Hoogland <daan@onecht.net>
2014-04-17 03:47:43 -06:00
Prachi Damle 48c9b46328 CLOUDSTACK-6349: IAM - No error message presented to the user , when invalid password is provided.
- AccountManager now works using accountId instead of accountType in following methods too:
- isResourceDomainAdmin()
- isAdmin()
2014-04-16 11:26:57 -07:00
Anthony Xu d814383265 destroy event when the task is done 2014-04-15 17:04:37 -07:00
Chris Suich 47208dc23d CLOUDSTACK-6422: Fixed errors with simulator VM snapshot delete and revert 2014-04-15 17:23:21 -04:00
Anthony Xu 46f6b26d49 disable XAPI event 2014-04-15 11:42:53 -07:00
Anshul Gangwar b78aee8f11 CLOUDSTACK-6401: [hyper-v] fixed correct host state, if host is up and hyper-v agent is down then the host state will be shown as up(actual host state) in cloudstack 2014-04-15 12:24:57 +05:30
Anshul Gangwar d45ee3ef21 CLOUDSTACK-6400: [hyper-v] [vmsync] fixed occasionally VM is not deleted from back-end when it is stopped from Hyper-V manager and then destroyed-expunged from CS and returning only power VMs for vmsync 2014-04-15 12:24:38 +05:30
Anshul Gangwar 36103633c2 CLOUDSTACK-6398:[hyper-v] changed auto shutdown and startup actions of VMs to shutdown and nothingauto shutdown and startup actions of VMs to shutdown and nothing so that they are consistent with cloudstack auto shudown and startup behavior 2014-04-15 12:24:13 +05:30
Koushik Das 800e9dbac5 CLOUDSTACK-6402: Fix StopCommand so that VMs are not removed accidentally as part of vmsync
Added a new flag 'checkBeforeCleanup' to StopCommand based on which check is done to see if VM is running in HV host.
If VM is running then in this case it is not stopped and the operation bails out.
Also modified the MS code to call the StopCommand with appropriate value for the flag based on the context.
Currently it is only set to 'true' when called from the new vmsync logic based on powerstate of VM. For rest it
is set to 'false' meaning no change in behaviour.
2014-04-14 16:12:35 +05:30
Koushik Das aa3cb3f041 CLOUDSTACK-6363: [Automation] jetty server is going OOM for simulator 2014-04-14 09:18:55 +05:30
Anthony Xu 3854e5b106 add log and comment 2014-04-11 16:16:49 -07:00
Wido den Hollander 8764692b27 rbd: Use qemu-img to backup up a RBD snapshot to Secondary Storage
This reduces the amount of time and storage it takes dramatically. We no longer
do a full copy, but a sparse copy. The destination image is still in RAW
format, but we only copy over used blocks.

Qemu is also better in doing this then us doing it in Java code.
2014-04-11 15:20:49 +02:00
Wido den Hollander 95f6f65312 rbd: Use qemu-img to convert from QCOW2 templates to RBD directly.
This saves the step of writing to a temporary image in /tmp first before
writing to RBD.

This is possible due to a new version in librbd. With the rbd_default_format
setting we can now force qemu-img to create format 2 RBD images.

This is available since Ceph version 0.67.5 (Dumpling).
2014-04-11 15:20:34 +02:00
Anthony Xu 1c10d00ec9 avoid to create same FileSR on host more than once 2014-04-10 17:47:27 -07:00
Wido den Hollander 75792bf08e CLOUDSTACK-4665: Check if a snapshot is protected before trying to unprotect
Otherwise a RBDException will be thrown with the message that the snapshot
isn't protected.

Conflicts:

	plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
2014-04-10 15:59:12 +02:00
Kishan Kavala 295fa84d4d CLOUDSTACK-6371: Set snapshot size in copycommand answer during snapshot backup 2014-04-10 15:28:48 +05:30
Anthony Xu 9f44909e63 use event instead of poll for xapi async call in XS 6.2 and above to reduce the pressure on XAPI 2014-04-09 13:45:04 -07:00
Sanjay Tripathi 127196e95d CLOUDSTACK-6366: add vgpuTypes details in vgpu_types table. 2014-04-09 18:22:06 +05:30
Harikrishna Patnala 68c80e28c0 CLOUDSTACK-6253: Optimizing VR alerts getting algorithm In addition to this a new configuration parameter is added router.alerts.check.interval defaulted to 30minutes to check for alerts in Virtual Router 2014-04-09 18:11:24 +05:30
Murali Reddy 2ad98da095 CLOUDSTACK-6365: support virtual host and ssl in rabbitMQ event bus
with this fix, virtual host on the AMQP server can be specified. Also
SSL can be used for connection between management server and AMQP
servers.
2014-04-09 17:33:48 +05:30
Anshul Gangwar fb9c2cc2d4 CLOUDSTACK-6262: Fixed network throttling in hyper-v, Now network rate parameter is honored in hyper-v. Network rate parameter now set the max bandwidth of nic on hyper-v 2014-04-09 11:23:42 +05:30
Anthony Xu 73c4e83ace make sure volumeUuid is not full path 2014-04-08 16:35:31 -07:00
Anthony Xu 7cd4319eed Destroy unplugged VIFs before creating a VIF for a VM 2014-04-08 16:13:58 -07:00
Frank.Zhang 68cf2ba0ef BUG-ID: CS-19152
[upgrade] Baremetal 4.2.0 -> 4.3. After upgrade, destroy baremetal instance fail

BUG-ID: CS-19150
[upgrade] Baremetal 4.2.0 -> 4.3. After upgrade, unable to start baremetal instance

BUG-ID: CS-19149
[upgrade] Baremetal 4.2.0 -> 4.3. After upgrade, baremetal host remain in Disconnected state. But instance associated with baremetal host is running.

BUG-ID: CS-19151
[upgrade] Baremetal 4.2.0 -> 4.3. After upgrade, unable to reboot baremetal instance

BUG-ID: CS-19156
[upgrade] Baremetal 4.2.0 -> 4.3. After upgrade, unable to stop baremetal instance

reviewed-by: edison
(cherry picked from commit 3787579d29)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>

Conflicts:

	plugins/hypervisors/baremetal/src/com/cloud/baremetal/manager/BareMetalDiscoverer.java
	plugins/hypervisors/baremetal/src/com/cloud/baremetal/networkservice/BareMetalResourceBase.java
	plugins/hypervisors/baremetal/src/com/cloud/baremetal/networkservice/BaremetalPxeManagerImpl.java
	server/src/com/cloud/deploy/DeploymentPlanningManagerImpl.java
2014-04-08 15:31:24 -07:00
Murali Reddy faf52530cc CLOUDSTACK-6356: OVS: tunnel networks does not work across the XenServer
clusers

across the poll members an internal network created is visible to al the
members but bridge is not necessariliy created. This fix enables
plugging a temp VIF connected to internal network to dom0 and then
unplug-it. this action creates a bridge on the host of the network.
2014-04-08 19:06:15 +05:30
Anshul Gangwar 6dacfa9efd CLOUDSTACK-6289: fixed storage migration failing in case of hyper-v if there are multiple disks attached to VM 2014-04-08 14:58:02 +05:30
Anshul Gangwar 9bc19bc241 CLOUDSTACK-6326: fixed password visible in plain text in some of commands in Hyper-v Agent logs 2014-04-08 14:17:38 +05:30
Anshul Gangwar 3f84cc6c60 CLOUDSTACK-6325: [hyper-v] fixed cleaning of bin and obj directories when building with mono, they were not cleaning up and resulting in use of stale dlls in some cases 2014-04-08 14:17:27 +05:30
Alex Huang ec102ec960 Revert "Applied Tina's patches for removing the xapi jar"
This reverts commit 1439c69b7e.
2014-04-08 00:03:18 -07:00
Sheng Yang f29e4e21eb CLOUDSTACK-6314: Use SSH commands for Xen VR execution
Instead of XAPI, which would make XenServer unnecessary busy.
2014-04-07 11:22:30 -07:00
Anthony Xu 3ae9b57131 clean up xenserver resource code 2014-04-04 16:02:17 -07:00
sbalineni 00f0d9b3c8 internal lb support for contrail vpc
Signed-off-by: Alena Prokharchyk <alena.prokharchyk@citrix.com>
2014-04-04 15:35:58 -07:00
Anthony Xu 7ada9b2b1b clean up xenserver resource code 2014-04-04 14:08:23 -07:00
Sanjay Tripathi 38fc91801b CLOUDSTACK-6339: Getting exception while adding XenServer625 host. 2014-04-04 12:32:56 +05:30
Sanjay Tripathi 0d77094141 CLOUDSTACK-6268: Unable to get GPU stats, You tried to call a method that does not exist. 2014-04-04 11:28:28 +05:30
Koushik Das 00a4e6ada9 CLOUDSTACK-6286: [Automation] VM deployment is failing in simulator
Added AggregationContolCommand to simulator
2014-04-03 11:48:06 +05:30
Abhinandan Prateek 8ad6b3c7e9 Revert "CLOUDSTACK-6286: added FinishAggregationCommand and StartAggregationCommand to simulator"
This reverts commit 9ddfbe1128. REverting as the dependency is not there in git.
2014-04-03 10:23:42 +05:30
Alex Huang 1439c69b7e Applied Tina's patches for removing the xapi jar 2014-04-02 13:59:43 -07:00
Abhinandan Prateek 1586f419dc CLOUDSTACK-6286: added FinishAggregationCommand and StartAggregationCommand to simulator 2014-04-02 20:42:49 +05:30
Min Chen 4367d1406b Change AccountManagerImpl.checkAccess to invoke SecurityChecker
interface that takes multiple controlled entities.
2014-04-01 17:31:56 -07:00
Min Chen c89eb73304 Remove usage of sameOwner checkAccess invocation, and convert to
OperateEntry IAM check.
2014-04-01 17:31:56 -07:00
Anshul Gangwar 90117f09e8 CLOUDSTACK-6288: Changing default ImageFormat to vhdx for hyper-v and allowing registration of vhdx format templates.
Signed-off-by: Devdeep Singh <devdeep@gmail.com>
2014-04-01 13:40:21 +05:30
Mike Tutkowski e7724e90ba CLOUDSTACK-6170 (VMware root-disk support for managed storage) 2014-04-01 00:05:34 -06:00
Mike Tutkowski ac352388b0 CLOUDSTACK-6170 (VMware root-disk support for managed storage) 2014-03-31 21:17:11 -06:00
Sheng Yang c388afc8cd CLOUDSTACK-6309: Fix timeout in KVM when execute VR commands
Timeout is in seconds rather than milliseconds.
2014-03-31 11:29:02 -07:00
Mike Tutkowski fe0c9768cf CLOUDSTACK-6170 (VMware root-disk support for managed storage) 2014-03-31 00:10:49 -06:00
Anthony Xu 36fa355f0b Add support for XS6.2 Fox hotfix 2014-03-28 16:54:18 -07:00
Anthony Xu 60563d395f Revert "change below file names for consistency"
This reverts commit 9493b4d65c.
2014-03-28 12:15:02 -07:00
Mike Tutkowski 553630b1b9 CLOUDSTACK-6170 (VMware root-disk support for managed storage) 2014-03-28 12:52:56 -06:00
Anthony Xu 9493b4d65c change below file names for consistency
Xenserver625Resource.java  ->  XenServer625Resource.java
Xenserver625StorageProcessor.java  ->  XenServer625StorageProcessor.java
2014-03-28 11:46:26 -07:00
Hugo Trippaers 2ade6b9188 Fix pom relative path
(cherry picked from commit 15b6860c68)
2014-03-28 09:36:21 +01:00
Edison Su 392dc817af fix build 2014-03-27 17:38:42 -07:00
Edison Su f1ff060bb9 fix devcloud reboot issue: should not start heartbeat for devcloud
Conflicts:

	plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
2014-03-27 17:38:41 -07:00
edison b2f4939402 CLOUDSTACK-5857: for some reasons, delete secondary pool failed during copy template from secondary storage to primary storage, but the volume is already copied to primary storage, we didn't clean up the volume on primary storage, then all the following copy the same template to primary storage failed, as we are always using the same uuid when creating a new volume, libvirt complaining that the volume already exists.
Current fix is ignoring "the delete secondary storage error".
2014-03-27 17:38:40 -07:00
edison a4af8ece8a CLOUDSTACK-5370: delete snapshot on primary storage in case of backup snapshot failed. 2014-03-27 17:38:38 -07:00
edison 18f59f9ce8 CLOUDSTACK-5573: bump gson version to 1.7.2, fix https://code.google.com/p/google-gson/issues/detail?id=354 2014-03-27 17:38:38 -07:00
edison 04220daf4c CLOUDSTACK-5737: ignore umount secondary storage failure during backup snapshot 2014-03-27 17:38:38 -07:00
Edison Su a3736f26f1 CLOUDSTACK-5264: add delta snapshot for existing xenserver
Conflicts:

	plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerStorageProcessor.java
2014-03-27 17:38:37 -07:00
Edison Su 810e090ad4 CLOUDSTACK-5395: mark snapshot_store_ref as destroyed in case of backup snapshot failed
Conflicts:

	plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerStorageProcessor.java
2014-03-27 17:38:37 -07:00
Edison Su fc3e413584 fix devcloud: after devcloud vm itself reboot, local storage's name label is changed to orignal 2014-03-27 17:38:36 -07:00
Edison Su 5b16ccb50e fix devcloud: user template's guest os type is changed
Conflicts:

	plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XcpOssResource.java
2014-03-27 17:38:36 -07:00
Edison Su 3d0b739950 fix devcloud router start
Conflicts:

	plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XcpOssResource.java
2014-03-27 17:38:36 -07:00
Edison Su f84fc12d26 fix devcloud: get back whatever we have before
Conflicts:

	plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XcpOssResource.java
	scripts/vm/hypervisor/xenserver/xcposs/patch
2014-03-27 17:38:36 -07:00
Edison Su 9900ae7002 CLOUDSTACK-5737: isExternalSnapshot should return true for CLVM and RBD only 2014-03-27 17:38:35 -07:00
Marcus Sorensen eacc1d7fff CLOUDSTACK-6292: Fix live migration of KVM when vnc ip address
changes

Submitted-by: Yoshikazu Nojima
2014-03-27 16:47:00 -06:00
Anthony Xu bdc4ffc010 add more log for creating XS pool network 2014-03-27 15:32:48 -07:00
Anthony Xu 91a3365184 Fixed a typo 2014-03-27 10:46:03 -07:00
Santhosh Edukulla 38b8677e01 Added fix for CLOUDSTACK-6269
Added fix for CLOUDSTACK-6269.More details inside the bug

Signed-off-by: Santhosh Edukulla <Santhosh.Edukulla@citrix.com>
2014-03-27 14:46:11 +05:30
Kishan Kavala 50b92054c5 CLOUDSTACK-6122: Map rbd image on host before attaching to Vm 2014-03-27 14:35:09 +05:30
Anthony Xu b4d3aac74d get rrd through http directly instead of xapi plugins 2014-03-26 18:02:52 -07:00
Anthony Xu 15d798d882 in XS, joining a host to a XS pool may not work as expected, especially when there are multiple nics, binding devices.
admin needs to check if the right nics are binded togather, if network are propagated to the new host correctly before adding this host to CS.
2014-03-26 16:42:17 -07:00
Anthony Xu cb61d35ad0 set nosubdir for NFS SR 2014-03-26 14:57:39 -07:00
Anthony Xu 296dc861bc in XenServer, host eject may fail due to diffent reasons, it's hard for CS to handle all failure.
in CS, removing a host means CS will not manage the host, admin needs to eject the host from XS pool outside of CS
2014-03-26 14:21:28 -07:00
Anthony Xu e0863281af make sure XS host is enabled when creating XAPI connection 2014-03-25 11:30:56 -07:00
Anthony Xu 6837333393 check_heartbeat and pingtest execute through ssh, not XAPI, because XAPI may hang when master host is downi 2014-03-25 10:43:25 -07:00
Murali Reddy 1b34959c89 CLOUDSTACK-6281: OVS distributed routing: exclude non implemented
networks while sending VPC topology updates as GRE key is not associated
with the network unless implemented.
2014-03-25 16:42:45 +05:30
Anthony Xu a19d50ec10 when start vm times out, check VM status, if it is running , return succeed.
change XAPI timeout to 60 second.
2014-03-24 17:16:19 -07:00
Prachi Damle a5b9814f7a Fixes to ensure Network entity checkAccess invokes the IAM service 2014-03-24 17:09:43 -07:00
Anthony Xu 9c7b60f27d addHostCmd will try to load all hosts in a pool 2014-03-24 16:07:39 -07:00
Sheng Yang d56b45a1c3 CLOUDSTACK-6047: Fix timeout issue when try to execute aggregated commands
Add executeInVR() with timeout interface to VirtualRouterDeployer

AggregationControlCommand with Action.Finish may take longer than normal command
since it would execute all the commands in one execution, and it may result in
SSH timeout for SshHelper or other mechanism communicate with VR.

Introduce an new executeInVR() interface with added timeout period for waiting
FinishAggregationCommand to complete execution.
2014-03-24 13:37:38 -07:00
Rajani Karuturi fc8cb754f0 simulator manager impl changes to handle SetMonitorServiceCommand This fixes some of the test cases in the integration test test_assign_vm.py when run against a simulator
Signed-off-by: Koushik Das <koushik@apache.org>
2014-03-20 16:11:33 +05:30
Edison Su f109e38791 add apache licence header for cloudbyte 2014-03-19 16:38:02 -07:00
punith-cloudbyte 342696f271 cloudbyte storage plugin for master commit 2014-03-19 16:37:49 -07:00
Marcus Sorensen e9e2ee3ac5 CLOUDSTACK-6181: Merge of resize root feature (resize-root branch) 2014-03-14 03:40:08 -06:00
Murali Reddy 7a929d1a0e region level VPC support
introduce 'RegionLevelVpc' as capability of 'Connectivity' service. Add
support for CreateVPCOffering to take the 'regionlevelvpc' as capability
of service 'connectivity'.

introduces new capability 'StretchedL2Subnet' for 'Connectivity'
service. Also add support to createNetworkOffering api to allow
StretchedL2Subnet capablity for the connectivity service.

adds check to ensure 'Connectivity' service provider supports
'StretchedL2Subnet' and 'RegionLevelVpc' capabilities when specified in
createNetworkOffering and createVpcOffering respectivley

enable ovs plug-in to support both StretchedL2Subnet and RegionLevelVpc
capabilities

make zone id optional parameter in createVpc, zone id can be null only
if vpc offfering supports region level VPC

in region level vpc, let the network/tier to be created in any zone of
the region

keep zoneid as required param for createVpc

skip external guest network guru if 'Connectivy' service is present in
network offering

fix build break in contrail manager

permit VM's to be created in different zone that in which network is
created if the network support streched L2 subnet

add integration tests for region level VPC

rebase to master

Conflicts:
	setup/db/db/schema-430to440.sql
2014-03-14 21:54:47 +05:30
Rajesh Battala 6a4927f660 Fixed all findbugs in hyperv plugin code 2014-03-14 17:36:43 +05:30
Rajesh Battala 4523f5d8de CLOUDSTACK-6106 Agent side changes for VPC on Hyper-V 2014-03-14 17:36:43 +05:30
Rajesh Battala 1b4325d2c8 CLOUDSTACK-6106 supporting VPC VR on Hyper-V 2014-03-14 17:36:43 +05:30