Commit Graph

7324 Commits

Author SHA1 Message Date
Alena Prokharchyk 1e1de555fa CS-18283: 2.2.x to 4.2 upgrade - corrected the Service Provider name for the Network offeirng that can be used in VPC (from VirtualRouter to VpcVirtualRouter)
(cherry picked from commit df52280409)

Signed-off-by: animesh <animesh@apache.org>
2013-09-20 11:09:01 -07:00
Alena Prokharchyk 9050cfad3d CLOUDSTACK-4704: 41-42 db upgrade - populate vpc_service_map table with the services/providers supported by VPC
(cherry picked from commit 798f34a49c)

Signed-off-by: animesh <animesh@apache.org>
2013-09-19 18:58:59 -07:00
Nitin Mehta 9162b3c91f CLOUDSTACK-2813 - Some deployment failures do not release the resources.
Applying the short term fix of force cleaning up if the answer recieved from startcommand is not valid
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-09-11 11:58:38 +05:30
Min Chen e39a7d8e0d CLOUDSTACK-4600:Registered Cross-zone template does not populate
template_zone_ref for later added zones.(cherry picked from commit 3dc8b8863a)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 17:21:39 -07:00
Wei Zhou 51707d8c71 CLOUDSTACK-1192: fix collectVmDiskStatistics issue when stopping a vm
(Cherry-picked from commit 65c1c986da)
(cherry picked from commit d0ffc9e339)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:33:18 -07:00
Jayapal fbba6d0e3e CLOUDSTACK-4586 Added CIDR validation for SG Egress rules
(cherry picked from commit b99962d27f)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:32:45 -07:00
Edison Su b269a29f78 disk resize NPE, if the new disk offering doesn't have tags, then NPE
(cherry picked from commit 21a44e3ed1)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:31:41 -07:00
Saksham Srivastava eb85ff6f3b CLOUDSTACK-4572: findHostsForMigration API does not return correct host list
Changes:
Expected behavior:
The api should return the list of suitable/unsuitable hosts
Added fix that creates a deep copy of the the variable allHosts and prevents faulty host list return.
(cherry picked from commit 6354604eed)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 16:25:49 -07:00
Kelven Yang 34ee6f90bb CLOUDSTACK-4458: Volume attach/detach command needs to sent to hypervisor resource even when target VM is in Stopped state
(cherry picked from commit 995e193be2)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 15:59:25 -07:00
Prachi Damle 72a3cbb82e CLOUDSTACK-4528 [Vmware] new mapping vmware datacenter cloudstack zone - Virtual Router host migration across cluster FAIL
Change:
- Also add a check in migrateSystemVM API to check that source and destination host are in the same cluster
(cherry picked from commit b24e9a6dd5)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 15:57:52 -07:00
Prachi Damle cd592f5c23 CLOUDSTACK-4528: [Vmware] new mapping vmware datacenter cloudstack zone - Virtual Router host migration across cluster FAIL
Changes:
- listHosts within same cluster for migration of system and router VMs
(cherry picked from commit 52f4683099)

Signed-off-by: animesh <animesh@apache.org>
2013-09-03 15:57:31 -07:00
Min Chen ddc4990a0d CLOUDSTACK-4530:Create Template from a Snapshot fails with unable to
find any snapshot ova/ovf when we have multiple secondary storage for a
zone.
(cherry picked from commit 4ba68e3b3f)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 21:56:03 -07:00
Edison Su 1b90a4554f CLOUDSTACK-3535: fix regression introduced in 5d9fa5d42e
(cherry picked from commit 6b4aed2aca)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 19:55:23 -07:00
Edison Su 2fdfd66f65 CLOUDSTACK-4459: one more try, bypass libvirt to find volume if libvirt call failed
(cherry picked from commit cfe3a0fee3)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 14:36:53 -07:00
Murali Reddy 4a5f2dd699 CLOUDSTACK-3010: [VMWare] [SharedNetworkWithServices] router VM
deployment fails with error "Message: Invalid configuration for device
'2'."

ensuring that direct network guru assigns a mac address for the nic that
it designs
(cherry picked from commit 47fa6d9561)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 12:56:45 -07:00
Bharat Kumar fa6da31e15 CLOUDSTACK-4498 we should not reserve memory and cpu for vmware VMs if the vmware.reserve.cpu and vmware.reserve.mem are set to false.
Conflicts:
	plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java

Signed-off-by: Jayapal <jayapal@apache.org>
(cherry picked from commit f701831713)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 12:55:14 -07:00
Harikrishna Patnala 1e3eeacf2d CLOUDSTACK-4482: getVMPassword() API call does not return password for Vms that are deployed with password enabled templates.
Improving the error message saying no ssh key pair is assinged to VM to get the encrypted password and included a check for password enabled template

