Commit Graph

190 Commits

Author SHA1 Message Date
tuna 7c3ab31fbb deploy docker vm without starting it 2014-04-03 01:49:31 +07:00
Harikrishna Patnala e11bbe7651 CLOUDSTACK-6211: Xenserver - HA - SSVM fails to start due to running out of management Ip ranges when testing host down scenarios
Signed-off-by: Koushik Das <koushik@apache.org>
(cherry picked from commit 15bf144f1a)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
2014-03-17 16:18:49 -07:00
Alena Prokharchyk e0e13434b9 CLOUDSTACK-5872: use List DS for storing NicProfiles as public network can have more than one nic
Conflicts:
	server/src/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java
2014-03-05 13:35:43 -08:00
Koushik Das 360b7e3b29 CLOUDSTACK-6124: During MS maintenance unfinished work items are not cleaned up resulting in them getting repeated for every subsequent maintenance
Updating the op_it_work table entry appropriately in db once the unfinished work item is completed.
(cherry picked from commit c6a8659ac2)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
2014-03-04 23:37:42 -08:00
Koushik Das 523cbdda68 CLOUDSTACK-5989: Trying to start a vm while 'vm snapshot' is in progress results in inconsistency
The fix is to fail the start operation if a vm snapshot is in progress
(cherry picked from commit 775fa0f0d0)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
2014-01-30 17:54:50 -08:00
Mike Tutkowski 7125ac7382 CLOUDSTACK-5873: [Automation] Failed to attach volume to VM, if the vm is created with option startvm=false
(cherry picked from commit 0679af3434)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
2014-01-22 13:07:16 -08:00
Likitha Shetty c14941edf8 CLOUDSTACK-5927. Storage garbage collector is trying to destroy the SSVM/CPVM root disk that is in use.
In case of VMware VM during root volume preparation if we are switching to a new volume, force expunge root disk that was created from the old template.
Because otherwise storage garbage collector will later try to expunge the old disk marked for expunge and fail with 'Cannot delete file' exception
since in VMware the new root vmdk has the same name and is now in use.
(cherry picked from commit 94ea2736f4)

Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
2014-01-22 13:05:46 -08:00
Animesh Chaturvedi 70ba92fc14 Updating pom.xml version numbers for release 4.3.0
Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
2014-01-21 17:29:51 -08:00
edison 1b064515ac CLOUDSTACK-5432: potential bugs in case of stop mgt server while template is downloading, template_store_ref has leftover not in ready state, when create vm from that template, the code doesn't check either zone id, nor template_store_ref state. 2014-01-20 17:15:23 -08:00
Kelven Yang 8db0d83d1a CLOUDSTACK-5358: Bring back concurrency control in sync-queue management 2014-01-20 16:53:33 -08:00
Mike Tutkowski 0e053668b8 CLOUDSTACK-5873: [Automation] Failed to attach volume to VM, if the vm is created with option startvm=false 2014-01-18 12:36:53 -07:00
edison 7c2449dabd CLOUDSTACK-5432:sync vm and storage commands on mgt server for kvm 2014-01-17 15:23:43 -08:00
Prachi Damle c2902db0b1 CLOUDSTACK-5895: CreateVolumeFromSnapshot can fail in a multiple pod environment with tagged storagepool
Changes:

    After finding the storagepool suitable to create the volume, we should not look for more pods
