Commit Graph

1246 Commits

Author SHA1 Message Date
Daan Hoogland 8db506b536 Updating pom.xml version numbers for release 4.4.1
Signed-off-by: Daan Hoogland <daan@onecht.net>
2014-10-14 23:16:38 +02:00
Daan Hoogland f1e2312523 whitespace 2014-10-09 11:07:29 +02:00
Daan Hoogland 1de10dd6df CLOUDSTACK-7674 throw an exception when encountered
Conflicts:
	engine/schema/src/com/cloud/upgrade/dao/Upgrade430to431.java
2014-10-09 11:01:18 +02:00
Daan Hoogland a29f954a26 CLOUDSTACK-7184 retry-wait loop config to deal with network glitches 2014-09-18 08:55:23 +02:00
Upendra Moturi 213bdbde35 CLOUDSTACK-6223. removeNicFromVirtualMachine fails if another instance in another domain has a nic with the same ip and a forwarding rule configured on it
Signed-off-by: Daan Hoogland <daan@onecht.net>
(cherry picked from commit e9af5f44ae)
2014-09-12 12:07:04 +02:00
Bharat Kumar 56c7fc800a CLOUDSTACK-6099 live migration is failing for vm deployed using dynaic compute offerings with NPE
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-09-10 13:27:21 +02:00
Loic Lambiel 6c39c57342 CLOUDSTACK-7404: Failed to start an instance when originating template has been deleted
Signed-off-by: Sebastien Goasguen <runseb@gmail.com>
(cherry picked from commit c1bf7eeeee)
2014-09-05 17:49:36 +02:00
Rohit Yadav 69575877cf DatabaseUpgradeChecker: add upgrade path for ACS 4.3.1
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-09-04 23:11:53 +02:00
Rohit Yadav 208399354f schema: add Upgrade431to440 that extends 430to440
This adds an upgrade path from 4.3.1 to 4.4.0, the implementation of which
simply extends the Upgrade430to440 as there was no schema change between 4.3.0
and 4.3.1

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-09-04 22:45:10 +02:00
Rohit Yadav 0f84c9b43c schema: Add upgrade path 4.3.0 to 4.3.1 picked from 51f145b
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-09-04 22:45:10 +02:00
Min Chen e454acc2c0 CLOUDSTACK-6236:fix a copy-and-paste error for decrRefCnt in
VolumeDataStoreVO.
2014-09-03 21:36:48 -07:00
Ilia Shakitko 8138984dc9 CLOUDSTACK-7398 SecurityGroup Rule related tags cleanup on rule deletion
Signed-off-by: Ilia Shakitko <i.shakitko@tech.leaseweb.com>
(cherry picked from commit 09b09c18cf)
2014-08-22 12:37:12 +02:00
Olivier Lemasle 23b8196445 CLOUDSTACK-7006: Restore template ID in ROOT volume usages
Signed-off-by: Sebastien Goasguen <runseb@gmail.com>
2014-08-18 10:18:06 -04:00
Daan Hoogland 21a6a6993e remove update to 4.3 templates for 4.4 2014-08-05 17:48:58 +02:00
Daan Hoogland 00c2696e7a upgrade of systemvm templates 2014-08-04 14:12:58 +02:00
Daan Hoogland 86083216de close statement 2014-08-04 12:30:38 +02:00
Nitin Mehta 6f709f59cc CLOUDSTACK-7000: ListSnapshotPolicy should list by policyid. Introduce updateSnapshotPolicy command
(cherry picked from commit fce21439fa)

Conflicts:
	api/src/com/cloud/event/EventTypes.java
2014-07-30 13:31:14 +02:00
Nitin Mehta 1fbee507ea CLOUDSTACK-6987: Add support for storing metadata for snapshot policy and controlling policy using display flag
(cherry picked from commit 5cf8edd7ec)

Conflicts:
	setup/db/db/schema-430to440.sql
2014-07-30 13:24:31 +02:00
Anshul Gangwar 8b9166ae0b CLOUDSTACK-6830: Fixed [hyper-v] during VM migration, volumes on zone wide primary
store requires storage migration resulting in failure of VM migration. This also
improves the hostsformigration api. Firstly we were trying to list all hosts and
then finding suitable storage pools for all volumes and then we were checking
whether vm migration requires storage migration to that host. Now the process is
updated. We are checking for only those volumes which are not in zone wide primary
store. We are verifying by comparing volumes->poolid->clusterid to host clusterid.
If it uses local or clusterids are different then verifying whether host has
suitable storage pools for the volume of the vm to be migrated too.