Signed-off-by: Koushik Das <koushik@apache.org>
(cherry picked from commit 37d500d2a6)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 12:54:52 -07:00
Likitha Shetty daaba12997 CLOUDSTACK-4471. If an instance fails to start then mark the volumes allocated as part of VM creation as removed and set the volume state as destroyed.
(cherry picked from commit 7cc8ccead5)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 12:54:10 -07:00
Kelven Yang 21f631f13d CLOUDSTACK-3237: add disk chain sync logic to handle out-of-band chain changes that could happen in storage live migration and VM snapshot operations 2013-08-27 12:53:20 -07:00
frank 5524e61f4b CloudStack CLOUDSTACK-4484
Vmware - Not able to fetch userdata from guest Vms using http://<router-address>/latest/user-data
(cherry picked from commit 697cc2e397)

Signed-off-by: animesh <animesh@apache.org>
2013-08-27 12:52:54 -07:00
Min Chen 9103984d34 CLOUDSTACK-3405: execute.in.sequence.hypervisor.commands and
execute.in.sequence.network.element.commands should be set to "true" by
default.
2013-08-26 16:35:34 -07:00
Edison Su a23322bf20 Merge branch '4.2-forward' into 4.2 2013-08-26 16:18:12 -07:00
Koushik Das 9f9f438ab9 CLOUDSTACK-4350: [Performance Testing] Adding hosts take much longer time than baselines
During host connect multiple listeners gets invoked, one of them is the download listener.
As part of processConnect() method, it checks if templates needs to be downloaded to secondary
store for a particular HV type. As part of that check it computes list of HVs present in the
zone. The earlier logic was to query all hosts (excluding current one) and iterate over them to
make the list. This is not optimal and is bound to have some latency as the number of hosts
increases.
Optimized the logic by querying the list of HVs from the db. directly instead of iterating over
all hosts in the zone.
2013-08-26 15:54:36 +05:30
Min Chen f501c7bbe1 CLOUDSTACK-4481:API: listEventTypes returns nothing; raises ERROR in MS
logs.
2013-08-23 15:19:20 -07:00
Min Chen bb78cb94af CLOUDSTACK-4478:API: ListSwiftsCmd API missing. 2013-08-23 13:21:27 -07:00
Devdeep Singh 5b319ba0cb CLOUDSTACK-4470, findHostsForMigration api isn't setting the requiresStorageMotion flag to true
when a virtual machine is to be migrated across cluster and the source and destination host do
not share storage pools. migrationRequired flag was introduced in a recent commit that was always
set to false for XenServer. This caused the destination host to be flaged as not requiring
storage motion. Fixed the scope of the boolean and defaulted it to true. Other checks validate
if storage motion is required for XenServer.
2013-08-23 15:12:59 +05:30
Edison Su 17ffe48ad2 add table lock on snapshot, during taking snapshot 2013-08-22 20:39:09 -07:00
Animesh Chaturvedi 06f28722b6 Updating pom.xml version numbers for release 4.2.0
Signed-off-by: Animesh Chaturvedi <animesh@Animesh-LinuxDev.citrite.net>
2013-08-22 17:15:42 -07:00
Edison Su 5e013e9931 add test
(cherry picked from commit d157e2970e)

Signed-off-by: animesh <animesh@apache.org>
2013-08-22 15:51:23 -07:00
Marcus Sorensen 60e68ab9ed CLOUDSTACK-4661: fix vpcid field in response of creating vpn gateway
(cherry picked from commit e9c99fc0d4)

Signed-off-by: animesh <animesh@apache.org>
2013-08-22 15:46:20 -07:00
Koushik Das 75185f7bf4 CLOUDSTACK-3441: [Load Test] High delays between VM being allocated to Pod and network implementation causing delays in VM deployment
The locking code in implement/shutdown network code was not efficient. Even in order to check the current state of the network lock was getting acquired which is not required. This resulted in delays in deploy VM as can be seen from attached logs where the code waited on the lock just to check if network is implemented.
As part of the fix moved out code that is checking if the network is already implemented or shutdowned outside the lock.
(cherry picked from commit 5528ba4b20)

Signed-off-by: animesh <animesh@apache.org>
2013-08-22 15:26:28 -07:00
Edison Su d157e2970e add test 2013-08-22 15:10:50 -07:00
Marcus Sorensen e9c99fc0d4 CLOUDSTACK-4661: fix vpcid field in response of creating vpn gateway 2013-08-22 15:19:38 -06:00
Murali Reddy ea738cb5fb CLOUDSTACK-4442: Source NAT not applied when network starts up
fixing the buid break introduced with prev commit for this bug
(cherry picked from commit 255c8473db)

Signed-off-by: animesh <animesh@apache.org>
2013-08-22 13:51:34 -07:00
Murali Reddy 1cd53833d1 CLOUDSTACK-4442: Source NAT not applied when network starts up
ensure on network implement/restart/shutdown an ip assoc is sent so that
source nat ip is associated with source nat service provider.
(cherry picked from commit a0f23d0f94)