2014-01-17 14:05:22 -08:00
Anthony Xu b52e8028e9 only send stop command when agent reports VM running and CS thinks it is stopped. 2014-01-17 11:48:27 -08:00
Kelven Yang be0d688511 CLOUDSTACK-5731: Use general instance type to categorize VM work jobs to correctly serialize VM operations 2014-01-17 10:42:04 -08:00
Mike Tutkowski e2364cfca6 CLOUDSTACK-5873: [Automation] Failed to attach volume to VM, if the vm is created with option startvm=false 2014-01-16 12:08:05 -07:00
Kelven Yang 7a8c0e3ae0 CLOUDSTACK-5696: Fix sync issue with out-of-band changes 2014-01-14 17:33:15 -08:00
Murali Reddy b6698f354c CLOUDSTACK-5861: networks that failed to implement can not be destroyed
introduces a force option in delete network to forcifully delete a
network. This comes handy in rare cases where network fails to implenet
and network is in shutdown state, but network shutdown to rollback
implement process fails as well.
2014-01-13 23:24:12 +05:30
Min Chen 693f0c280a CLOUDSTACK-5841:Snapshots taken before migration NFS to S3 can not be
used cross-zone.
2014-01-08 16:33:37 -08:00
Harikrishna Patnala c3e6444adf CLOUDSTACK-5827: [Automation] Destroy VM failed, while deleting account
Signed-off-by: Koushik Das <koushik@apache.org>
2014-01-08 18:29:58 +05:30
Kelven Yang c75b0044ef CLOUDSTACK-5765: cleanup internal serialization and exception propagation issues 2014-01-07 17:12:06 -08:00
Koushik Das 2b2d5998d7 CLOUDSTACK-5002: unable to destroy vm ;VM destroy failed in Stop i-2-59-VM Command due to You gave an invalid object reference. The object may have recently been deleted.
This is happening as concurrent operations are happening on the same VM. Earlier this was not seen as all vm operations were synchronized at agent layer. By making execute.in.sequence
global config to false this restriction is no longer there. In the latest code operations to a single vm are synchronized by maintaining a job queue. In some scenarios the destroy vm operation
was not going through this job queue mechanism and so was resulting in failures due to simultaneous operations.
2014-01-06 18:19:06 +05:30
Kelven Yang 22a1b8c3fc CLOUDSTACK-5672: Fix VM work job serialization issues in Add/Remove nic 2014-01-03 17:20:24 -08:00
edison db25228b23 CLOUDSTACK-5329: fix NPE in storage migration for zone-wide primary storage, and also the serization error. 2014-01-03 16:44:21 -08:00
Kelven Yang ce7bc8fd90 CLOUDSTACK-5725: put origin flow context id into log4j context prefix to link jobs with the orchestration work flow in logging 2014-01-03 15:47:03 -08:00
Kelven Yang 9cad092054 CLOUDSTACK-5767: Remove the logic of using underlying job related fields for volume specific logic. 2014-01-03 13:10:32 -08:00
Harikrishna Patnala 6ce46e94f5 CLOUDSTACK-5730: [Automation]DirectAgentAttache's send command fails due to ArrayIndexOutOfBoundsException; Unable to cleanup hypervisor's datastructures as part of Delete Account Job
Signed-off-by: Koushik Das <koushik@apache.org>
2014-01-03 15:42:31 +05:30
Kelven Yang a03c8fe668 Fix a typo caused problem in attach-volume process 2013-12-31 15:13:10 -08:00
Kelven Yang 3094160718 CLOUDSTACK-669: Finalize VM work dispatching mechanism to avoid big switch statement 2013-12-31 13:32:28 -08:00
Mike Tutkowski e65fae412c CLOUDSTACK-5662: XenServer can't discover iSCSI targets with different credentials 2013-12-28 21:43:28 -07:00
Mike Tutkowski 8eb430f602 CLOUDSTACK-5662: XenServer can't discover iSCSI targets with different credentials 2013-12-28 00:12:11 -07:00
Kelven Yang dc303fda6e CLOUDSTACK-669: Convert volume snapshot orchestration flow to make it be serialized with other VM operations 2013-12-27 16:40:50 -08:00
Devdeep Singh 7e54ca8831 CLOUDSTACK-5456: Download root volume when vm is in stopped state fails on hyper-v. Made
changes to make sure the volume entry is created in the db with the right image format.
2013-12-26 19:11:11 +05:30
Devdeep Singh 079323f591 CLOUDSTACK-5420: The agent manager wasn't transitioning the host to maintenance
mode if their are no vms running on the host. Made the change to do so.
2013-12-26 11:14:01 +05:30
Kelven Yang 497feab841 CLOUDSTACK-669: covert VMsnapshot orchestration flows to make them be serialized with other VM operations 2013-12-20 16:45:27 -08:00
Harikrishna Patnala 1c6b146d04 CLOUDSTACK-5554: Custom disk offering allows to create a datadisk with size greater than custom.diskoffering.size.max value 2013-12-19 15:45:43 +05:30
edison 15403a1f29 add xenserver 6.2.0 hotfix support, to optimize vdi copy
add xenserver hot fix
2013-12-18 18:22:52 -08:00
Koushik Das efe2549e7a CLOUDSTACK-5458: cpu speed is not getting updated in vm_instance table after service offeirngs change
Removed cpu, ram and cpu speed fields from the vm_instance table as these are not used
2013-12-18 15:34:44 +05:30
Nitin Mehta dc0f8ebdf1 CLOUDSTACK-4941:
During HA call different planners which skip some heurestics
2013-12-17 18:32:46 -08:00
Kelven Yang ed2125ec34 CLOUDSTACK-669: convert volume attach/detach flows to make them be serialized with other VM operations 2013-12-17 17:11:05 -08:00
Prachi Damle 35afd012f5 CLOUDSTACK-4852: Since upgrade to 4.2 only users at the zone-attached domain level can manipulate VMs
Changes:
- The vmprofile owner passed in to the planner should be the VM's account and not the caller
- Do not do the access check for Root Admin
2013-12-17 11:23:21 -08:00
Bharat Kumar 9118bbf934 CLOUDSTACK-5495 Unable to stop VM. adding the changes to make the global config execute.in.sequence.hypervisor.commands configurable for stopvm command.
Signed-off-by: Koushik Das <koushik@apache.org>
2013-12-17 17:43:19 +05:30
Murali Reddy df16623533 CLOUDSTACK-4616: When system Vms fail to start when host is down , link
local Ip addresses do not get released resulting in all the link local
Ip addresses being consumed eventually.

