Commit Graph

7136 Commits

Author SHA1 Message Date
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
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
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 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
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
Min Chen 71b36e8ff7 CLOUDSTACK-3274: Remove duplicate cleanString calls in logging api for
performance improvement.
2013-08-16 10:46:36 -07:00
Anthony Xu 524e73c63e allow overlapped subnet in shared network 2013-08-16 10:02:45 -07:00
Sateesh Chodapuneedi a21ec81db9 Fix build issue. 2013-08-16 15:58:14 +05:30
Sateesh Chodapuneedi e8d00451b9 CLOUDSTACK-4265 [VMWARE] clustered Management server Unable to perform VM live migration among vmware clusters
This is due to a VM on zone wide primary storage not requiring storage migration while migrating across clster.
Detecting the storage pool type before allowing normal migration (without storage live migration) of VM across cluster.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-08-16 13:59:28 +05:30
Bharat Kumar c6e2e465ed CLOUDSTACK-4068 scaling up user vm and system vm is failing with NPE if current service offering is deleted
Nitin Mehta <nitin.mehta@citrix.com>
2013-08-16 15:10:36 +05:30
Nitin Mehta 25f15bd355 CLOUDSTACK-4313
Wrong error message is throwing on failure of dynamic scale up operation. Fix it.
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-08-16 12:57:14 +05:30
Prachi Damle 3eacdb1547 CLOUDSTACK-3047 java.lang.NullPointerException encountered when executing capacityChecker thread.
Changes:
- Added null check around clusterId, since its possible to have null clusterId for storagepool and host records

Conflicts:

	server/src/com/cloud/capacity/CapacityManagerImpl.java
2013-08-15 17:44:07 -07:00
Min Chen 80dd1e263f CLOUDSTACK-4277:listTemplate should return empty list without any zone
configuration.
2013-08-15 16:34:11 -07:00
Min Chen 9a9ef3112c CLOUDSTACK-4318:[Object_Store_Refactor] Failed to delete snapshot copied
to Staging storage during snapshot creation.
2013-08-14 18:01:09 -07:00
Prachi Damle 1260b97373 CLOUDSTACK-4337 Dedicated Resources: Zone dedicated to an account should only be visible and accessible to that account
Changes:
- When listing a zone, add clause in the search to check the account_id for a dedicated zone
- When listsing a zone with a domainid, add a similar clause.
- DomainCheck:: checkAccess() for a zone should consider that zone can now be dediacted to a specific account and check access accordingly.
2013-08-14 16:11:55 -07:00
Alena Prokharchyk 707d6993bf Revert "fix CLOUDSTACK-2989, do not list network offering with specifyvlan=true for non-root-admin user"
This reverts commit 94254e3c2b.

Conflicts:
	server/src/com/cloud/configuration/ConfigurationManagerImpl.java

Regular user should be able to list the network offering with specifyVlan=true. He just can't use when create the network as he is unaware of the physical network topology. But as the admin can create the network on the user's behalf using this kind of offering, so the user should be able to see the offering's details
2013-08-14 15:21:17 -07:00
Prachi Damle 431ea4988c CLOUDSTACK-4302: Instance wizard UI: Support affinity groups for dedicated zones
Changes:
- Add affinityGroupUuid in the listzones response for dedicatedZones.
2013-08-14 13:42:32 -07:00
Mike Tutkowski 4ee6a6d3ab CLOUDSTACK-4331 - Enable more capacity from a managed storage device to be given to CloudStack 2013-08-14 12:38:38 -06:00
Alena Prokharchyk 14d865fb9b CLOUDSTACK-4315: VPC - when fail to add nic to the VR, a) remove the nic b) remove the reference to nic from router_network_ref table. Before the fix b) was missing, and it caused NPEs when tried to apply the rules on the routers not having nic in the network 2013-08-14 11:22:07 -07:00
Fang Wang 8df22d1818 cloudstack-4308 Add API listCapabilities for KVMSnapshotEnabled so that UI can use it for recurring snapshot. 2013-08-13 12:48:24 -07:00
Vijayendra Bhamidipati c850f0a0e3 CLOUDSTACK-4139: [VMWARE][ZWPS] Failed to resize the volumes which are created from snapshot
Description:

    Support offline volume resize on ESX by creating a worker VM
    to attach the unattached volume to and then resize it.
2013-08-13 12:46:35 -07:00
Anthony Xu 9cc1bc40d2 CLOUDSTACK-4282
allow overlapped subnet with different VLANs in shared network
2013-08-13 15:12:14 -07:00
Edison Su 9505523eca CLOUDSTACK-4298: in case both xenserver/vmware mixed in one zone, need to make sure, ssvm is loaded with premiumsecondaryresource 2013-08-13 14:39:01 -07:00
Edison Su d1c0860921 CLOUDSTACK-4222: use new volume object in case of migrate volume 2013-08-13 14:39:01 -07:00