Commit Graph

7278 Commits

Author SHA1 Message Date
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
Wei Zhou e2f47871d1 CLOUDSTACK-4296: fix a similar issue 2013-08-13 21:55:55 +02:00
Wei Zhou 72f013f780 CLOUDSTACK-4296: fix parameter setting error in listVirtualMachines command 2013-08-13 21:38:27 +02:00
Kishan Kavala a6d6468566 CLOUDSTACK-4289, CLOUDSTACK-4290, CLOUDSTACK-4291 : Check for null when populated UUID while listing usage records.
Filed CLOUDSTACK-4299 to make these entities always available.
2013-08-13 18:57:46 +05:30
Likitha Shetty 836c4c4317 CLOUDSTACK-4286. Add one more check for validating vlanrange parameter with "dedicateGuestVlanRange" API 2013-08-13 18:51:24 +05:30
frank b67af37080 CLOUDSTACK-3481, CLOUDSTACK-1812: create physical network fails while creating basic zone
Skip baremetal provider when it's not found.
(cherry-picked: 6070a8b370)
2013-08-13 17:32:51 +05:30
Nitin Mehta 35b4ab460c CLOUDSTACK-4270
ASF 4.1 to 4.2 Upgrade: Missing Global Configuration parameters on the Upgraded Setup related to "storage.cache". Adding them
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-08-13 12:14:27 +05:30
Likitha Shetty 15b40e5cf2 CLOUDSTACK-4273. 2013-08-13 11:14:32 +05:30
Likitha Shetty dbb49ab1e0 CLOUDSTACK-4273. Volume test cases fails from BVT, test cases failed during attachment. 2013-08-13 10:26:18 +05:30
Mike Tutkowski b04a2b561b CLOUDSTACK-4264 2013-08-12 21:57:55 -06:00
Jessica Wang 63b37214c3 CLOUDSTACK-4142: listNetworkOfferings API has been changed to not return system-owned network offerings to regular-user. So, add networkofferingconservemode property to listNetworks API response. 2013-08-12 17:49:13 -07:00
Prachi Damle 3ad0008c89 CLOUDSTACK-4276 Dedicated Resources: Private Zone functionality issues
Changes:
createZone API:
- This API takes in domainid, set it to the zone record in the data_center table

updateZone API:
- This API uses 'isPublic' flag to set a private zone to public - if this flag is set and the zone is dedicated, release the dedication and remove the domainid from the data_center table

listZone API:
- This API already has 'domainid' parameter. We should allow list zones by domain for Root admin.

DedicateZone API:
- set domainid in the data_center table

ReleaseDedicatedZone API:
- remove zoneid from the data_center table
2013-08-12 17:34:38 -07:00
Prachi Damle 12b05cfbc3 CLOUDSTACK-4259 Dedicated Resources: createAffinityGroup API should not allow admin to create the group of this type through API
Changes:
- Block API from creating this type of group
2013-08-12 12:06:06 -07:00
Min Chen 0c706876bf CLOUDSTACK-4250: [Object_store_refactor] Register ISO fails in multizone
environment if downloading to one of the zone fails.
2013-08-12 11:18:47 -07:00
Saksham Srivastava 2eceb7dcbe CLOUDSTACK-4189: [UI] In multi zone setup, dedicating a single zone to a domain, shows other zones dedicated as well 2013-08-12 18:24:40 +05:30
Murali Reddy 9895d01a53 CLOUDSTACK-4111: Prompt "Acquire New IP - Cross Zones - YES/NO" wizard
only when there is portable IP range added at region level.

region response will now have details if portable IP service is enabled
or not. Portable IP service for a region is turned off by default. when
adming adds a portable ip range portable ip service is enabled for the
region.
2013-08-12 18:11:13 +05:30
Likitha Shetty 32b33bea0f CLOUDSTACK-4244. Unable to attach a volume to a VM deployed in Stopped (startvm=false) state.
While attaching a volume to a VM, create volume on the hypervisor only if the VM has been started on the it.
2013-08-12 15:45:02 +05:30
Rajesh Battala 4c193a1b69 CLOUDSTACK-3946 [KVM] [Zone Wide Primary Storages] migrateVolume is deleting the volume if the source and destination pool are same 2013-08-12 13:29:10 +05:30
Devdeep Singh 47499db17b CLOUDSTACK-3893: Removed Hyper-V from the list of supported hypervisor list. 2013-08-12 13:23:29 +05:30
Harikrishna Patnala 97b8f123a0 CLOUDSTACK-3228: system vms are not comming up in zone with two cluster xen and kvm;Zone host is ready, but secondary storage vm template: 3 is not ready on secondary storage: 2
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-08-12 08:19:37 +05:30
Murali Reddy ba22daa5c9 CLOUDSTACK-4206: [EIP/ELB] Failed to disableStaticNAT when the userVM is
in destroyed state.

ignore VM state when system is enabling static NAT on the system IP to
VM in EIP enable network
2013-08-12 04:46:29 +05:30
Mike Tutkowski 8f503c7ff6 CLOUDSTACK-4227 2013-08-10 17:03:35 -06:00
Prachi Damle 941c12dcd7 CLOUDSTACK-4234 Dedicated Resources: When multiple dedication groups are chosen for VM deployment, dedicated resources belonging to both groups should be considered
- Override the equals method
2013-08-10 12:14:12 -07:00
Prachi Damle b0947c9572 CLOUDSTACK-4221: Dedicated Resources: changes to associate the dedicated resource with the 'ExplicitDedication' affinity group
Changes:
- Adding mocks in unit tests for new injected components
2013-08-10 11:03:03 -07:00
Prachi Damle fac54d2334 CLOUDSTACK-4221: Dedicated Resources: changes to associate the dedicated resource with the 'ExplicitDedication' affinity group
Changes:
- Implict creation of the 'ExplicitDedication' Affinity group during resource dedication
- Only one group per account or per domain will be present
- ListDedicatedResources by affinityGroup
- Deployment should consider dedicated resources associated to the group only
- Deleting affinity group should release the dedicated resouces
- Releasing the dedicated resources should remove the group associated if there are no more resources.
2013-08-10 11:02:57 -07:00
Prachi Damle b965032b57 CLOUDSTACK-4168 Root Admin should be able to create 'ExplicitDedication' affinity group at domain level and make it available for all accounts in the domain
Changes:
- 'ExcplicitDedication' type of group can be created/deleted by Root admin only
- Users can no longer create this type of affinity group
- RootAdmin can create this type of affinitygroup at domain level. Such a domain level group is available for all accounts in that domain for listing and for use during deployVM.
- The domain level affinitygroup should be visible to the users in that domain, domain admins and Root admin.
2013-08-10 11:02:42 -07:00
Harikrishna Patnala 48c8e64ae9 CLOUDSTACK-4123: 3.0.6 to ASF 4.2 Upgrade: On Adding VMWare Cluster to the Setup, 3.0.6 System VM Template for VMWare is downloaded instead of 4.2
Updating the new system template URLs for the existing templates during upgrade to 4.2.
If new 4.2 system template is registered before upgrade then marking the old templates as removed during upgrade.
2013-08-10 17:43:53 +05:30
Anthony Xu e547b9f4cc CLOUDSTACK-4210
delete templateVO entry when there is no image store having this template
2013-08-09 12:02:17 -07:00