fix ensure Nics with reservation strategy 'Start' should go through
release phase in the Nic life cycle so that release is performed before
Nic is removed to avoid resource leaks.
2013-12-16 19:03:16 +05:30
Kelven Yang 96678bbbfb CLOUDSTACK-669: refactor VM work job dispatcher to allow volume/snapshot manager to participate serialized job handling 2013-12-13 17:26:13 -08:00
Kelven Yang 619f5381d5 CLOUDSTACK-669: put user vm work under new vmsync model 2013-12-11 16:19:57 -08:00
Jayapal 3caef2b1d5 CLOUDSTACK-5278 Fixed cleaning up egress default rules on VR and SRX
1. Egress default policy rules is send to the firewall provider. It is up to the
    provider to configure the rules.
   2. The default policy rules are send for both allow and deny default policy.
   3. On network shutdown rules for delete are send.
   4. For VR and SRX, by default deny the traffic. So no default rule to deny traffic is required.
2013-12-10 14:43:13 +05:30
Kelven Yang d931718ab2 CLOUDSTACK-669: put system vm work under new vmsync model 2013-12-06 15:48:10 -08:00
Prachi Damle 13d2caa6b5 CLOUDSTACK-5401: VM migration during host maintenance fails if pool.storage.capacity.disablethreshold is lowered
Changes:
- During Vm migration while finding a new host within the cluster, we need to set the storagepool Id to the deployment plan too.
- This will indicate the planner that the volumes are ready and no need to find new pool
- This in turn will prevent the threshold check done during the pool allocation. This step is not needed since there is no need to allocate pools newly.
- Thus the migration wont fail because th threshold check fails.
2013-12-06 13:18:40 -08:00
Prachi Damle 3a6adb3c58 CLOUDSTACK-5399: Add option to createVolume API to specify a VM, to place the volume appropriately and attach immediately
Changes:

    - Added 'virtualmachineid' parameter to the createVolume API to specify a VM for the volume. The Vm should be in 'Running' or 'Stopped' state.
    - This parameter is used only when createVolume API is called using snapshotid parameter
    - When this parameter is set, the volume is created from the snapshot in the pod/cluster of the VM. Also the volume is then attached to the VM in the same request
    - If attach Volume fails but create has succeeded, the API errors out but the Volume created remains available. User may attach the same volume later
    - When Vm is provided, but if no storage pool is available in the VM's pod/cluster then the volume is not created and API fails.
2013-12-06 13:18:37 -08:00
Anthony Xu 0847ccfe97 XS VMmetadata platform contains virtual platform related info, CS should save platform info in DB to migrate the VM to other Cluster
Conflicts:
	engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java
	plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
	server/src/com/cloud/template/TemplateManagerImpl.java
2013-12-05 01:17:56 -08:00