Commit Graph

1156 Commits

Author SHA1 Message Date
Anthony Xu e2710f8bc5 CLOUDSTACK-4176
hot unplug NIC in VR when there is no ips on this NIC
Author:  Jayapal Reddy Uradi <jayapalreddy.uradi@citrix.com>

Reviewed-by: Anthony
2013-08-19 11:09:46 -07:00
Edison Su a2951b57b1 fix unit test 2013-08-19 10:29:21 -07:00
Rajesh Battala 6c593b0b16 fix for kvm test failure 2013-08-19 17:46:09 +05:30
Nitin Mehta 836ee4b139 CLOUDSTACK-4386
KVM - Create template from volume
Vmware - Create template from volume / Create template from snapshot
send the physical size in the copycommand which accordingly will populate template store ref and the usage_event tables with the right physical size
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-08-19 17:16:38 +05:30
Nitin Mehta a22d92f1bb CLOUDSTACK-4386
XS Creating templates from volume - send the physical size in the copycommand which accordingly will populate template store ref and the usage_event tables with the right physical size
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-08-19 16:03:03 +05:30
Mice Xia 8b6eeedaae fix CLOUDSTACK-3234 modify the logics of retrieving Vmsnapshot volume path 2013-08-19 15:29:09 +08:00
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
Sateesh Chodapuneedi e280d24d18 Merge branch '4.2' of https://git-wip-us.apache.org/repos/asf/cloudstack into 4.2 2013-08-19 05:54:01 +05:30
Prasanna Santhanam 3d39716c8f CLOUDSTACK-4384: Switch back to CLOUD_DB after simulator processing
Simulator should revert back to CLOUD_DB after its operations on
SIMULATOR_DB or the cloudstack connections go to the simulator instead
of cloud.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-19 10:39:54 +05:30
Sateesh Chodapuneedi dd5ea8f2aa CLOUDSTACK-4385 : [ZWPS]Across the cluster live migration of VM on zone wide primary storage pool fails
If all the VM's volumes are on zone wide primary storage pool then live migration of the VM would not involve storage migration. Hence MigrateVM API would be called against MigrateVMWithVolume. So far PrepareForMigrationCommand handled scenarios of VM moving across hosts within a cluster, but with zone wide primary storage in picture this command need to handle scenarios of VM moving across clusters. Try to find the VM in datacenter if not found within cluster.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-08-19 05:52:13 +05:30
Edison Su 3c40e8bb3f CLOUDSTACK-4338: fix NPE if create volume failed 2013-08-18 16:26:08 -07:00
Edison Su 4277bcf8f4 CLOUDSTACK-3229: if delete snapshots on staging area failed, still treat backup snapshot as succeed. And modify snapshot delete logic on devcloud 2013-08-17 13:20:58 -07:00
Edison Su b359152679 CLOUDSTACK-4325: add more test cases for zone wide storage pool allocator 2013-08-17 12:37:49 -07:00
Rajesh Battala a03c5f5b1b CLOUDSTACK-4237 [Autoscale] Account deletion doesn't delete all autoscaled LB rules created by the account 2013-08-17 14:26:58 +05:30
Edison Su ca678a8742 CLOUDSTACK-4300: possible fix: cputune feature is only available after 0.9.0, so start vm can fail on rhel 6.1 2013-08-17 00:19:03 -07:00
Likitha Shetty 2e0ad8e573 CLOUDSTACK-4352. In VMWare, to resize an offline volume we create a worker vm. When a volume is being shrinked or when it is resized to the same size delete the vm before returning. 2013-08-16 14:36:32 +05:30
Min Chen f856c359eb CLOUDSTACK-3229: deleteSnapshotBackup failed on devcloud due to
different SR mount point on devcloud hypervisor.
2013-08-15 17:52:44 -07:00
Min Chen f197a7b79f CLOUDSTACK-2583: [Object_Store_Refactor] Failed to create snapshot from
root disk of a guest VM.
2013-08-14 18:01:09 -07:00
Edison Su a247be70d8 CLOUDSTACK-4315: add code to clean up libvirt data structure after plug/unplug, that's the only thing I can do to fix this kind of libvirt issue 2013-08-14 16:57:14 -07:00
Kelven Yang 950672ef8c CLOUDSTACK-4288: Fix the way that VmwareClient is using vSphere 5.1 SDK which caused huge memory footprint 2013-08-14 15:00:07 -07:00
Edison Su 6abc3da828 CLOUDSTACK-4318: clean up snapshot stored in staging area, after backup snapshot to object store 2013-08-14 14:58:01 -07:00
Edison Su 1451b8b642 CLOUDSTACK-4324: need to clean up snapshot_store_ref, if creating snapshot failed. 2013-08-14 14:18:22 -07:00
Wido den Hollander 97cad491ac CLOUDSTACK-4278: Fix resizing RBD volumes
Although libvirt supports resizing RBD volumes (and other formats) the
Java bindings (libvirt-java) don't.