(cherry picked from commit 64153a4371)
2014-07-30 13:21:10 +02:00
Rajani Karuturi 800e40737d Fixed issues reported by coverity NPEs, unwritten field access and self assignment
Signed-off-by: Koushik Das <koushik@apache.org>
(cherry picked from commit 390e498dc5)

Conflicts:
	engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java
2014-07-30 13:08:15 +02:00
Daan Hoogland 3dc0a64b3e try-with-resource to prevent resource leaks
(cherry picked from commit 39f775c381)
(cherry picked from commit fc52e641d8)

Conflicts:
	engine/schema/src/com/cloud/upgrade/dao/Upgrade430to440.java
2014-07-30 13:05:50 +02:00
Nitin Mehta 27c0246e7f CLOUDSTACK-6599: Add the column in Java upgrade path since 4.2 already has the extract template/volume columns
(cherry picked from commit be765ce868)

Conflicts:
	engine/schema/src/com/cloud/upgrade/dao/Upgrade430to440.java
	setup/db/db/schema-430to440.sql
2014-07-30 12:59:22 +02:00
Nitin Mehta fec3b1f865 CLOUDSTACK-6530: Make Network and Volume implement Displayable interface. Iterate over all first class entities in the context to decide the display property for event display.
(cherry picked from commit da0545ff86)

Conflicts:
	api/src/org/apache/cloudstack/api/BaseCmd.java
2014-07-30 12:07:54 +02:00
Rohit Yadav 9de4abeb49 schema: add upgrade path stubs from 4.4.0 to 4.4.1
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2014-07-28 23:52:47 +02:00
Sanjay Tripathi 3d62fbc6e5 CLOUDSTACK-7029: listCapacity fails when podid argument is specified.
(cherry picked from commit ef2cf137a5)
2014-07-28 16:02:51 +02:00
Santhosh Edukulla 2eae404cf7 Fixed failing DatabaseAccessObject unit test cases
Signed-off-by: Daan Hoogland <daan@onecht.net>
(cherry picked from commit ff46258022)
2014-07-28 16:02:43 +02:00
Santhosh Edukulla eb16a4e9e3 Fixed Resource Leaks
Signed-off-by: Daan Hoogland <daan@onecht.net>
(cherry picked from commit c690320f0b)
2014-07-28 16:02:42 +02:00
Alena Prokharchyk 15ffec2632 CLOUDSTACK-6934: don't try to detach volume from host when volume was never allocated to a primary storage
(cherry picked from commit 92fea032da)
2014-07-28 16:02:40 +02:00
Koushik Das aa9f518613 CLOUDSTACK-6740: Direct agent command throttling improvements
List of changes:
1. Created a separate thread pool for handling cron and ping tasks. The size of the pool is based on direct.agent.pool.size. The existing direct agent pool will run all commands other than cron and ping.
2. For normal tasks (generated as part of user/admin API calls), if throttle limit is reached then tasks get queued up for subsequent execution once threads are available.
3. For cron and ping tasks (internally generated by MS like ping, VM sync etc.), if throttle limit is reached then these gets rejected. Since these are internally generated these can be rejected without any issues.

(cherry picked from commit 120da605b0)
2014-07-28 16:02:17 +02:00
Nitin Mehta 5c9ca6c22d CLOUDSTACK-6699: listResouceDetails - enhance it to list by (key,value) pair - allowed to Admin only.
(cherry picked from commit d5425e1a4a)
2014-07-28 16:02:13 +02:00
Koushik Das fb20b71255 CLOUDSTACK-6579: used_bytes column of storage_pool table is no longer used and should be removed
For now correctly setting used_bytes. Also fixed the corresponding simulator code

(cherry picked from commit 64ccf4b48e)
2014-07-28 16:02:05 +02:00
Daan Hoogland c9383c441e Updating pom.xml version numbers for release 4.4.1-SNAPSHOT
Signed-off-by: Daan Hoogland <daan@onecht.net>
2014-07-23 16:55:31 +02:00
Daan Hoogland 80f2694443 Revert "CLOUDSTACK-6935 refactor StoragePoolAllocator#filter logic"
This reverts commit 99dd86e588.
2014-06-27 17:45:35 +02:00
Anshul Gangwar af37ade9e3 CLOUDSTACK-6830: Fixed [hyper-v] during VM migration, volumes on zone wide primary
store requires storage migration resulting in failure of VM migration. This also
improves the hostsformigration api. Firstly we were trying to list all hosts and
then finding suitable storage pools for all volumes and then we were checking
whether vm migration requires storage migration to that host. Now the process is
updated. We are checking for only those volumes which are not in zone wide primary
store. We are verifying by comparing volumes->poolid->clusterid to host clusterid.
If it uses local or clusterids are different then verifying whether host has
suitable storage pools for the volume of the vm to be migrated too.