Signed-off-by: animesh <animesh@apache.org>
2013-08-22 13:51:06 -07:00
Murali Reddy 255c8473db CLOUDSTACK-4442: Source NAT not applied when network starts up
fixing the buid break introduced with prev commit for this bug
2013-08-22 21:07:52 +05:30
Murali Reddy a0f23d0f94 CLOUDSTACK-4442: Source NAT not applied when network starts up
ensure on network implement/restart/shutdown an ip assoc is sent so that
source nat ip is associated with source nat service provider.
2013-08-22 18:45:33 +05:30
Alena Prokharchyk 5d90c60d63 CLOUDSTACK-4428: "kvm.snapshot.enabled" flag shouldn't affect detached volumes, or volumes attached to the vm in Stopped/Destroyed state
(cherry picked from commit 97cb0093c8)

Signed-off-by: animesh <animesh@apache.org>
2013-08-21 23:38:04 -07:00
Koushik Das 5528ba4b20 CLOUDSTACK-3441: [Load Test] High delays between VM being allocated to Pod and network implementation causing delays in VM deployment
The locking code in implement/shutdown network code was not efficient. Even in order to check the current state of the network lock was getting acquired which is not required. This resulted in delays in deploy VM as can be seen from attached logs where the code waited on the lock just to check if network is implemented.
As part of the fix moved out code that is checking if the network is already implemented or shutdowned outside the lock.
2013-08-22 11:06:54 +05:30
Koushik Das c86e8fcae5 CLOUDSTACK-2131: [Performance][Enhancement] Avoid checking for providers that are not enabled while creating network.
For some scenarios like prepare nic, all network service providers are checked which is not efficient and also introduces unnecessary dependencies.
The check to use only the required providers is already there for implement, shutdown operation on network. Put the same check for all missing cases.
2013-08-22 11:06:16 +05:30
Alena Prokharchyk 97cb0093c8 CLOUDSTACK-4428: "kvm.snapshot.enabled" flag shouldn't affect detached volumes, or volumes attached to the vm in Stopped/Destroyed state 2013-08-21 16:21:35 -07:00
Alena Prokharchyk 3b37009ad1 CLOUDSTACK-4392: API volumeresponse - return primary storage information to ROOT and resource domain admin only. 2013-08-21 15:41:53 -07:00
Edison Su dfa81da53a delete snapshot_store_ref if the snapshot is in error state 2013-08-20 15:33:24 -07:00
Kelven Yang d7c49e485a CLOUDSTACK-4376: fix cloud-early-config to workaround vSwitch stall in VPC mode. fix potential NPE in DirectAgentAttache in processing answers from resource 2013-08-20 14:58:52 -07:00
Min Chen 03011b8d7b CLOUDSTACK-3950:Set cross-zone flag in registerTemplate/registerIso in
case of region-wide secondary is enabled.
2013-08-20 13:33:01 -07:00
Alena Prokharchyk ca1aa5a87e CLOUDSTACK-4410: Parallel vm execution - turn on and off based on the global configuration variable. Before the fix, was hard coded to on 2013-08-20 11:04:02 -07:00
Sateesh Chodapuneedi 893d524d57 CLOUDSTACK-4375 VM Migration is failing from one cluster to another cluster.
Updating the fix to cover one more scenario when user directly calls API migrateVirtualMachineWithVolume.
If currentPool is accessible to destination host, skip calling allocators and move on to next volume to process.
This means if user calls migrateVirtualMachineWithVolume API where all volumes of VM are accessible on specified target host,
then API fails as there is no storage migration involved. Instead user should call migrateVirtualMachine API.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-08-20 04:25:46 +05:30
Sateesh Chodapuneedi bdb8107c61 CLOUDSTACK-4375 VM Migration is failing from one cluster to another cluster.
listHostsForMigrationOfVM is being called when user attempts to move a VM to other host. This is trying to find list of suitable storage pools that are attached to each of the suitable hosts for the VM.
Currently the selection of target storage pools for each volume of the VM is left to storage pool allocators.
But user might want to leave his volume unmoved/intact If it is on a zone wide storage pool.
This would be more efficient while migrating VM as storage live migration is not required and VM continues to use volumes on same storage pool as before.
Hence idea is to set same storage pool as target pool for each of the volume if the volume is already on zone wide storage pool.
A comparison of source pool of volume against target pool of volume yields the information if storage migration is required for the VM to move to target host or not.
Based on that information apropriate API migrateVM or migrateVmWithVolume could be decided.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-08-19 21:03:46 +05:30
Kelven Yang b73c449914 CLOUDSTACK-4390, CLOUDSTACK-4358: Enable full-clone deployment by default for VMware. Apply keep-alive kick for all outstanding vCenter sessions 2013-08-18 23:13:00 -07:00
Marcus Sorensen ca7f22062b CLOUDSTACK-4379: Reset VM states when host is removed from cluster
If you shut down the agent while VMs are running, the management
server assumes that the VMs are continuing to run. You can then
delete the host while it is in 'disconnected' state, and those VMs
will be unusable, forever in running state. They can't change state
because the host no longer exists. This patch checks for any VMs
that may have been tied to the removed host and resets their state
so that cloudstack can continue to manage them.
2013-08-17 00:24:33 -06:00