Right now we use the Java bindings for librbd to handle the resizing for us,
but in the future this should be done by libvirt rather then these
Java bindings.
2013-08-14 16:17:37 +02:00
Sateesh Chodapuneedi 507f742213 CLOUDSTACK-4326 Adding VMware DC to legacy zone should not be allowed by API
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-08-14 12:51:01 +05:30
Wido den Hollander 5d9ce82f7d rbd: When the template is a RAW image, do not use a temp file when deploying 2013-08-14 13:28:21 +02: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
Wei Zhou 7f63128061 Remove unused method deleteVbdByPath from KVM storage classes
(cherry picked from commit c3bc9d65dd)
2013-08-13 23:51:48 +02:00
Rajesh Battala 7281593758 CLOUDSTACK-3369 Autoscaling: Deleting an isolated network of an account deletes also the autoscaling rule for a network associated with another account 2013-08-13 22:21:36 +05:30
Wido den Hollander 8a49f5a1a9 CLOUDSTACK-4114: Use RAW disk images for RBD instead of QCOW2 2013-08-13 16:26:02 +02:00
Prasanna Santhanam 0c294a50a8 CLOUDSTACK-4285: configure simulator API not discovered
- ManagementServerSimulatorImpl is not injected by default context.
configureSimulatorCmd API was loaded as part of it. Use
SimulatorManagerImpl as PluggableService to inject configureSimulator
API.
- Remove unused ManagementServerSimulatorImpl.
- Rename ConfigureSimulator to ConfigureSimulatorCmd for uniformity with
  all API Cmds

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-13 18:02:18 +05:30
Mike Tutkowski b04a2b561b CLOUDSTACK-4264 2013-08-12 21:57:55 -06: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
Kelven Yang edaa1c8927 CLOUDSTACK-3568: Refactore CloudStack/vCenter API session management facility to avoid the situation that multiple API requests are sharing with the same vCenter API session 2013-08-12 16:24:57 -07:00
Sateesh Chodapuneedi 2c9f073249 CLOUDSTACK-3905 [VMWARE]Can not add Standard/DVSwitch when Nexus global config is set to true
Make VSM specific input paramters optional while adding VMware cluster where no traffic chosen to use Nexus 1000v dvSwitch when cloud level vSwitch is Nexus 1000v.

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-08-12 22:41:38 +05:30
Prachi Damle 04abb82786 CLOUDSTACK-4222: [VMWare] NPE: VM Failed to start after Volume Migration
- ExplicitDedicationProcessor should process only if group of this type is used!
2013-08-12 12:16:36 -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
frank a6c9d699bc CLOUDSTACK-4224
UCS:UI: Delete UCS returns unknown API
2013-08-12 12:09:19 -07:00
Edison Su 73c57bf0b2 CLOUDSTACK-4253: add more logs for vmware storage related operations 2013-08-12 11:29:29 -07:00
Edison Su 8e5406f5ba CLOUDSTACK-4253: change the log message if copy template from secondary storage to primary storage failed 2013-08-12 11:01:56 -07:00
JijunLiu df1756b619 add doc for kvm cpu model
Signed-off-by: Wei Zhou <w.zhou@leaseweb.com>
(cherry picked from commit 8d53887cec)
2013-08-12 15:35:01 +02:00
Sateesh Chodapuneedi 32fd0c94a2 CLOUDSTACK-4246 VM deployment fails with global configuration parameter "vmware.nested.virtualization" enabled.
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-08-12 09:51:41 +05:30
Sateesh Chodapuneedi e4f9c2ac44 CLOUDSTACK-4155 [VMWARE] Failed to deploy VM with NPE when vmware.nested.virtualization is enabled to true
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-08-12 07:45:15 +05:30
Harikrishna Patnala a7dea8eecd CLOUDSTACK-3850: CPU cap should be per VM not per VCPU
Signed-off-by: Koushik Das <koushik@apache.org>
2013-08-12 08:37:37 +05:30
Mike Tutkowski 48cf866219 CLOUDSTACK-4235 2013-08-10 16:56:40 -06:00
Mike Tutkowski 8d36a4d80e CLOUDSTACK-4235 2013-08-10 16:54:33 -06:00
Prachi Damle 61bd96cb3e CLOUDSTACK-4234:Dedicated Resources: When multiple dedication groups are chosen for VM deployment, dedicated resources belonging to both groups should be considered
Changes:
- Do not add the dedicated resource to avoid list if it is present in the list of resources to consider for the deployment.
2013-08-10 12:14:07 -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
Edison Su 9f9cf2a7fc CLOUDSTACK-4216: fix extract volume for kvm 2013-08-09 20:52:08 -07:00