(cherry picked from commit 64153a4371)

Conflicts:
	engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java
2014-06-23 09:56:17 +02:00
Anshul Gangwar 423c23af40 CLOUDSTACK-6965: fixed the NullPointerException introduced by fix for cloudstack
6935 in AbstractStoragePoolAllocator#filter method for Zone Wide storage

(cherry picked from commit ef45f06f88)
2014-06-23 09:50:04 +02:00
ynojima 99dd86e588 CLOUDSTACK-6935 refactor StoragePoolAllocator#filter logic
to support IOPS capacity control in a cluster wide storage pool and a
local storage pool
to enable hypervisor type check, storage type check for root volume and
avoid list check

Since original commit(31de58edab) contained
a bug, it was reverted and this commit is a revised one.

(cherry picked from commit 45f0c73676)
2014-06-19 09:41:47 +02:00
Santhosh Edukulla 61cf175f1c Coverity issues: Fixed conflicts
Signed-off-by: Daan Hoogland <daan@onecht.net>
2014-06-17 13:49:55 +02:00
Santhosh Edukulla ade82be393 Fixed few resource leak issues
Signed-off-by: Daan Hoogland <daan@onecht.net>
(cherry picked from commit 3c5f64c97a)
2014-06-16 17:16:28 +02:00
Anshul Gangwar a951b51523 CLOUDSTACK-6865 , CLOUDSTACK-6868: [hyperv] while attaching the volume we were changing the volume's Image format to hypervisor's default Image format, hence it was failing to find the volume with vhdx format. Now changed the behavior to set Image Format for volume only when it is not set
(cherry picked from commit ebff469b46)
2014-06-13 12:41:18 +02:00
Anshul Gangwar 117c8fe5b0 CLOUDSTACK-6897: when we try to attach the uploaded/allocated volume to a VM on zwps, then we were passing the podId of VM instead of storage pool to storage allocator. This resulting in use of Clusterscope storage allocator, allocating a storage pool for VM on zwps beacuse of pod id not null. This was resulting in scope conflict later
(cherry picked from commit 2dc9e2c530)
2014-06-13 12:38:14 +02:00
Santhosh Edukulla 87c3d77518 Fixed coverity issues
(cherry picked from commit 4ba3aae2ea)
2014-06-12 14:44:26 +02:00
Olivier Lemasle c934e7b052 CLOUDSTACK-6850: Return cpu cores, cpu speed and memory in listUsageRecords
Signed-off-by: Sebastien Goasguen <runseb@gmail.com>
(cherry picked from commit a1f278e9d4)
2014-06-10 13:39:43 +02:00
amoghvk b490da25ba CLOUDSTACK-6358: Remove hardcoded VMware mappings, handle snapshots
(cherry picked from commit a4b401f29f)
2014-06-10 13:18:56 +02:00
Daan Hoogland beaa65f777 try-with-resource to prevent resource leaks
(cherry picked from commit 39f775c381)
2014-06-06 19:28:21 +02:00
sedukull 6c0b43431f CLOUDSTACK-6793: Fixed an invalid Domain Id Issue
Signed-off-by: sedukull <santhosh.edukulla@gmail.com>
(cherry picked from commit 91d054cb00)
2014-06-06 15:54:45 +02:00
Alena Prokharchyk e6c37ffd41 CLOUDSTACK-6853: Search for non-removed nics only when check if the running vm belongs to a certain network
(cherry picked from commit 03623fe57e)
2014-06-06 13:42:12 +02:00
Alena Prokharchyk 11d8c953e3 CLOUDSTACK-6676: cleanup ip address details on ip disassoc
(cherry picked from commit 66df43572e)
2014-06-06 13:41:23 +02:00
Rajesh Battala 073928fef5 CLOUDSTACK-6831 [Hyper-V] Improve the logging for VM snapshot failures as it is not supported. Right now it is throwing NPEs
(cherry picked from commit d59cc1ff8f)
2014-06-05 14:36:17 +02:00
Rajani Karuturi 004e0cbf61 Fixed ResouceLeak on pstmtCidr in the function Upgrade430to440.moveCidrsToTheirOwnTable as reported by coverity
Fixed another leak which might occur due to outer while loop.

Signed-off-by: Daan Hoogland <daan@onecht.net>
2014-06-03 15:38:16 +02:00
Nitin Mehta 9fd0655adb CLOUDSTACK-6599: Add the column in Java upgrade path since 4.2 already has the extract template/volume columns
Conflicts:
	engine/schema/src/com/cloud/upgrade/dao/Upgrade430to440.java
2014-06-03 10:04:52 +02:00