Edison Su
67113ff0b2
CLOUDSTACK-7946:
...
remove leftover state in volume and snapshot table in case of mgt server
shutdown during storage operation.
Reviewed-by: Min
2014-11-19 16:06:37 -08:00
Edison Su
c05cda0d28
CLOUDSTACK-7945:
...
set removed field in snapshots table in case of snaphsot failure.
Reviewed-by: Frank
2014-11-19 15:58:47 -08:00
Edison Su
5018db8b62
CLOUDSTACK-7945:
...
set removed field in snapshots table in case of snaphsot failure.
Reviewed-by: Frank
2014-11-19 15:58:07 -08:00
Prachi Damle
968ca060ee
CLOUDSTACK-5853 cannot deploy vm with differing service storage tag and data disk storage tag
...
Changes:
- Reverting Marcus's fix since this issue has already fixed by https://issues.apache.org/jira/browse/CLOUDSTACK-5426
2014-11-18 14:07:51 -08:00
Prachi Damle
c5399cdef0
CLOUDSTACK-5853 cannot deploy vm with differing service storage tag and data disk storage tag
...
Changes:
- Reverting Marcus's fix since this issue has already fixed by https://issues.apache.org/jira/browse/CLOUDSTACK-5426
2014-11-18 09:47:23 -08:00
Nitin Mehta
5213401ace
CLOUDSTACK-7920: NPE in the payload was causing the ssvm agent to not connect, fix it and also make sure that template/volume sync are robust that exceptions do not cause ssvm agent disconnect issues.
2014-11-14 16:19:10 -08:00
Mike Tutkowski
2042660a68
Added a "long getUsedIops(StoragePool)" method to the PrimaryDataStoreDriver interface
2014-11-12 13:38:58 -07:00
Mike Tutkowski
18091e9642
Adding support for backend snapshots to Xenserver625StorageProcessor
2014-11-10 22:41:00 -07:00
Damodar
781648fb10
CLOUDSTACK-7792: Usage Events to be captured based on Volume State Machine
2014-11-10 15:19:02 +05:30
Devdeep Singh
cf27ecd91d
CLOUDSTACK-7721. Runtime exception while trying to release lock on template_spool_ref.
...
When a template a copied from a secondary to primary, we were trying to release a lock
twice, once in the create/copy base image function and in the create/copy base image
complete callback routine. This caused the exception as reported in the bug. Fixed by
updating the code make sure we release the lock in copy base image function only as
this is the place we took acquired the lock.
2014-11-10 13:22:39 +05:30
Mike Tutkowski
ebb96f5e2f
Handle the case where the volume a snapshot was created from is removed from the database
2014-11-06 19:44:46 -07:00
Edison Su
885bba926c
should not duplicate vm instance id, during the volume migration
...
Conflicts:
engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java
2014-11-06 15:36:58 -08:00
Mike Tutkowski
92d9ef9c17
Handle the case where a snapshot is associated with a deleted volume
2014-11-06 15:34:39 -07:00
Mike Tutkowski
455ffc3342
Create a template from a SAN snapshot
2014-11-06 10:33:23 -07:00
Sanjay Tripathi
5a67fe7369
CLOUDSTACK-7842: wrong size column is getting updated with snapshot physical size in snapshot_store_ref table.
...
Also fixed the issue that snapshot size with hypervisor XS >= 6.2.5 is not getting updated in snapshot_store_ref table.
2014-11-05 16:44:54 +05:30
Sanjay Tripathi
b844155240
CLOUDSTACK-7842: Wrong size column is getting updated with snapshot physical size in snapshot_store_ref table.
...
Also fixed the issue that snapshot size with hypervisor XS >= 6.2.5 is not getting updated in snapshot_store_ref table.
2014-11-05 16:42:28 +05:30
Sanjay Tripathi
a53d39c1b6
CLOUDSTACK-7835: Deleted volumes with null UUID and no removed timestamp in database still appear.
...
Also removed CREATING -> DESTROY via DESTROYREQUESTED, which was causing the volume to get stuck in expunging
state.
2014-11-04 17:57:31 +05:30
Sanjay Tripathi
1d503bb853
CLOUDSTACK-7835: Deleted volumes with null UUID and no removed timestamp in database still appear.
...
Also removed CREATING -> DESTROY via DESTROYREQUESTED, which was causing the volume to get stuck in expunging
state.
2014-11-04 17:02:50 +05:30
Santhosh Edukulla
1aef5cba66
Fixed Coverity Issues
2014-11-03 16:45:30 +05:30
Edison Su
6b5c874fe9
should not duplicate vm instance id, during the volume migration
2014-10-30 21:27:51 -07:00
Hugo Trippaers
4ebaf0a583
Bump master version to 4.6.0-SNAPSHOT after branching 4.5.0-SNAPSHOT
2014-10-29 14:54:23 +01:00
Mike Tutkowski
c7aa9b4439
Reorganized the snapshot logic a bit
2014-10-21 16:01:15 -06:00
Mike Tutkowski
3690574a23
Reply that reverting is not supported
2014-10-21 16:01:15 -06:00
Mike Tutkowski
8766c8ad43
Improve error handling for a host-side error
2014-10-21 16:01:14 -06:00
Mike Tutkowski
1b5bb7d8c6
Invoke grantAccess and revokeAccess one time each using a SnapshotInfo (where previously a VolumeInfo was being passed in)
...
Handle the case where a SnapshotInfo is passed into the grantAccess and revokeAccess methods
2014-10-21 16:01:14 -06:00
Mike Tutkowski
57dacf99a2
Changed "boolean connectVolumeToHost(VolumeInfo, Host, DataStore)" to "boolean grantAccess(DataObject, Host, DataStore)"
...
Changed "void disconnectVolumeFromHost(VolumeInfo, Host, DataStore)" to "void revokeAccess(DataObject, Host, DataStore)"
2014-10-21 16:01:14 -06:00
Mike Tutkowski
b29265f159
Logic around granting and revoking access to the volume that backs the snapshot
2014-10-21 16:01:14 -06:00
Mike Tutkowski
0cea0346ae
Support for back-end snapshots on primary storage
2014-10-21 16:01:14 -06:00
Mike Tutkowski
06f6b00cd1
Snapshot support
2014-10-21 16:01:13 -06:00
Mike Tutkowski
e70dde09c9
Implementing snapshot-strategy support for reverting a volume to a snapshot
2014-10-14 22:04:18 -06:00
Mike Tutkowski
35a8b70799
Adding a snapshot strategy for systems that want to take snapshots that reside on their own system (as opposed to the default approach of taking a hypervisor snapshot and then copying it to secondary storage)
2014-10-14 12:26:40 -06:00
Santhosh Edukulla
0a9742f914
Fixed few coverity issues
...
Signed-off-by: Santhosh Edukulla <santhosh.edukulla@gmail.com>
2014-10-14 17:16:50 +05:30
Min Chen
0db0e5e3cc
CLOUDSTACK-7700: Volume Snapshot Async Job returns Success for a failed
...
operation.
2014-10-13 15:03:59 -07:00
Min Chen
1e20600eca
CLOUDSTACK-7700: Volume Snapshot Async Job returns Success for a failed
...
operation.
2014-10-13 14:26:27 -07:00
Nitin Mehta
50ee9810a8
CLOUDSTACK-6826: Improving the download url expiration where the expiration work would be handled by the ssvm that has the corresponding symlink created on it. In case it doesnt exist, then would be any one of the ssvm in the zone.
...
Also when the ssvm is destroyed all the download urls are expired to be cleaned up in the next run by the new ssvm.
(cherry picked from commit ce90837357 )
2014-10-13 00:40:03 -04:00
Min Chen
93b9ef8d43
CLOUDSTACK-6478:Fix a typo in RemoteHostEndPoint.setId().
...
(cherry picked from commit aed36c2776 )
2014-10-13 00:29:17 -04:00
Hugo Trippaers
160aa846a5
CLOUDSTACK-7665 File.separator shouldn't be used in this case, the
...
separator is fixed just like the rest of the path
(cherry picked from commit 47ac3e4fd1 )
2014-10-13 00:19:44 -04:00
Likitha Shetty
9f653d7404
BUG-ID: CLOUDSTACK-7653. VM's are not getting deleted from hypervisor after deleting from UI when using zone wide primary storage.
...
While expunging a volume, CS chooses the endpoint to perform delete operation by selecting any host that has the storage containing the volume mounted on it.
Instead, if the volume to be deleted is attached to a VM, the endpoint chosen by CCP should be the host that contains the VM.
(cherry picked from commit f1e3e83bbf )
2014-10-13 00:09:06 -04:00
Nitin Mehta
ce90837357
CLOUDSTACK-6826: Improving the download url expiration where the expiration work would be handled by the ssvm that has the corresponding symlink created on it. In case it doesnt exist, then would be any one of the ssvm in the zone.
...
Also when the ssvm is destroyed all the download urls are expired to be cleaned up in the next run by the new ssvm.
2014-10-10 16:28:48 -07:00
Min Chen
aed36c2776
CLOUDSTACK-6478:Fix a typo in RemoteHostEndPoint.setId().
2014-10-06 15:33:58 -07:00
Hugo Trippaers
47ac3e4fd1
CLOUDSTACK-7665 File.separator shouldn't be used in this case, the
...
separator is fixed just like the rest of the path
2014-10-02 09:54:53 +02:00
Likitha Shetty
f1e3e83bbf
BUG-ID: CLOUDSTACK-7653. VM's are not getting deleted from hypervisor after deleting from UI when using zone wide primary storage.
...
While expunging a volume, CS chooses the endpoint to perform delete operation by selecting any host that has the storage containing the volume mounted on it.
Instead, if the volume to be deleted is attached to a VM, the endpoint chosen by CCP should be the host that contains the VM.
2014-09-30 15:20:15 +05:30
Kishan Kavala
bab81f0d6f
CLOUDSTACK-7478, CLOUDSTACK-7479: Move pool type filter to seperate method
2014-09-05 19:38:55 +05:30
Kishan Kavala
e491716aa7
CLOUDSTACK-7478, CLOUDSTACK-7479: Check for correct storage pool type for ROOT and Data disks in LXC
2014-09-04 22:55:30 +05:30
Mike Tutkowski
1d2f3300ad
Adding support for SolidFire snapshots
2014-09-03 20:09:00 -06:00
Hugo Trippaers
dc3f0cbc63
Improve the handling of the findbug exclude files
2014-09-03 10:41:22 +02:00
Bharat Kumar
cab2b12d7d
CLOUDSTACK-7155 Re-copying templates to other zones doesn't work
2014-08-21 09:50:54 +05:30
Devdeep Singh
f099732be7
CLOUDSTACK-7359. Make sure timeout value is set for the MigrateVolumeCommand. This will
...
make sure the agent waits for the resource to complete (success/failure) migration of
volume on the hypervisor.
2014-08-18 11:38:29 +05:30
Anthony Xu
90fe6d8087
removed trailing space
2014-08-13 11:09:38 -07:00
Anthony Xu
330c4ba578
completed the new vmsync TODOs in the code.
...
removed old vmsync logic
2014-07-28 12:51:37 -07:00
Santhosh Edukulla
7bbe7fc697
Fixed Coverity Issues Reported
2014-07-25 16:41:17 +05:30
Santhosh Edukulla
2018d7d977
Fixed Coverity Issues Reported
2014-07-25 16:39:16 +05:30
amoghvk
c804660c74
CLOUDSTACK-7168: Revert "Fixed Coverity Issues reported" that broke CI
...
This reverts commit 4523490d44 .
2014-07-23 11:37:36 -07:00
Santhosh Edukulla
4523490d44
Fixed Coverity Issues reported
...
Signed-off-by: Santhosh Edukulla <santhosh.edukulla@gmail.com>
2014-07-22 18:03:36 +05:30
Mike Tutkowski
b080eaf327
Updates to the way resizing a volume works
2014-07-17 21:09:19 -06:00
amoghvk
33d6bc278f
Adding missing modified file
2014-07-14 17:42:27 -07:00
amoghvk
62e63a1bf7
CLOUDSTACK-6358: Missing patches in master for VMware
2014-07-14 16:54:10 -07:00
amoghvk
6831ed4026
CLOUDSTACK-6358: Missing patches in master branch
2014-07-14 15:17:58 -07:00
Mike Tutkowski
62c18ca3fa
Fixing an issue in the AbstractStoragePoolAllocator's filter method where zone-wide storage of HypervisorType.Any is skipped
2014-07-07 22:16:58 -06:00
Santhosh Edukulla
a600d8408e
Fixed Resource Leaks, null dereferences, few other issues reported by coverity
2014-07-04 16:17:58 +05:30
ynojima
1e72e5a818
CLOUDSTACK-6935 remove iSCSI storage filtering logic for Root volume
...
since there is no reason to filter it out
2014-07-01 19:57:19 -06:00
ynojima
32ed9d86ec
Revert "Fixing an issue introduced with Review Request 22717"
...
This reverts commit 12e92e10ff .
2014-07-01 19:54:11 -06:00
Mike Tutkowski
12e92e10ff
Fixing an issue introduced with Review Request 22717
2014-06-26 23:56:11 -06:00
Daan Hoogland
c79ab570b0
Revert "CLOUDSTACK-6967: Initial OVM3 drop"
...
This reverts commit 8a485b9b59 .
2014-06-24 10:24:01 +02:00
Funs
8a485b9b59
CLOUDSTACK-6967: Initial OVM3 drop
...
Signed-off-by: Sebastien Goasguen <runseb@gmail.com>
(cherry picked from commit ed47763e25 )
Conflicts:
api/src/com/cloud/network/NetworkService.java
api/src/org/apache/cloudstack/api/ApiConstants.java
api/src/org/apache/cloudstack/api/command/admin/usage/AddTrafficTypeCmd.java
engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/SnapshotObject.java
plugins/pom.xml
server/src/com/cloud/network/NetworkServiceImpl.java
server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
server/test/com/cloud/vpc/MockNetworkManagerImpl.java
ui/scripts/docs.js
2014-06-23 12:39:10 +02:00
Anshul Gangwar
bbcffbbab0
CLOUDSTACK-6965: fixed the NullPointerException introduced by fix for cloudstack
...
6935 in AbstractStoragePoolAllocator#filter method for Zone Wide storage
2014-06-23 12:17:08 +05:30
ynojima
318e497e60
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.
2014-06-18 13:45:52 -06:00
ynojima
77e74841a0
Revert "CLOUDSTACK-6935 refactor StoragePoolAllocator#filter logic"
...
This reverts commit 31de58edab .
2014-06-18 13:04:39 -06:00
ynojima
31de58edab
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
2014-06-18 11:07:34 -06:00
Tim Mackey
a8212d9ef4
Cleanup of Xen and XenServer terms. Cloned xen plugin creating a xenserver plugin, then removed xen plugin
...
Signed-off-by: Tim Mackey <tmackey@gmail.com>
Signed-off-by: Sebastien Goasguen <runseb@gmail.com>
2014-06-07 04:50:23 -04:00
Nitin Mehta
5393387bbd
CLOUDSTACK-6599:
...
1. Adding the missing Template/Volume URLs expiration functionality
2. Improvement - While deleting the volume during expiration use rm -rf as vmware now contains directoy
3. Improvement - Use standard Answer so that the error gets logged in case deletion of expiration link didnt work fine.
4. Improvement - In case of domain change, expire the old urls
2014-05-30 10:48:42 -07:00
Devdeep Singh
7c2b1deb34
CLOUDSTACK-6810: Fix storage migration of a vm with volume on local was failing. When a plan
...
with hostid included was passed to the local storage pool allocator, it returned all the local
storage pools in the cluster, instead of just the local pool on the given host in the plan.
This was happening the search at a host level was happening only for data disk. Fixed this.
Additionally, the query to list the storage pools on a host was failing if the pool did have
tags. Fixed the query too.
CLOUDSTACK-6802: Fix for not being able to attach data disk on local. This issue gets fixed
with the above issue too. The query to list pools on a host was failing if there were no
tags on the storage pool.
2014-05-30 14:46:39 +05:30
Devdeep Singh
5ba5da3696
CLOUDSTACK-6622: After a volume was live migrated, the destination smb storage path was added to
...
the folder column. For an smb share the smb credentials are in the query string of the path.
Before adding the path, smb shares query string should be cleaned up.
2014-05-09 16:31:34 +05:30
Nitin Mehta
c0f72b25c6
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.
2014-05-08 15:37:20 -07:00
Koushik Das
c9a09f548c
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
2014-05-06 20:27:41 +05:30
Min Chen
8e286996c8
CLOUDSTACK-6478: Failed to download Template when having 3 SSVM's in one
...
zone on Vmware.
2014-04-22 20:11:09 -07:00
Saksham Srivastava
eb195d0575
CLOUDSTACK-6151: Local data disk with tag goes to the wrong local storage pool
...
Signed-off-by: Koushik Das <koushik@apache.org>
2014-04-16 16:19:08 +05:30
Ding Yuan
c031eb7d38
CLOUDSTACK-6242: exception handling improvements
...
Signed-off-by: Daan Hoogland <daan@onecht.net>
2014-04-15 08:07:15 +02:00
Marcus Sorensen
11f5bdd78d
CLOUDSTACK-6191 Add support for specifying volume provisioning
...
type (thin, sparse, fat) in disk/compute offerings.
Submitted-by: Yoshikazu Nojima <mail@ynojima.net>
Reviewed-by: Marcus Sorensen, Mike Tutowski
2014-04-10 09:23:04 -06:00
Mike Tutkowski
1577e75a3d
CLOUDSTACK-6170 (VMware root-disk support for managed storage)
2014-03-31 00:13:30 -06:00
Edison Su
25a6234a5b
fix build
2014-03-28 16:24:45 -07:00
Edison Su
e656201fee
CLOUDSTACK-5395: mark snapshot_store_ref as destroyed in case of backup snapshot failed
...
Conflicts:
plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerStorageProcessor.java
2014-03-28 16:21:22 -07:00
Daan Hoogland
8b62b2cb92
findbugs: exclude known spiffy hacks a.k.a. false positives
2014-03-28 14:28:10 +01:00
Chris Suich
27008216fe
Revert "Issue CS-5825 Part Resolution"
...
This reverts commit 9a615ee7b2 which was breaking the build.
2014-03-20 15:47:13 -04:00
Alex Hitchins
9a615ee7b2
Issue CS-5825 Part Resolution
2014-03-20 13:30:42 -04:00
Daan Hoogland
8b510d2481
checkstyle: unused import
2014-03-18 13:18:57 +01:00
edison
ed9ed446c2
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.
Conflicts:
engine/orchestration/src/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java
2014-03-18 12:20:14 +01:00
Min Chen
ae1d6a771b
Remove IAMEntityType to use existing VO interface class to annotate
...
entityType.
2014-03-17 17:19:55 -07:00
Alena Prokharchyk
479986e52b
Fixed compilation error in StorageAllocatorTest.java
2014-03-17 09:58:44 -07:00
Hugo Trippaers
4402685e11
Update master to 4.5.0-SNAPSHOT
2014-03-14 14:55:26 +01:00
Devdeep Singh
2aff39f8c7
CLOUDSTACK-6143: Storage motion support for hyper-v. With these changes a volume on a shared
...
storage pool (SMB) and attached to a running vm can be live migrated to another shared storage
pool. Also a vm and its volumes can be live migrated to another host and storage pool respectively.
2014-03-14 16:27:58 +05:30
Min Chen
8ff94601f1
Merge branch 'rbac' to master
2014-03-13 16:42:22 -07:00
Alena Prokharchyk
6c23e201ad
1) More fixes for the problems found by findBugs
...
2) Corrected some logging in MidoNetPublicNetworkGuru - removed .toString method call on the objects in the log body as toString is called on the object by default when use log4j
2014-03-13 16:05:45 -07:00
Min Chen
99bdc8d875
Merge branch 'master' into rbac.
2014-03-13 11:05:03 -07:00
John Kinsella
09c375379d
CLOUDSTACK-6204: removing realhostip dependency
...
Moving default transport for console proxy, SSVM to http.
See
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Realhost+IP+changes
for more info.
jlk ported Amogh's patch for 4.3 to master - code base is different
enough that patch has multiple issues.
Author: Amogh Vasekar <Amogh Vasekar <amogh.vasekar@citrix.com>
Signed-off-by: John Kinsella <jlk@stratosec.co> 1394398017 -0700
2014-03-09 13:46:57 -07:00
Min Chen
48e08fe676
Merge branch 'master' into rbac.
2014-03-06 14:02:20 -08:00
Mike Tutkowski
b06e66c50a
CLOUDSTACK-6170
2014-03-05 13:55:12 -07:00
Min Chen
d0ae4d9a9f
CLOUDSTACK-5920:Add interface to ControlledEntity to return IAM
...
entity type.
2014-03-05 09:40:55 -08:00
Nitin Mehta
339c4f4c3f
CLOUDSTACK-6199: Action Events - hide them when display flag is off in the context of "Ability to have better control over first class objects in CS" feature.
...
For root admin - s/he should be able to see all the events despite the value of the flag.
2014-03-04 14:59:30 -08:00
Sanjay Tripathi
624139d8ef
CLOUDSTACK-6172: Volume is not retaining same uuid when migrating from one storage to another.
2014-02-26 14:42:34 +05:30
Prachi Damle
f41604fc6c
Renaming AclEntityType --> IAMEntityType
2014-02-25 16:43:17 -08:00
Hugo Trippaers
ac00ab0087
Cleanup all mysql dependencies and set all to provided.
2014-02-21 14:55:11 +01:00
Alena Prokharchyk
e0de79b170
Resource metadata: by default, all metadata is set with display=true (meaning that the detail is avaialble for display to the regular user). If admin wants to set a specific detail to be false, he has to specify it explicitly in addResourceDetail command
2014-02-10 12:05:59 -08:00
Devdeep Singh
306ffa0218
CLOUDSTACK-6053: While adding a primary or secondary of type smb the password wasn't
...
encoded. This cause createStoragePool or addImageStore command to fail if special
characters were present. Updated the code to pass user, password and domain as part
of details while adding primary or secondary. Also made changes on server side to
handle it.
2014-02-10 10:29:09 +05:30
Min Chen
3b58a45e04
Merge branch 'master' into rbac.
2014-02-07 13:43:36 -08:00
Min Chen
bac2c1e5b4
CLOUDSTACK-6049: Give priority to cache stores where data object is
...
already there instead of randomly picking one in case there are multiple
cache stores in the scope.
2014-02-06 17:19:24 -08:00
Min Chen
621276715a
CLOUDSTACK-6046:CreateVolume from snapshot is failing with S3 as
...
secondary storage and zone-wide primary storage.
2014-02-06 15:36:26 -08:00
Ian Southam
cecb216caa
fixBugs finding
...
fm.equals(format) breaks equals contract
Signed-off-by: Daan Hoogland <daan@onecht.net>
2014-02-06 10:32:06 +01:00
Nitin Mehta
86cada3b3c
CLOUDSTACK-2932:
...
Allow deleting of snapshots that have errored out. Simply mark the removed column as there is no physical clean up required. It can land into error state only from allocated/Creating state
which are states before creation on primary storage works
2014-02-05 17:34:48 -08:00
Devdeep Singh
a24263fe81
CLOUDSTACK-6030: Encrypt the primary and secondary smb storage password when it is stored in the db.
2014-02-05 15:44:09 +05:30
Alex Huang
7f34282dfa
Removed references to secondarystoragevmmanager from code that doesn't use it.
2014-02-05 01:39:15 +00:00
Prachi Damle
f84375442e
Merge branch 'master' into rbac
...
Conflicts:
api/src/org/apache/cloudstack/api/command/user/autoscale/ListAutoScaleVmProfilesCmd.java
api/src/org/apache/cloudstack/api/command/user/volume/ResizeVolumeCmd.java
plugins/network-elements/juniper-contrail/test/org/apache/cloudstack/network/contrail/management/MockAccountManager.java
server/src/com/cloud/api/ApiServer.java
server/src/com/cloud/api/query/QueryManagerImpl.java
server/src/com/cloud/template/TemplateAdapterBase.java
setup/db/db/schema-430to440.sql
tools/apidoc/gen_toc.py
2014-02-04 12:07:32 -08:00
Min Chen
9b21da65d1
CLOUDSTACK-6025:CreateTemplate from snapshot in NFS is failing , after
...
migarting to S3 datastore.
2014-02-04 11:01:51 -08:00
Daan Hoogland
ca1b340cef
findbugs make use of return of string manipulation
2014-02-04 11:21:01 +01:00
Min Chen
b35eb04de3
CLOUDSTACK-6017: NPE while creating snapshot multiple times on same Root
...
volume with S3 as secondary storage.
2014-02-03 12:16:19 -08:00
Hugo Trippaers
d56c5dfc13
Fix for a potential NPE
2014-01-31 09:37:11 +01:00
Min Chen
16a9171f55
Fix trailing whitespace.
2014-01-28 14:53:18 -08:00
Min Chen
a26c81178b
CLOUDSTACK-5971:Templates created from a snapshots can't be copied to
...
other zones.
2014-01-28 14:49:58 -08:00
Min Chen
33cd1ab921
Merge branch 'master' into rbac
2014-01-22 11:23:51 -08:00
Min Chen
c0da0a884a
CLOUDSTACK-5921:S3 security key is stored in DB unencrypted
2014-01-21 14:34:32 -08:00
Min Chen
929fbabaa2
Merge branch 'master' into rbac.
2014-01-17 14:37:08 -08:00
Mike Tutkowski
3ef560d925
CLOUDSTACK-5873: [Automation] Failed to attach volume to VM, if the vm is created with option startvm=false
2014-01-16 12:15:18 -07:00
Alex Huang
68b8891c62
Removed all reminants of the IdentityService. Created the KeysManager to move the management
...
of keys out of management server
2014-01-14 13:11:35 -08:00
Mike Tutkowski
21a44934b4
Removed a duplicate method
2014-01-10 13:36:04 -07:00
Marcus Sorensen
fc082832d3
CLOUDSTACK-5853
...
Create two storage pools, one with storage tag X, one with storage tag Y.
Create a service offering with storage tag X.
Create a disk offering with storage tag Y.
Attempt to deploy a virtual machine with a datadisk, using given offerings, it fails.
Deployment planner keeps a global object 'avoid'. It loops through each volume to
be created, asking storage allocators for matching pools, passing this avoid object.
First disk matches a pool or pools, adds ALL other pools to avoid object, then
deployment planner attaches matching pools to a list for that disk.
Second disk matches a pool, adds all other pools to avoid object, then deployment
planner says "wait, matching pool is in avoid, can't use it". Oops. In fact, at this
point ALL pools are in avoid (unless there are other pools that have both tags).
Need to remove matching pool from the avoid set during each select phase.
2014-01-10 11:55:54 -07:00
Mike Tutkowski
ae35782ccd
Merge from 4.3: CLOUDSTACK-5662: XenServer can't discover iSCSI targets with different credentials
2014-01-09 21:36:34 -07:00
Alex Huang
ae8560b195
Moved security out into its own jar. Will be adding more to it. Fixed a few white space issues brought up by checkstyle in eclipse.
2014-01-09 16:12:25 -08:00
Mike Tutkowski
03118c2969
Merge from 4.3: CLOUDSTACK-4810: Enable hypervisor snapshots for CloudStack-managed storage (for XenServer and VMware)
2014-01-09 14:44:35 -07:00
Min Chen
3223028fd6
CLOUDSTACK-5841:Snapshots taken before migration NFS to S3 can not be
...
used cross-zone.
2014-01-08 17:43:06 -08:00
Min Chen
858b9b1177
CLOUDSTACK-5813: With S3 as secondary storage, snapshot taken in one
...
zone cannot be used to create volume in another zone. zoneId parameter
in createVolumeCmd is not observed.
2014-01-08 17:15:04 -08:00
Sanjay Tripathi
3ad0e8fb47
CLOUDSTACK-5701: physical size is not getting updated in snapshot_store_ref table.
2014-01-06 11:36:43 +05:30
Sateesh Chodapuneedi
6ba9754201
CLOUDSTACK-5447 [Automation] Volume migration failing with NullPointerException in vmware and KVM.
...
Instead of injecting object of VolumeOrchestrationService into VmwareResource, we now populate the command object (MigrateVolumeCommand here) with required information. Thus we dont need volume orchestration service to query that information from resource.
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-12-31 06:31:43 +05:30
Min Chen
6f800506fd
CLOUDSTACK-5653:S3 object store as Secondary Storage, the template
...
created from different zone is not available for the other zones.
2013-12-26 14:48:21 -08:00
Min Chen
5d262d7b59
CLOUDSTACK-5648:CopyTemplate and CopyISO across zones fails after NFS
...
migration to S3.
2013-12-26 12:39:39 -08:00
Likitha Shetty
e659751a8a
CLOUDSTACK-5508. Vmware - When there are multiple secondary stores, the newly added secondary store is not being selected for backing up snapshots.
...
If the snapshot being backed up is a a delta snapshot, pick the image store where the parent snapshot is stored. Otheriwse pick a random image store.
2013-12-24 17:34:19 +05:30
Alex Huang
c2baed665b
Moved the check-style.xml into the tools directory given that we're not using the project to reference the style any longer. Fixed problems with eclipse complaining about copy-dependencies
2013-12-20 17:21:34 -08:00
Edison Su
e52a4d9306
CLOUDSTACK-5572: quicevm won't save memory, as it needs pv driver installed
...
Conflicts:
engine/storage/src/org/apache/cloudstack/storage/helper/HypervisorHelperImpl.java
2013-12-20 12:36:30 -08:00
Edison Su
62bb5d8848
fix checkstyle
2013-12-19 15:05:58 -08:00
Edison Su
0824c78761
CLOUDSTACK-4939 - Failed to create snapshot (KVM, Multiple hosts, Sharedstorage)
...
Conflicts:
engine/storage/datamotion/src/org/apache/cloudstack/storage/motion/AncientDataMotionStrategy.java
engine/storage/src/org/apache/cloudstack/storage/endpoint/DefaultEndPointSelector.java
plugins/storage/volume/default/src/org/apache/cloudstack/storage/datastore/driver/CloudStackPrimaryDataStoreDriverImpl.java
Conflicts:
engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeObject.java
plugins/storage/volume/default/src/org/apache/cloudstack/storage/datastore/driver/CloudStackPrimaryDataStoreDriverImpl.java
2013-12-19 14:17:30 -08:00
Edison Su
8caf52c6bc
add xenserver 6.2.0 hotfix support, to optimize vdi copy
...
add xenserver hot fix
Conflicts:
api/src/com/cloud/vm/VirtualMachineName.java
core/src/com/cloud/host/HostInfo.java
core/src/org/apache/cloudstack/storage/to/SnapshotObjectTO.java
deps/XenServerJava/src/com/xensource/xenapi/VDI.java
engine/storage/snapshot/src/org/apache/cloudstack/storage/snapshot/XenserverSnapshotStrategy.java
engine/storage/src/org/apache/cloudstack/storage/endpoint/DefaultEndPointSelector.java
engine/storage/src/org/apache/cloudstack/storage/image/db/SnapshotDataStoreDaoImpl.java
plugins/hypervisors/xen/src/com/cloud/hypervisor/XenServerGuru.java
plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerPoolVms.java
plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerStorageProcessor.java
server/src/com/cloud/configuration/Config.java
2013-12-19 14:15:41 -08:00
Edison Su
c40d03b417
CS-18582: if EIP is used, extract volume and template returns wrong public ip address. If remote agent is ssvm agent, then looking up public ip address from ssvm table
...
Conflicts:
engine/storage/integration-test/test/org/apache/cloudstack/storage/test/SnapshotTest.java
engine/storage/integration-test/test/org/apache/cloudstack/storage/test/VolumeServiceTest.java
engine/storage/integration-test/test/org/apache/cloudstack/storage/test/VolumeTest.java
engine/storage/integration-test/test/org/apache/cloudstack/storage/test/VolumeTestVmware.java
engine/storage/src/org/apache/cloudstack/storage/RemoteHostEndPoint.java
engine/storage/src/org/apache/cloudstack/storage/endpoint/DefaultEndPointSelector.java
2013-12-19 14:01:20 -08:00
Min Chen
bb91b739a8
CLOUDSTACK-5541: Template Creation from snapshot failed with S3 store.
2013-12-18 15:44:00 -08:00
Min Chen
46d1e1afb2
CLOUDSTACK-5446:KVM-Secondary Store down-Even after secondary store is
...
brought back up after being down for few hours,snapshot jobs do not get
triggered with reason "there is other active snapshot tasks on the
instance to which the volume is attached".
2013-12-13 22:04:29 -08:00
Prachi Damle
7c6f1c14c2
ControlledEntity Interface change to return EntityType and added values to the AclEntityType enum and
2013-12-12 16:31:00 -08:00
Alex Huang
be5e5cc641
All Checkstyle problems corrected
2013-12-12 12:26:07 -08:00
Min Chen
df1c34bf2b
CLOUDSTACK-5451:Restart MS after migrating NFS image store to S3,
...
previous Ready template is not ready anymore.
2013-12-11 14:18:06 -08:00
Min Chen
010b007ee4
CLOUDSTACK-5414: With NFS Image Store migrated to S3 an error is thrown
...
in creation of Virtual Router.
2013-12-11 14:17:43 -08:00
Alena Prokharchyk
bd6f706b72
CLOUDSTACK-5261: added support for Alert publishing via ROOT Admin API
...
Conflicts:
engine/orchestration/src/com/cloud/agent/manager/AgentManagerImpl.java
engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java
engine/storage/image/src/org/apache/cloudstack/storage/image/TemplateServiceImpl.java
engine/storage/volume/src/org/apache/cloudstack/storage/datastore/provider/DefaultHostListener.java
engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java
plugins/hypervisors/hyperv/src/com/cloud/hypervisor/hyperv/discoverer/HypervServerDiscoverer.java
plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/VmwareServerDiscoverer.java
plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/discoverer/XcpServerDiscoverer.java
server/src/com/cloud/alert/AlertManagerImpl.java
server/src/com/cloud/alert/ConsoleProxyAlertAdapter.java
server/src/com/cloud/alert/SecondaryStorageVmAlertAdapter.java
server/src/com/cloud/configuration/ConfigurationManagerImpl.java
server/src/com/cloud/ha/HighAvailabilityManagerExtImpl.java
server/src/com/cloud/ha/HighAvailabilityManagerImpl.java
server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
server/src/com/cloud/resourcelimit/ResourceLimitManagerImpl.java
server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java
server/src/com/cloud/vm/UserVmManagerImpl.java
usage/src/com/cloud/usage/UsageAlertManagerImpl.java
usage/src/com/cloud/usage/UsageManagerImpl.java
listAlerts: introduced new parameter "name" to the alertResponse
Conflicts:
api/src/org/apache/cloudstack/api/command/admin/resource/ListAlertsCmd.java
server/src/com/cloud/alert/AlertManagerImpl.java
usage/src/com/cloud/usage/UsageAlertManagerImpl.java
Added new Admin API - generateAlert. Available to ROOT admin only
Conflicts:
api/src/org/apache/cloudstack/alert/AlertService.java
api/src/org/apache/cloudstack/api/BaseCmd.java
usage/src/com/cloud/usage/UsageAlertManagerImpl.java
listAlerts: implemented search by alert name
Conflicts:
api/src/org/apache/cloudstack/alert/AlertService.java
api/src/org/apache/cloudstack/api/command/admin/resource/ListAlertsCmd.java
engine/schema/src/com/cloud/alert/AlertVO.java
2013-12-04 10:05:46 -08:00
Wei Zhou
81c07f1791
allow delete snapshot with ERROR state
2013-11-28 10:48:07 +01:00
Alex Huang
433a631916
Reformat of source code to set a stable base for the future. I couldn't get checkstyle enabled. There's still about a thousand errors from checkstyle. Most of it from length errors from comments and strings. Will attempt to remove those tonight. This change is so large I just want to get it in before any merge nightmares. The changes are fairly minor though and I did a full compile and start a server with the reformat code.
2013-11-21 07:56:47 -08:00
Hugo Trippaers
cf715ff491
Bump 4.3.0 to 4.4.0 in master
2013-11-21 16:01:15 +01:00
Alex Huang
d620df2bdd
Reformatted all of the code.
2013-11-21 06:15:26 -08:00
Alex Huang
eaa250fd3c
Formatted again after all the tab expansions and eol removals
2013-11-21 04:47:01 -08:00
Alex Huang
224f479974
Removed trailing spaces
2013-11-21 04:08:01 -08:00
Wido den Hollander
1edaa36cc6
CLOUDSTACK-1302: Allow a cache mode per disk offering
...
Per disk offering the setting none, writeback or writethrough can be set
This allows for both safety and performance for writes.
2013-11-20 17:11:10 +01:00
Alex Huang
8d62744681
Reformat all source code. Added checkstyle to check the source code
2013-11-20 07:26:53 -08:00
Alex Huang
465626f6d1
Fixed issues with execute in sequence
2013-11-19 17:20:58 -08:00
Hugo Trippaers
bb8f8fb20b
Expose getPrimaryDataStore(String uuid) through the DatastoreManager interface so it can be used clients.
2013-11-18 14:27:06 +01:00
Edison Su
1292b76c63
Add a new method on datastoredriver: getCapabilities, which will be called by liststoragepoolcmd. UI can make decision based on the capabilities of the storage.
...
And also add a new table: snapshotdetails
2013-11-14 15:55:39 -08:00
Harikrishna Patnala
53b0bf6733
Template/ISO download fails cause the object to disappear from UI in 4.2
...
Signed-off-by: Koushik Das <koushik@apache.org>
2013-11-11 10:58:43 +05:30
Edison Su
4815b024bf
Add quiesce vm for vmware during vm snapshot
2013-11-08 15:47:11 -08:00
Edison Su
c233492bfc
Add quiencevm option on createsnapshotcmd
2013-11-07 14:57:05 -08:00
Chris Suich
aef633f203
Updated VMSnapshotDetails* to match *Details* pattern (e.g. UserVMDetails*)
...
Signed-off-by: Edison Su <sudison@gmail.com>
2013-11-07 14:28:19 -08:00
Hugo Trippaers
f6f4a93145
Fix CID 1116743 Resource leak
2013-11-07 16:23:20 +01:00
Mike Tutkowski
10c513a259
CLOUDSTACK-4810: Enable hypervisor snapshots for CloudStack-managed storage (for XenServer and VMware)
2013-11-06 21:02:39 -07:00
Min Chen
eb9cfffd24
Fix NPE due to race condition during system vm launch.
2013-11-04 14:27:04 -08:00
Min Chen
9a62239a92
CLOUDSTACK-5017: Throw CloudRuntimeException in case of template/volume
...
download when ssvm is not ready so that caller can remove some leftover
entries in template_store_ref and volume_store_ref.
2013-11-04 12:32:05 -08:00
Hugo Trippaers
54a3d8048b
Get rid of a few errors and warnings in the engine storage integration-test sources
2013-11-04 20:01:13 +01:00
Min Chen
24af28290e
CLOUDSTACK-5017: use LocalHostEndPoint in copying from S3 to cache store
...
during ssvm launch.
2013-11-01 18:07:00 -07:00
Min Chen
6eecb0b3b5
CLOUDSTACK-5017: If SSVM is unavailable DownloadCommands will be routed
...
to mgmt server.
2013-11-01 18:07:00 -07:00
Edison Su
918bc74050
fix compile
2013-11-01 16:16:03 -07:00
Edison Su
143fbc37a6
fix build
2013-11-01 16:02:24 -07:00
Edison Su
7c99b88926
Don't use cast to PrimarydataStoreTO on the resource code
2013-11-01 15:13:16 -07:00
Edison Su
b704d5b8d3
add quiesceVm vm helper function
2013-10-31 16:24:48 -07:00
Alena Prokharchyk
591dcd1d1c
ResourceDetails: added "display" field to a bunch of VOs - determines whether the detail should be returned to the regular user
2013-10-29 09:18:11 -07:00
Min Chen
6be228a438
CLOUDSTACK-4024:Provide a way to upgrade from existing NFS secondary
...
storage to S3.
2013-10-28 21:01:31 -07:00
Alena Prokharchyk
2cac1aaa0f
Moved ResourceDao and ResourceDaoBase to cloud-engine-schema/org/apache/cloudstack (used to be mistakenly placed under com/cloud/cloud)
2013-10-28 15:03:57 -07:00
Alena Prokharchyk
5caeab782d
ResourceDetails -
...
1) added createDetail to ResourceDetailDao interface to provide generic way of creating resourceDetail DB objects
2) added resource details support for firewall rules
2013-10-28 14:45:52 -07:00
Alena Prokharchyk
e86b612750
ResourceDetails - added createDetail to ResourceDetailDao interface to provide generic way of creating resourceDetail DB objects
2013-10-28 12:53:53 -07:00
Alena Prokharchyk
d0090a0c24
Resource details (metadata) - added support for Storage pool details
2013-10-28 12:53:53 -07:00
Edison Su
92f97248a8
fix inject hypervisorHelperImpl
2013-10-28 12:09:14 -07:00
Laszlo Hornyak
7902315287
build fix
...
Failing VMSnapshotStrategyTest was missing db.properties
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
2013-10-26 17:34:00 +02:00
Edison Su
70b2c0150d
rebase to spring changes
2013-10-25 18:15:36 -07:00
Edison Su
51a8086cf6
Merge branch 'pluggable_vm_snapshot'
...
Conflicts:
client/tomcatconf/applicationContext.xml.in
engine/storage/integration-test/test/org/apache/cloudstack/storage/test/SnapshotTest.java
engine/storage/integration-test/test/resources/storageContext.xml
server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java
server/src/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java
2013-10-25 16:47:17 -07:00
Edison Su
a6ce66e55a
move a lot of code into vmsnapshot strategy
...
fix compile
fix compile
add vm_snapshot_details table in db
add vmsnapshot test cases
2013-10-25 15:09:04 -07:00
Alena Prokharchyk
24725f8e21
ResourceDetails:
...
1) Added support for Zone resource details
2) Renamed DcDetailsDao to DataCenterDetailsDao to follow the CS name convention for DataCenter related classes
2013-10-24 15:54:49 -07:00
Darren Shepherd
f3e968b983
Update StorageStrategyFactory to not sort, but just iterate and find the first
2013-10-23 16:36:31 -07:00
Darren Shepherd
891b85d516
Add missing licenses
2013-10-23 15:20:08 -07:00
Darren Shepherd
b134692697
Fix compilation errors in engine/storage/integration-test
2013-10-23 14:44:16 -07:00
Darren Shepherd
c9101966e0
Added StorageStrategyFactory to centralize and deduplicate some logic
2013-10-23 12:40:41 -07:00
Darren Shepherd
81d01369d7
Merge commit 'df728fcf41ba0dfddabfaadea8cbcb77d18bfa96'
...
Conflicts:
engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java
2013-10-23 12:31:53 -07:00
Chris Suich
0ed7ebd7e7
Squashed & merged commit of the following:
...
commit c9ee0d12e191e803fb341f3f96e95ca434a36f6c
Author: Wei Zhou <w.zhou@leaseweb.com>
Date: Wed Oct 23 16:55:10 2013 +0200
CLOUDSTACK-4931, CLOUDSTACK-4937: setDetails to user VMs only
(cherry picked from commit a94acc5a43 )
commit fe1586c71377bc6d219db2dcf088c40b65dd1fc4
Author: Anthony Xu <anthony.xu@citrix.com>
Date: Tue Oct 22 11:20:27 2013 -0700
CLOUDSTACK-4649:
vm sync tracks the pv driver version for xenserver
Anthony
commit 56a218f66eda540b4b4b04030ee71fc6863f8532
Author: Anthony Xu <anthony.xu@citrix.com>
Date: Mon Oct 21 16:10:07 2013 -0700
CLOUDSTACK-4649:
xs 6.1/6.2 introduce the new virtual platform, so there are two virtual platforms, windows PV driver version must match virtual platforms,
this patch tracks PV driver versions in vm details and template details.
Anthony
commit 4e85d28c678a6f96b5b70d8d33fc60f9d1ea3df6
Author: Laszlo Hornyak <laszlo.hornyak@gmail.com>
Date: Mon Oct 21 21:17:33 2013 +0200
removed unused static field
- s_httpClientManager was not used
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
commit d4121fa26023db236f7396cea455ef090672ae9a
Author: Chris Suich <chris.suich@netapp.com>
Date: Tue Oct 22 10:45:22 2013 -0400
Updated DataMotionServiceImpl and ApiResponseHelper based on review feedback.
commit aaf026e1e4204d405bcda2ae4f1a01b1d0f7e7cb
Author: Chris Suich <chris.suich@netapp.com>
Date: Thu Oct 17 14:27:12 2013 -0400
Added context to strategy sorting error responses
Added TODOs for DRYing out pickStrategy() overloading
commit a221f4aa3fb2ddc255bc35cf753f98f88f5bf44e
Author: Chris Suich <chris.suich@netapp.com>
Date: Wed Oct 16 09:57:28 2013 -0400
Updated inefficient strategy sorting/selection
Removed unnecessary canRevertSnapshot from PrimaryDataStoreDriver
Other general cleaup and fixes from reviews
commit 7d58949c6a1b7e853e891b59387a9620e8cd7a91
Author: Chris Suich <chris.suich@netapp.com>
Date: Mon Oct 14 14:01:22 2013 -0400
Added volume snapshot revert capability to SnapshotResponse
Updated UI to hide/show snapshot revert action per snapshot
Signed-off-by: Edison Su <sudison@gmail.com>
2013-10-23 12:21:43 -07:00
Darren Shepherd
e3280bdba2
Merge remote-tracking branch 'origin/spring-modularization'
...
Conflicts:
client/tomcatconf/applicationContext.xml.in
client/tomcatconf/nonossComponentContext.xml.in
client/tomcatconf/simulatorComponentContext.xml.in
framework/db/src/com/cloud/utils/db/Transaction.java
plugins/hypervisors/simulator/src/com/cloud/agent/manager/MockAgentManagerImpl.java
server/src/com/cloud/api/ApiServer.java
server/src/com/cloud/storage/snapshot/SnapshotManagerImpl.java
2013-10-23 11:14:42 -07:00
Darren Shepherd
205a77a5bb
Merge remote-tracking branch 'origin/txn-refactor'
...
Conflicts:
engine/orchestration/src/org/apache/cloudstack/engine/orchestration/NetworkOrchestrator.java
server/src/com/cloud/configuration/ConfigurationManagerImpl.java
server/src/com/cloud/metadata/ResourceMetaDataManagerImpl.java
server/src/com/cloud/vm/UserVmManagerImpl.java
2013-10-23 10:40:44 -07:00
Nitin Mehta
17dd9a832b
CLOUDSTACK-3737:
...
Delete the uploaded volume once its copied successfully to the primary storage.
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-10-21 14:54:42 -07:00
Koushik Das
0c1800f70f
CLOUDSTACK-4681: data disk with local disk offering are geting created on shared storage
...
The cluster and zone wide storage pool allocators returned shared pools even for volumes meant to be on local storage pool.
If the VM uses local disk then cluster and zone storage allocators should not handle it and return null or empty list.
Also fixed the deployment planner to avoid a cluster if
a. avoid set returned by storage pool allocators is empty OR
b. all local or shared pools in a cluster are in avoid state
Conflicts:
engine/storage/src/org/apache/cloudstack/storage/allocator/ClusterScopeStoragePoolAllocator.java
engine/storage/src/org/apache/cloudstack/storage/allocator/ZoneWideStoragePoolAllocator.java
2013-10-18 17:10:17 +05:30
Min Chen
ec3302afd6
CLOUDSTACK-3472: [Object_Store_Refactor] System VMs are not coming up in
...
initial attempt, but they are coming up after multiple attempts.
2013-10-17 15:59:10 -07:00
Darren Shepherd
f62e28c1ec
New Transaction API
...
Introduction of a new Transaction API that is more consistent with the style
of Spring's transaction managment. The existing Transaction class was renamed
to TransactionLegacy. All of the non-DAO code in the management server has been
updated to use the new Transaction API.
2013-10-16 09:21:00 -07:00
Chris Suich
aad1cda7e0
Added categorized sorting to SnapshotStrategy and DataMotionStrategy
2013-10-14 15:20:42 -07:00
Chris Suich
350c94474b
Updates to revertSnapshot API Added revertSnapshot API action to UI
2013-10-14 15:19:51 -07:00
Darren Shepherd
7c72aa96da
ConcurrentHashMap will through NPE on null key
2013-10-04 16:56:48 -07:00
Edison Su
a129fe4e66
add missing files
2013-10-04 14:17:49 -07:00
Chris Suich
180cfa19e8
Refactor Storage Related Resource Code
...
These changes are a joint effort between Edison and I to refactor some
of the code around snapshotting VM volumes and creating
templates/volumes from VM volume snapshots. In general, we were working
towards allowing PrimaryDataStoreDrivers to create snapshots on primary
storage and not requiring the snapshots to be transferred to secondary
storage.
High level changes:
-Added uuid to NfsTO, SwiftTO & S3TO to cut down on the requirement of
PrimaryDataStoreTO and ImageStoreTO which don't really serve much of a
purpose
-Initial work towards enable reverting VM volume from snapshots
-Added hypervisor commands for introducing and forgetting new hypervisor
objects (snapshots, templates & volumes)
Signed-off-by: Edison Su <sudison@gmail.com>
2013-10-04 13:06:42 -07:00
Darren Shepherd
c9a9a3b7b3
Make SnapshotStrategy and DataMotionStrategy discovered and registered
2013-10-03 17:03:28 -07:00
Hugo Trippaers
3f583684c6
Temporary fix for the chicken and egg problem when making changes to the configuration database.
2013-10-03 12:36:34 +02:00
Darren Shepherd
67186429e1
Spring Modularization
...
ACS is now comprised of a hierarchy of spring application contexts.
Each plugin can contribute configuration files to add to an existing
module or create it's own module.
Additionally, for the mgmt server, ACS custom AOP is no longer used
and instead we use Spring AOP to manage interceptors.
2013-10-02 15:41:04 -07:00
Darren Shepherd
aed5e9dc2a
Add Manage Context framework
...
The managed context framework provides a simple way to add logic
to ACS at the various entry points of the system. As threads are
launched and ran listeners can be registered for onEntry or onLeave
of the managed context. This framework will be used specifically
to handle DB transaction checking and setting up the CallContext.
This framework is need to transition away from ACS custom AOP to
Spring AOP.
2013-10-02 13:09:52 -07:00
Alex Huang
b60eef3e82
Added comments and finished off the work
2013-09-28 07:53:28 -07:00
Alex Huang
e8cac2c5d8
Changed SearchCriteria2 to GenericQueryBuilder to reflect the same placement
2013-09-28 07:53:26 -07:00
Alex Huang
e2988902c9
Changed SearchCriteria2 to GenericQueryBuilder to reflect the same placement
2013-09-28 07:53:25 -07:00
Alex Huang
a964cf549e
Continue to merge SearchCriteria2 and GenericSearchBuilder
2013-09-28 07:53:24 -07:00
Alex Huang
af8832f6bd
Unified both the SearchBuilder and SearchCriteriaService
2013-09-28 07:53:24 -07:00
Edison Su
350e8938cf
CLOUDSTACK-4754: it's a race condition: delete template, and deploy vm from the template happened at the same time,
2013-09-27 16:10:57 -07:00
Edison Su
9baa45308c
CLOUDSTACK-4650: change volume state during snapshot only
2013-09-25 16:33:10 -07:00
Edison Su
2227eb191a
CLOUDSTACK-3535: fix regression introduced in 5d9fa5d42e
2013-09-25 16:16:34 -07:00
Edison Su
aa59b6f34d
CLOUDSTACK-4507: fix NPE when taking snapshot
2013-09-25 16:09:00 -07:00
Edison Su
f4dbf8786f
CLOUDSTACK-4477: in order to select hypervisor host which can access storage pool, need to check storage_pool_host_ref
...
Conflicts:
engine/storage/integration-test/test/org/apache/cloudstack/storage/test/DirectAgentManagerSimpleImpl.java
engine/storage/integration-test/test/org/apache/cloudstack/storage/test/EndpointSelectorTest.java
engine/storage/integration-test/test/org/apache/cloudstack/storage/test/FakeDriverTestConfiguration.java
2013-09-25 16:08:41 -07:00
Edison Su
a82b179878
add table lock on snapshot, during taking snapshot
...
Conflicts:
engine/storage/src/org/apache/cloudstack/storage/image/db/SnapshotDataStoreDaoImpl.java
2013-09-25 16:03:59 -07:00
Edison Su
b5f7e307a1
CLOUDSTACK-4456:
...
CLOUDSTACK-4457:
CLOUDSTACK-4459:
harden kvm getvolume. It's possible that one volume created on other kvm host, won't show up on another host, try more times to refresh storage pool if volume won't shown up
Conflicts:
engine/storage/integration-test/test/org/apache/cloudstack/storage/test/FakeDriverTestConfiguration.java
plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java
2013-09-25 16:01:45 -07:00
Edison Su
7b6aebc102
add test
...
Conflicts:
engine/storage/integration-test/test/org/apache/cloudstack/storage/test/FakeDriverTestConfiguration.java
2013-09-25 15:58:46 -07:00
Edison Su
b3ac12e171
delete snapshot_store_ref if the snapshot is in error state
2013-09-25 15:51:55 -07:00
Hugo Trippaers
15a97ec412
Cleanup pom.xml in various projects to properly use managed versions and other defaults
2013-09-21 17:21:06 +08:00
Min Chen
6fccd74ae8
CLOUDSTACK-4534:[object_store_refactor] Deleting uploaded volume is not
...
deleting the volume from backend.
2013-09-17 15:20:20 -07:00
Min Chen
a20097b967
CLOUDSTACK-4534:[object_store_refactor] Deleting uploaded volume is not
...
deleting the volume from backend.
2013-09-11 10:25:57 -07:00
Donal Lafferty
e958f22ff3
CIFS support for secondary storage is documented here: https://cwiki.apache.org/confluence/display/CLOUDSTACK/CIFS+Support
...
It was implemented by extending the NFS provider. Its validation was updated so that you can pass it a URL containing the
details of a CIFS share. The code that mounts NFS shares was extended to allow it do the same for CIFS shares. Otherwise,
the secondary storage code is left unchanged.
2013-09-11 14:23:29 +05:30
Min Chen
16a1f150eb
CLOUDSTACK-4628:[Automation] Failed to create template from snapshot
...
with same name; after deleting the first one.
2013-09-09 16:10:33 -07:00
Min Chen
b11a8e12e8
CLOUDSTACK-4625:Snapshots and templates should be deleted from staging
...
storage after create template from snapshot on S3.
2013-09-06 17:48:40 -07:00
Alex Huang
a05ec6df33
Fixed up the agent separation. Added comments for config packaging.
2013-09-06 15:40:39 -07:00
Alex Huang
1f5699b29f
Fixed unit tests
2013-09-06 15:40:39 -07:00
Alex Huang
8f556e6d88
Made changes to configuration. Eliminated ConfigValue and only use ConfigKey
2013-09-06 15:40:38 -07:00
Alex Huang
b8e79c30a8
Compile complete
2013-09-06 15:40:37 -07:00
Nitin Mehta
654c90f4e5
CLOUDSTACK-4327:
...
Check for the all the transition states for Maintenance. Also corrected the isMaintenance function for StoragePoolVo
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-09-05 12:43:36 +05:30
Kelven Yang
281b94d587
CLOUDSTACK-4458: Volume attach/detach command needs to sent to hypervisor resource even when target VM is in Stopped state
2013-09-04 14:49:46 -07:00
Kelven Yang
e3a5b3fad9
CLOUDSTACK-3237: acknowledge the behind-back VMDK disk consolidation happend in vCenter after storage live migration
2013-09-04 14:49:46 -07:00
Min Chen
e92d46bfd4
CLOUDSTACK-4600:Registered Cross-zone template does not populate
...
template_zone_ref for later added zones.
2013-09-03 16:39:23 -07:00
Hugo Trippaers
b220403e35
Fix EndpointSelectorTest, LockMasterListener is in the server package
...
for now.
2013-09-02 14:32:28 +02:00
Min Chen
b0fc3114f4
Fix build error.
2013-08-28 12:18:21 -07:00
Min Chen
6a9caf7487
CLOUDSTACK-4430:[Automation][vmware] Failed to deploy vm, if one host is
...
down in a cluster.
2013-08-28 11:52:06 -07:00
Edison Su
7e7af7d6f4
CLOUDSTACK-4477: in order to select hypervisor host which can access storage pool, need to check storage_pool_host_ref
2013-08-28 16:03:19 +02:00
Min Chen
18b301edb9
CLOUDSTACK-4516:[Upgrade][VMWare]
...
MySQLIntegrityConstraintViolationException while performing any task
using local storage after upgrade from 3.0.7 to 4.2.
2013-08-27 14:13:59 -07:00
Wido den Hollander
79c366db2b
CLOUDSTACK-1191: Re-enable deployment of SystemVMs on RBD
...
This was reverted by 0a5228922b unintentionnaly
but broke this feature for RBD.
Enable SystemVM deployment on RBD again
2013-08-27 17:05:08 +02:00
Alex Huang
abbae2aa87
Fixed the problem with offerings and templates. These two items due to a previous patch all the way back in 2.1.x versions uses the removed column incorrectly. No one fixed since then. Hence, there's a bunch of findbyidincludingremoved calls in the cloudstack code around these two items.
2013-08-26 17:31:10 -07:00
Min Chen
49dd7289c0
CLOUDSTACK-4468:template created from snapshot is destroyed once we
...
restart management server.
2013-08-26 11:58:53 -07:00
Min Chen
0fdaef8e3d
CLOUDSTACK-4455:object_store - Template sync results in private
...
templates being synced to all the secondary stores.
2013-08-22 16:02:47 -07:00
Min Chen
2611ac75c1
CLOUDSTACK-4454:object_store - Not able to delete secondary storage when
...
existing snapshots are deleted.
2013-08-22 16:02:31 -07:00
Min Chen
e65a302f15
CLOUDSTACK-3950: add "regionsecondaryenabled" in listCapabilitiesCmd
...
response.
2013-08-20 15:59:46 -07:00
Min Chen
3bd2bbf59d
CLOUDSTACK-3950:Set cross-zone flag in registerTemplate/registerIso in
...
case of region-wide secondary is enabled.
2013-08-20 14:13:49 -07:00
Min Chen
c4f41f4a53
CLOUDSTACK-4395:[Object_store_refactor] Default template is not
...
available for use to deploy vm in case of multi zone environment.
2013-08-19 17:37:33 -07:00
Edison Su
4fd09cb344
CLOUDSTACK-4324: delete snapshot_store_ref, if create snapshot failed on primary storage
2013-08-19 15:26:18 -07:00
Edison Su
0040c4adef
CLOUDSTACK-4363: fix possible NPE, if copy volume failed.
2013-08-19 15:25:20 -07:00
Edison Su
77e7ccbbe1
CLOUDSTACK-4325: add more test cases for zone wide storage pool allocator
2013-08-19 15:25:04 -07:00
Min Chen
3937a7b5a5
CLOUDSTACK-4400:[object_store_refactor] Three entries for one template
...
in template_store_ref when MS was restarting during template download.
2013-08-19 15:01:57 -07:00
Min Chen
5d3bc5339e
CLOUDSTACK-4399:[Templates] template entries are deleted from
...
template_store_ref when downloadTemplate times out.
2013-08-19 11:27:16 -07:00
Min Chen
ba4a05eed1
CLOUDSTACK-4287: Template sync should remove template_store_ref entry
...
for corrupted template.
2013-08-15 14:56:49 -07:00
Edison Su
81fedcfa3e
CLOUDSTACK-4338: catch up exception in case of deleting volume in parallel: it's possible that two threads can delete one volume at the same time, if the volume state is in Expunging
2013-08-14 18:16:08 -07:00
Min Chen
c675f826e5
CLOUDSTACK-4318:[Object_Store_Refactor] Failed to delete snapshot copied
...
to Staging storage during snapshot creation.
2013-08-14 18:12:53 -07:00
Edison Su
37d58313c9
CLOUDSTACK-4325: if userdispersing algorithm is used, then zone wide storages never been picked up
2013-08-14 15:52:55 -07:00
Edison Su
374de76dae
CLOUDSTACK-4324: need to clean up snapshot_store_ref, if creating snapshot failed.
2013-08-14 14:59:19 -07:00
Min Chen
67beef15c9
CLOUDSTACK-3706:[Object_Store_Refactor] Failed to create template from
...
stopped guest vm's root disk.
2013-08-14 13:11:06 -07:00
Nitin Mehta
efa861cd5c
CLOUDSTACK-4287
...
Builtin template Ready Status is No even after the Status is downlaod complete. The reason was that template sync updates only the template download state but not the state. Fixing that. Ideally we should change the state through state machine only.
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-08-14 18:43:47 +05:30
Kishan Kavala
21831211f6
CLOUDSTACK-4295 : TemplateTO should contain physical size along with virtual size. Usage ignores templates with size 0
2013-08-14 17:34:05 +05:30
Wido den Hollander
04f378bcff
CLOUDSTACK-4114: Use RAW disk images for RBD instead of QCOW2
2013-08-13 16:14:45 +02:00
Hugo Trippaers
d57796b94f
Fix XML validation errors
2013-08-13 08:25:45 +02:00
Alex Huang
de2bd96d98
Moved volume related code into cloud-engine-orchestration
2013-08-12 19:06:51 -07:00
Edison Su
9a89fd94fc
CLOUDSTACK-4211: fix s3 on kvm
2013-08-12 17:20:09 -07:00
Min Chen
3efa2767a8
CLOUDSTACK-4204: return a ZoneScope in picking cache storage.
2013-08-09 18:14:01 -07:00
Min Chen
fc7743773a
CLOUDSTACK-4204:[Object_store_refactor] Snapshot created from volume in
...
zone2 is copying to secondary staging storages in zone1
2013-08-09 18:13:46 -07:00
Min Chen
e018936dc4
CLOUDSTACK-4129: select SSVM based on ImageCache data store instead of
...
region wide image store.
2013-08-09 18:13:29 -07:00
Nitin Mehta
ab5ea3febd
CLOUDSTACK-4133
...
Introduce a global lock on template and pool id so that concurrent threads wont be inserting the same row in DB and hit MySQLIntegrityConstraintViolationException
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-08-09 14:03:43 +05:30
Min Chen
99c3e4f3f5
CLOUDSTACK-4190: Add endpoint selector implementation for ImageCache
...
data store and also delete object from staging area for volume copy from
primary to secondary or vice versa.
2013-08-08 16:17:00 -07:00
Min Chen
bf6961255a
CLOUDSTACK-4190:[Object_store_refactor] volume should be deleted from
...
staging storage after successfule volume migration .
2013-08-08 16:16:36 -07:00
Alex Huang
5495f10bce
Revert "Reverting the range of commits that broke the build"
...
This reverts commit b59e3aaefc .
2013-08-08 15:02:40 -07:00
Koushik Das
12ba37c8af
CLOUDSTACK-4136: [upgraded ENV]Deleting Snapshot which was created before upgrade is throwing NPE.
...
Snapshot object is being accessed even when it is null. In case snapshot is not present in backup store the code should return after cleaning db entry.
Also noticed discrepancy in the upgraded db setup but couldn't fully verify it, so added logging in the upgrade logic for template/snapshots etc.
2013-08-08 15:13:08 +05:30
Prasanna Santhanam
b59e3aaefc
Reverting the range of commits that broke the build
...
This reverts commits 30c33415..f6a2c817bc
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-08-08 14:46:56 +05:30
Edison Su
e851f4a930
CLOUDSTACK-4109: fix upload volume to s3 for vmware
2013-08-07 19:14:18 -07:00
Min Chen
98041dba46
CLOUDSTACK-4109:[Object_store_refactor] Extract volume failed with NPE.
2013-08-07 17:11:40 -07:00
Alex Huang
5287f4c9ec
Got everything running through testing
2013-08-07 16:41:06 -07:00
Alex Huang
942f282a6e
Moved config into it's own package
2013-08-07 16:41:02 -07:00
Edison Su
a8ee45de7c
CLOUDSTACK-4074: if hypervisor doesn't return size of volume/template, don't update it into db
2013-08-06 15:53:57 -07:00
Min Chen
ec89e23665
CLOUDSTACK-4116: don't update db if hypervisor storage processor does
...
not return volume size.
2013-08-06 15:42:18 -07:00
Min Chen
a8990cffd4
CLOUDSTACK-4003: We should not delete a READY data object from object
...
store ref table in case of any operation failure related to this data
object.
2013-08-06 15:04:57 -07:00
Nitin Mehta
f28a28dc77
CLOUDSTACK-3913
...
Private templates would now get copied to only one of image storage chosen randamly as was the case earlier. Dont throw an exception for uploading volumes when there are multiple image stores, instead choose one of them randomly
Signed off by : nitin mehta<nitin.mehta@citrix.com>
2013-08-05 17:43:57 +05:30
Edison Su
239c6cef45
CLOUDSTACK-4008: fix snapshot npe if its volume is deleted
2013-08-01 13:59:41 -07:00
Chip Childers
8225374138
Updating pom.xml version numbers for release 4.3.0-SNAPSHOT
...
Signed-off-by: Chip Childers <chipchilders@apache.org>
2013-08-01 10:35:00 -04:00
Mice Xia
51e4f597e0
fix CLOUDSTACK-3591 add usage recording for VM snapshots
...
Conflicts:
plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
server/src/com/cloud/vm/snapshot/VMSnapshotManagerImpl.java
setup/db/db/schema-410to420.sql
2013-08-01 10:47:36 +08:00
Edison Su
6ea9d8b159
CLOUDSTACK-3976: if the snapshot is empty and it's the last one in the chain, we need to take full snapshot for the snapshots in sequence
2013-07-31 17:43:49 -07:00
Edison Su
06b9976371
CLOUDSTACK-3976: delete parent snapshot if child snapshots are deleted
2013-07-31 17:03:27 -07:00
Min Chen
ad653bf9f5
CLOUDSTACK-3977: vm deployement is failing ;: Resource [Host:5] is
...
unreachable: Host 5: Unable to send class
org.apache.cloudstack.storage.command.CopyCommand because agent is in
maintenance mode.
2013-07-31 14:04:20 -07:00
Min Chen
c2192808aa
CLOUDSTACK-3686: Registering a template does not generate a usage event.
2013-07-30 17:35:12 -07:00
Alex Huang
46e644e134
Separate agentmanager from server code. Moved out ssvm. Remove methods that shouldn't be used
2013-07-29 19:13:31 -07:00
Min Chen
42da3efbc3
CLOUDSTACK-3862: Remove S3/Swift-backed Secondary Storage Code.
2013-07-29 14:31:33 -07:00
Edison Su
ae534388c0
CLOUDSTACK-3852: fix upload volume
...
Conflicts:
plugins/hypervisors/vmware/src/com/cloud/hypervisor/guru/VMwareGuru.java
server/src/com/cloud/template/TemplateManagerImpl.java
2013-07-29 11:50:16 -07:00
Alex Huang
a4cea4ebf2
Removed schema from the dependency of many components
2013-07-29 10:55:19 -07:00
Alex Huang
c2752ba93c
Removed mysql as any dependency
2013-07-26 20:35:48 -07:00
Alex Huang
1834e81476
Added the missing directories
2013-07-26 16:34:09 -07:00
Alex Huang
3f7c558de5
Removed all the extra mockito, inject, and junit dependencies. Changed any test/resource to test/resources and rely on the master pom to tell us where the resources are instead of each individual project
2013-07-26 16:34:08 -07:00
Min Chen
c8cafb91a7
CLOUDSTACK-3818: NFS Cache Improperly Named.
2013-07-26 15:07:45 -07:00
Alex Huang
f5e5b39c9b
Moved the DB layer code into framework-db and change only the necessary projects to refer to it. Cut down on the dependencies introduced with all the code in utils.
2013-07-26 15:02:10 -07:00
Min Chen
45d38c4142
CLOUDSTACK-3709:[Object_Store_Refactor][UI] Can't delete NFS Cache
...
storage through UI. Fixed at API side.
Conflicts:
server/src/com/cloud/storage/StorageManagerImpl.java
2013-07-25 17:33:28 -07:00
Edison Su
5e427bd2f6
CLOUDSTACK-2536: fix the regression introduced by 4c81ea69c4
2013-07-25 16:36:06 -07:00
Min Chen
e7cdaa1b31
CLOUDSTACK-3667:[Object_Store_Refactor][VMWare] System VMs StartCommand
...
failed due to Exception: java.lang.Exception Message: secondary storage
for dc 3 is not ready yet?
2013-07-25 10:57:05 -07:00
Koushik Das
deb701b7e0
CLOUDSTACK-3493: [storage ref] Attach volume to VM is failing in case of Primary-Localstorage .
...
Some existing scenarios for root and data volume combination was not working. These are
a. Local root + Shared data
b. Shared root + Local data
Enabled these scenarios as part of this fix
2013-07-25 17:10:20 +05:30
Min Chen
13a9b94193
CLOUDSTACK-3665:Failed to create volume from snapshot.
2013-07-24 14:39:07 -07:00
Edison Su
d22bea6031
CLOUDSTACK-2630: fix delta snashpt
2013-07-24 09:48:59 -07:00
Edison Su
fa358cf01f
CLOUDSTACK-2630: fix delta snashpt
2013-07-24 09:48:41 -07:00
Edison Su
be3883b678
fix create template from snapshot if it's swift
2013-07-24 09:48:07 -07:00
Min Chen
956e8301c2
CLOUDSTACK-3716: State of expunged volumes are not consistent in volumes
...
table and volume_store_ref.
Conflicts:
server/src/com/cloud/storage/VolumeManagerImpl.java
2013-07-23 15:06:34 -07:00
Devdeep Singh
7dec27e844
CLOUDSTACK-3708, Migration of a volume attached to a running instance isn't working (Storage motion).
...
The request to migrate was coming till ancient data motion strategy but wasn't worked on and forwarded
to the resource. The code probably got removed by a bad merge. Bringing it back.
2013-07-23 10:49:51 +05:30
Min Chen
cc99a83d71
CLOUDSTACK-3716:NPE triggered in DownloadListener.
2013-07-22 17:26:33 -07:00
Min Chen
181fb03e7e
CLOUDSTACK-3716:NPE triggered in DownloadListener
2013-07-22 17:14:30 -07:00
Min Chen
db8b9ea53a
Remove CLOUDSTACK-3513 debugging messages.
2013-07-22 16:18:16 -07:00
Min Chen
0fb3286cb1
CLOUDSTACK-3513:[Automation] Failed to copy iso and template between
...
zones. Failed to pass generated copy url to DownloadCommand.
2013-07-22 16:17:56 -07:00
Alex Huang
1325014a03
Changed VirtualMachineProfile to be non-generic. From here on VirtualMachineManager will only manage vm instance. It doesn't understand the difference between different types of VMs. This makes the vmsync code to be generic across all vms.
2013-07-22 11:48:11 -07:00
Min Chen
f8b5a4159b
CLOUDSTACK-3419: [Object_Store_Refactor] Uploaded volume is being
...
deleted while attaching it to guest VM.
2013-07-20 12:16:55 -07:00
Alex Huang
5af61a85ae
Fixed build. Not sure why it didn't come up on my compile before the commit
2013-07-18 22:53:30 -07:00
Alex Huang
b18c72626b
Moved the SprintUtils which is for testing only to be in test directory. Changed pom.xml for different projects to use the utils test-jar. Removed some @Component annotations. Moved majority of the dependencies from cloudstack pom to utils pom
2013-07-18 21:53:51 -07:00
Min Chen
e1c17bd853
CLOUDSTACK-3513: add debug message to diagnose copyIso issue on
...
automation setup where DownloadCommand is never sent.
2013-07-18 16:08:29 -07:00
Devdeep Singh
876a7b3361
Add VHDX image support, which is missing from DiskFormat class, revised ImageFormat interface, StorageManager implementation, and the application component spec.
2013-07-18 18:58:05 +05:30
Min Chen
cb2a84241b
CLOUDSTACK-3513: [Automation] Failed to copy iso and template between
...
zones.
2013-07-17 17:31:50 -07:00
Edison Su
c618caf102
fix localendpoint npe
2013-07-17 16:29:52 -07:00
Edison Su
4bbaac2d28
fix NPE in localhostendpoint
2013-07-17 10:16:58 -07:00
Edison Su
bf32776f9f
be able to upload template into swift
2013-07-16 18:07:06 -07:00
Koushik Das
396a13dd0b
CLOUDSTACK-3445: Observing the system alerts "unallocated Local Storage is low in cluster" when Primary storage is Local Storage
...
Available bytes was getting stored in the used bytes property of local storage pools. As a result of this, for newly added local pools Cloudstack thinks that there is no space available and generated alerts.
2013-07-15 15:20:28 +05:30
Edison Su
8f4575e877
CLOUDSTACK-3400: add swift support
2013-07-13 02:07:15 -07:00
Edison Su
0c1ae20e77
add inital swift support
...
Conflicts:
server/src/com/cloud/resource/ResourceManagerImpl.java
server/test/com/cloud/resource/MockResourceManagerImpl.java
2013-07-13 02:07:03 -07:00
Vijayendra Bhamidipati
d9ce49b1f1
CLOUDSTACK-3264: [ZWPS]NPE while finding storage pools for migration
...
Description:
Filter primary storage pools based on zonewide/clusterwide configuration
when considering pools to list for storage migration of volumes.
2013-07-12 15:19:36 -07:00
Alena Prokharchyk
dd91974920
CLOUDSTACK-2843: added CopyCommand to the list of the commands controlled by execute.in.sequence.hypervisor.commands global config. This command was introduced by the Storage refactoring, and used for volume creation on the primary storage
2013-07-11 17:44:12 -07:00
Sanjay Tripathi
08669f5de2
CLOUDSTACK-3462: NumberFormatException with TemplateService while performing template synchronization.
2013-07-11 14:16:57 +05:30
Prasanna Santhanam
f96b89f25e
CLOUDSTACK-3273: ClassCastException when adding cache store via API
...
Filter the detail map sent over the wire into Map<String, String> before
processing underneath by storage life cycle
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-07-05 15:32:41 +05:30
Vijayendra Bhamidipati
6bad34c509
CLOUDSTACK-3110: [VMWARE]NPE while adding primary storage(scope=cluster) with Invalid hostname
...
Description:
When retrieving primary datastore, handle case for non-existing datastores/hosts.
Throw exception and handle the exception in datastore mgmt layer and pass onward
to create storage pool API.
2013-07-03 09:43:00 -04:00
Min Chen
d425fa76f7
CLOUDSTACK-3335:[Object_Store_Refactor][Automation]CopyTemplate failed
...
with Unexpected exception.
2013-07-02 18:01:47 -07:00
Min Chen
3d37b8c049
CLOUDSTACK-3277: Remove unused PrimaryDataStoreEntityImpl class
2013-07-01 14:00:44 -07:00
Edison Su
49ded7e4a3
the plugin better not touch database
2013-06-29 15:09:43 +05:30
Prasanna Santhanam
f1134da8df
Group storage subsystem components for spring
...
Breaking down storage components among oss, nonoss and simulator
contexts. The default components are loaded by
OSS - applicationContext + componentContext
NonOSS - applicationContext + nonossComponentContext
Simulator - applicationContext + simulatorComponentContext
provider beans are are selectively overridden for simpler configuration.
Where possible beans are loaded by local reference.
<list merge=true> does not unfortunately work perfectly for bean merging
the providers causing a bit of bloat. Explore for later.
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-29 13:53:41 +05:30
Prasanna Santhanam
de38cd815f
Fix typo in class name
...
AsyncRpcConext -> AsyncRpcContext
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-29 13:50:25 +05:30
Donal Lafferty
58f9202818
CLOUDSTACK-3215: Cannot Deploy VM when using S3 object store without NFS Cache
...
Signed-off-by: Edison Su <sudison@gmail.com>
2013-06-28 16:52:06 -07:00
Mike Tutkowski
99227f7b3e
SolidFire plug-in and related changes
...
SolidFire plug-in
SolidFire plug-in related
2013-06-28 16:59:21 -06:00
Min Chen
b09f69d917
CLOUDSTACK-3249: [Object_Store_Refactor] Unable to deployVm from
...
template when the management server was restarted in the middle of
Secondary to Primary storage template download.
2013-06-27 17:36:02 -07:00
Donal Lafferty
4361418e41
Removed Dead Code from Management Server Hyper-V 2012 Support
...
Update ImageFormat enum to include VHDX format introduced with Hyper-V
Server 2012.
Remove existing Hyper-V plugin, because it does not work and is dead
code.
Remove references to existing Hyper-V plugin from config files.
Remove Hypervisor.HypervisorType.Hyperv special cases from manager code
that are unused or unsupported.
Specifically, there is no CIFS secondary storage class
"CifsSecondaryStorageResource". Also, the Hyper-V plugin's
ServerResource is contacted by the management server and not the other
way around.
Add Hyperv-V support to ListHypervisorsCmd API call
Signed-off-by: Edison Su <sudison@gmail.com>
2013-06-27 11:46:02 -07:00
Min Chen
de44a77878
Gracefully handle racing condition in updating state of dataobject and
...
data store mapping table.
2013-06-26 17:16:25 -07:00
Edison Su
733ed3622d
fix compile
2013-06-20 00:57:06 -07:00
Edison Su
97f8c524b8
merge object_store
2013-06-20 00:18:00 -07:00
Harikrishna Patnala
7b6b8d7a07
CLOUDSTACK-2987 Ensure XStools to be there in template inorder to enable dynamic scaling of vm
...
CLOUDSTACK-3042 - handle Scaling up of vm memory/CPU based on the presence of XS tools in the template
This also takes care of updation of VM after XS tools are installed in the vm and set memory values accordingly to support dynamic scaling after stop start of VM
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-06-20 11:08:38 +05:30
Edison Su
9aec9c605c
merge to master
2013-06-19 18:16:47 -07:00
Alena Prokharchyk
d66e9c7b51
CLOUDSTACK-2843: Provideded an ability to turn off the synchronization being done on the CS agent side,
...
for number of commands participating in Vm deployment process, as parallel deployment is supported on the hypervisor side.
The behavior is controlled by global config varirables:
"execute.in.sequence.hypervisor.commands" (false by default) sets/resets the synchronization for commands:
=========================
StartCommand
StopCommand
CreateCommand
CopyVolumeCommand
"execute.in.sequence.network.element.commands" (false by default) sets/resets the synchronization for commands:
==========================
DhcpEntryCommand
SavePasswordCommand
UserDataCommand
VmDataCommand
As a part of the fix, increased the global lock timeout to 30 mins in several VR scripts:
===========================
edithosts.sh
savepassword.sh
userdata.sh
to support situations when multiple concurrent calls to the script are being made.
2013-06-19 10:12:13 -07:00
Dave Brosius
3a02942123
set rpcProvider field correctly
...
Signed-off-by: Dave Brosius <dbrosius@mebigfatguy.com>
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
2013-06-17 19:12:02 +05:30
Edison Su
c2da4eac89
fix NPE for cache ref cnt
2013-06-14 17:24:31 -07:00
Edison Su
a715eb8121
clean up storage related code, and add lru replacement algorithm for cache storage
2013-06-14 15:55:59 -07:00
Min Chen
bb85a564da
Remove state from vm_template table, we should use template_store_ref
...
state column to represent the state of a template in each zone.
2013-06-14 15:14:09 -07:00
Min Chen
7a3e7d1891
Send CopyCommand to Host instead of randomly picking host and ssvm in
...
backup snapshot. For VMware, it will delegate to ssvm in VMwareGuru.
2013-06-13 11:21:25 -07:00
Min Chen
18aeef3ef1
Merge branch 'master' (up to commit
...
c30d9be3ce ) into object_store.
2013-06-12 11:20:32 -07:00
Nitin Mehta
07e5cbe813
CLOUDSTACK-2932
...
Allow deleting of snapshots that have errored out. Simply mark the removed column as there is no physiocal clean up required
2013-06-11 16:23:21 +05:30
Min Chen
3bf15bd1ff
Code cleanup.
2013-06-10 18:03:15 -07:00
Min Chen
cc0de88088
Remove old DeleteTemplateCommand, DeleteVolumeCommand,
...
DeleteSnapshotBackupCommand, replaced by DeleteCommand.
2013-06-10 17:55:30 -07:00
Min Chen
04b5f53392
Removed unused code handling for DeleteSnapshotBackupCommand since we
...
don't send that command anymore.
2013-06-07 17:55:05 -07:00
Sanjay Tripathi
da5c4619c3
CLOUDSTACK-2286: Volume created from snapshot state is in allocated state instead of Ready state which is letting Primary storage not to increment the resources.
2013-06-07 17:17:54 +05:30
Min Chen
03f4c60360
Add missing new file.
2013-06-06 18:01:25 -07:00
Min Chen
66e702222d
Simplify various DeleteTemplateCommnad, DeleteVolumeCommand and
...
DeleteSnapshotBackupCommand to use one DeleteCommand, also provide
BaseImageStoreDriverImpl class for plugin to inherit to avoid code
duplication.
2013-06-06 18:00:38 -07:00
Min Chen
ef03d5a122
Move data store specific extract template/iso logic from
...
TemplateManager to data store driver.
2013-06-04 11:50:43 -07:00
Sateesh Chodapuneedi
7998413f48
CLOUDSTACK-2029 zone wide primary storage support for cloudstack over vmware deployments
...
Added hypervisor type to CreateStoragePoolCmd & Storage pool responses.
DatastoreLifeCycle would consider hypervisor type while attaching datastore to zone.
ZoneWideStoragePoolAllocator would filter zone wide primary storage pools by hypervisor type along with tags in disk profile.
hypervisor type is mandatory parameter if scope is specified as ZONE while creating primary storage pool.
As of now KVM, VMware are allowed to use ZoneWideStoragePoolAllocator.
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-06-01 00:05:27 +05:30
Min Chen
eb93efdaa4
Add convenient delete methods in DataObject to delete dangling data
...
object.
2013-05-30 14:51:03 -07:00
Min Chen
614e08e19f
Fix ExtractVolume bug for S3 as secondary storage.
2013-05-30 14:19:59 -07:00
Min Chen
efbf9c8635
Move ExtractVolumeCmd from ManagementServerImpl to VolumeManagerImpl,
...
also add support for S3 for ExtractVolumeCmd.
2013-05-29 22:27:07 -07:00
Edison Su
0a5228922b
clean up storage related coded
2013-05-29 18:04:37 -07:00
Min Chen
bc91e7692d
Fix build.
2013-05-29 15:22:04 -07:00
Min Chen
27133fba7d
Simplify clean up snapshots logic in secondary storage and consolidate
...
to use one agent command DeleteSnapshotBackupCommand for snapshot
deletion task by removing CleanupSnapshotBackupCommand.
2013-05-25 20:48:15 -07:00
Edison Su
0ed441c690
CLOUDSTACK-2637: fix upload volume
2013-05-24 19:00:52 -07:00
Min Chen
89f351c2e5
Clean up template sync code, and update template state in template sync
...
phase instead of doing it in adding image store.
2013-05-24 11:56:36 -07:00
Min Chen
c614c6a424
CLOUDSTACK-2674: Secondary Storage garbage collector failed with NPE in
...
case of S3 storage provider.
2013-05-24 11:10:45 -07:00
Wido den Hollander
bef3a2edb7
CLOUDSTACK-1191: rbd: Use cloning for deploying templates instead of a copy
...
RBD format 2 supports cloning (aka layering) where one base image can serve
as a parent image for multiple child images.
This enables fast deployment of a large amount of virtual machines, but it also
saves spaces on the Ceph cluster and improves performance due to better caching.
Qemu-img doesn't support RBD format 2 (yet), so to enable these functions the
RADOS/RBD Java bindings are required.
This patch also enables deployment of System VMs on RBD storage pools. Since we
no longer require a patchdisk for passing the boot arguments we are able to deploy
these VMs on RBD.
2013-05-24 16:00:08 +02:00
Edison Su
3ec52807f1
CLOUDSTACK-2593: fix migrate volume between pools through secondary storage
2013-05-23 18:26:16 -07:00
Min Chen
d1704a389a
Exclude removed template from template sync.
2013-05-23 17:23:25 -07:00
Min Chen
1e21b0b0e8
Handle null host ip from NetUtils.getDefaultHostIp().
2013-05-23 13:05:01 -07:00
Min Chen
8d08f9b74b
CLOUDSTACK-2655: use ssvm public IP to construct extract url.
2013-05-23 12:05:58 -07:00
Min Chen
8960957605
CLOUDSTACK-2634:all delta snapshots relating to volume should be created
...
in the same secondary storage as the first snapshot.
2013-05-23 10:45:47 -07:00
Min Chen
039098469a
CLOUDSTACK-2584: set Format value in CopyCommand.
2013-05-22 14:33:40 -07:00
Edison Su
5af888c67a
add image format in volumevo
2013-05-22 13:38:11 -07:00
Min Chen
f23f341922
Handle CopyCmdAnswer in VolumeObject.processEvent for image and
...
imageCache, and fix a bug in selecting endpoint.
2013-05-21 22:15:36 -07:00
Edison Su
383be568b3
CLOUDSTACK-2527: enable attach/detach xs tool iso
2013-05-21 19:13:29 -07:00
Edison Su
827a1a229b
CLOUDSTACK-2584: fix create template from s3
2013-05-21 16:55:41 -07:00
Min Chen
235825dc33
Properly updated destroyed column in template_store_ref and
...
volume_store_ref in deleting template or volume.
2013-05-21 16:51:12 -07:00
Min Chen
2af36aa87b
Clean up template_zone_ref entries in case of create template failure.
2013-05-21 12:00:59 -07:00
Min Chen
8f549db518
Clean up entries in template_store_ref, volume_store_ref and
...
snapshot_store_ref in case of operation failure.
2013-05-21 12:00:04 -07:00
Min Chen
2f6d94462e
Support multiple secondary storages for backup snapshot.
2013-05-20 21:36:50 -07:00
Min Chen
5be7f7ddb1
VolumeObject.processEvent for ImageCache should only change state in
...
volume_store_ref, not volume table itself.
2013-05-20 21:25:59 -07:00
Min Chen
b9378ae5ad
Fix cache storage selection in case of zone scope id passed is null.
2013-05-20 16:44:31 -07:00
Min Chen
565bdfb27b
Fix CLOUDSTACK-2525: clean up db entries in vm_template and
...
template_store_ref in case of template creation failure.
2013-05-20 16:21:45 -07:00
Rajesh Battala
107f492475
Fixed CLOUDSTACK-2081 Volume which is added thru upload volume is failed to attach to the instance saying Volume state must be in Allocated, Ready or in Uploaded state( Though uploaded Volume state is uploaded)
2013-05-17 14:58:25 +05:30
Edison Su
f7c1b711ad
merge to master
2013-05-16 23:56:20 -07:00
Prachi Damle
a2eb7bab1e
CLOUDSTACK-2056: DeploymentPlanner choice via ServiceOffering
...
- Changes merged from planner_reserve branch
- Exposing deploymentplanner as an optional parameter while creating a service offering
- changes to DeploymentPlanningManagerImpl to make sure host reserve-release happens between conflicting planner usages.
2013-05-16 15:02:17 -07:00
Edison Su
389d7c1fa0
if object is already stored in cache store, don't download again
2013-05-16 14:34:06 -07:00
Edison Su
c476d7866e
CLOUDSTACK-2482: fix create volume from snapshot
2013-05-15 19:41:50 -07:00
Min Chen
b66c484905
Fix size issue in copying template from S3 to cache storage to make
...
system vm up.
2013-05-15 18:54:55 -07:00
Edison Su
a0c3d280b4
merge to master
2013-05-15 00:40:53 -07:00
Edison Su
ed065418b6
add license header
2013-05-14 21:58:07 -07:00
Edison Su
879a954b98
delete snapshot at the backend
2013-05-14 21:58:07 -07:00
Edison Su
68ffe1c706
fix bug in create volume from snapshot
2013-05-14 16:38:02 -07:00
Min Chen
252f384e89
Fix CLOUDSTACK-2485: ClassCastException in extracting ISO.
2013-05-14 14:57:02 -07:00
Min Chen
87af4ddab0
Only download eligible system template for S3 image store.
2013-05-14 14:57:01 -07:00
Edison Su
12583bbffc
snapshot path is accountId + volumeid
2013-05-14 13:20:10 -07:00
Min Chen
2102ede2e7
Fix CLOUDSTACK-2469: default template is not downloaded.
2013-05-14 11:42:24 -07:00
Min Chen
3424ac86ad
Fix size issue for template created from snapshot.
2013-05-13 17:45:22 -07:00
Edison Su
0ce01e56db
set template size when creating template from snapshot
2013-05-13 16:45:03 -07:00
Min Chen
9777e56e8e
Update built-in template size in vm_template table.
2013-05-13 15:46:01 -07:00
Min Chen
5341f299ff
We still need the hack of Ready to Ready transition for NFS.
2013-05-13 15:46:00 -07:00
Edison Su
1694c1a502
fix download timeout
2013-05-13 14:40:49 -07:00
Min Chen
e6faa47a4b
Remove unnecessary state machine entry after refactoring
...
sendMessageAsyncWithListener to use sendMessageAsync.
2013-05-13 11:36:44 -07:00
Min Chen
c13a691429
Fix some inaccurate logging message in template sync.
2013-05-13 11:27:34 -07:00
Min Chen
ff735b4d81
Fix a bug in searching for eligible image store when we pass a ZoneScope
...
with scopeId = null.
2013-05-13 11:07:06 -07:00
Nitin Mehta
f84b6abde0
merge with master
2013-05-13 17:30:42 +05:30
Rajesh Battala
756a4179e2
Fixed CLOUDSTACK-2189 Volume is stuck in resizing state
...
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
2013-05-13 14:41:00 +05:30
Edison Su
492127c035
fix kvm
2013-05-12 18:27:37 -07:00
Min Chen
0b9e0c0f3a
Override getRootDir in LocalNfsSecondaryStorageResource to make mount
...
successfully on MS side. Now S3 is working.
2013-05-12 17:41:44 -07:00
Edison Su
e8259e38c2
integration test is passed again
2013-05-12 14:41:06 -07:00
Min Chen
0d580ccb26
Fix NPE in adding host and also put back lost change in deployDataCenter
...
due to rebase with master.
2013-05-11 22:00:40 -07:00
Min Chen
1bd216fc48
Merge with latest code rebased from master
2013-05-11 21:05:54 -07:00
Min Chen
f8e51f70a1
Invoke reatetmplt.sh script after copying template from S3 to cache
...
storage.
2013-05-11 18:19:29 -07:00
Nitin Mehta
c11dbad9c9
merge master
2013-05-11 15:28:43 +05:30
Edison Su
993187622e
fix compile, after rebase to master
2013-05-10 20:39:02 -07:00
Edison Su
90de46c4fe
get vmware works
2013-05-10 19:26:44 -07:00
Min Chen
8a9a7a4adc
Fix a bug in create cache object for S3.
2013-05-10 17:53:32 -07:00
Alex Huang
342624e0eb
Merged with head
2013-05-10 16:33:57 -07:00
Alex Huang
3047929367
Merged
2013-05-10 16:21:43 -07:00
Edison Su
15fc4e137d
add license header
2013-05-10 11:40:11 -07:00
Edison Su
e444867e61
fix compile
2013-05-10 09:47:09 -07:00
Edison Su
42e25a22fc
refactor kvm/vmware resource code
2013-05-09 23:10:05 -07:00
Min Chen
2c22488ed7
Filter out cache store in find image store by provider.
2013-05-09 21:49:12 -07:00
Min Chen
6f4fcf741c
Fix listImageStores to only list store with Image role, excluding those
...
cache stores since they are also stored in image_store table.
2013-05-09 21:49:12 -07:00
Min Chen
f965e2d892
Download system template while adding S3 image store is working.
2013-05-09 21:49:12 -07:00
Sanjay Tripathi
3aed20c9d2
CLOUDSTACK-1603: Management server .log Java Exceptions are displayed with Alerts
2013-05-10 10:18:37 +05:30
Min Chen
292e77b96b
Fix marvin test to add S3 image store and cache storage.
2013-05-09 16:19:06 -07:00
Min Chen
fa11575212
Add store_role to template_store_ref, and add search function to find
...
template_store_ref entry based on DataStoreRole and ZoneId.
2013-05-08 22:06:07 -07:00
Min Chen
dc5d2f45e9
Make copyFromS3ToNFS flow work.
2013-05-08 17:39:46 -07:00
Min Chen
3b45bc9c30
Make S3 register template work.
2013-05-08 11:12:26 -07:00
Min Chen
f8edb55497
Register template, delete template and create instance from registered
...
template are working on NFS.
2013-05-08 10:29:09 -07:00
Edison Su
ac7be218d5
creat template from volume/snapshot, and then create vm from template works now
2013-05-07 20:18:19 -07:00
Edison Su
5aeca646ae
make create template from volume/snapshot work
2013-05-07 20:18:19 -07:00
Min Chen
d79b890904
Change VMTemplate state in destroy.
2013-05-07 17:45:06 -07:00
Min Chen
8984e430ce
Add state transition for destroy scenario.
2013-05-07 17:45:06 -07:00
Min Chen
3315b23595
Relax url port validation and some MockLocalNfsSecondaryStorageResource
...
fix.
2013-05-07 13:34:27 -07:00
Min Chen
41272c976e
Add DeleteTemplate unit test.
2013-05-06 23:02:28 -07:00
Min Chen
26424ff2a8
Make url in AddImageStoreCmd not required since S3 does not have url.
2013-05-06 22:14:49 -07:00
Min Chen
e7f6333209
Merge branch 'object_store' of https://git-wip-us.apache.org/repos/asf/cloudstack into object_store
2013-05-06 21:21:40 -07:00
Edison Su
0e28772957
fix race condition, when multiple vms on the same templates are started at the same time
2013-05-06 19:04:41 -07:00
Edison Su
1b8e7aba73
uncomment out template sync
2013-05-06 18:28:47 -07:00
Edison Su
9f7bad2cef
fix creating snapshot
2013-05-06 18:27:15 -07:00
Edison Su
2d544e7127
volume related operation works
2013-05-06 18:27:15 -07:00
Min Chen
f5d5526d41
Fix unit test to test NFS template download flow.
2013-05-06 18:02:52 -07:00
Alex Huang
3722d66aae
Fixed up unit testing to use only an in class TestConfiguration
2013-05-06 16:34:27 -07:00
Min Chen
0d78209b73
Address various UI requirements by introducing provider constants.
2013-05-06 15:12:33 -07:00
Min Chen
7ad263b67e
Revert previous workaround for ListTemplateCommand, which is correct
...
after updating the systemvm.iso on devcloud.
2013-05-06 11:29:57 -07:00
Min Chen
a221ecb484
Workaround an issue of null url when ListTemplateCommand is received on
...
SSVM side, also fix a bug in listTemplates with id passed.
2013-05-04 23:09:23 -07:00
Edison Su
23d6f12e9a
fix db select
2013-05-03 15:44:38 -07:00
Edison Su
acafccfbc6
fix volume state change
2013-05-03 15:01:09 -07:00
Min Chen
23db72d8b4
S3 template download test is working except state transition part.
2013-05-03 14:59:13 -07:00
Min Chen
df7a56d63f
Removed redundant getInstallPath to use getPath in VolumeInfo.
2013-05-03 10:01:23 -07:00
Edison Su
fc74d76696
add volume test case
2013-05-03 09:53:06 -07:00
Edison Su
0c6e87c701
download template to primary storage works now
2013-05-03 09:45:31 -07:00
Min Chen
c60c373a38
Modify DownloadCommand to pass DataTO.
2013-05-02 23:05:19 -07:00
Min Chen
87fafb7287
Add S3 register template integration test.
2013-05-02 15:20:46 -07:00
Edison Su
2384276536
make template download testable
2013-05-02 00:38:11 -07:00
Edison Su
164bedd5ae
revive java integration test
2013-05-01 18:24:47 -07:00
Edison Su
4d992fd18f
fix template download to primary storage
2013-05-01 17:51:24 -07:00
Min Chen
2812873ffa
Remove methods of searching for secondary storages from host table from
...
SecondaryStorageManagerImpl.
2013-05-01 17:35:51 -07:00
Min Chen
8a5bd9e8f8
Fix a sql bug in selecting end point to send message.
2013-05-01 16:04:40 -07:00
Edison Su
52799f46a4
fix data motion
2013-05-01 14:00:53 -07:00
Min Chen
3c6b7c2a01
Populate system vm template to template_store_ref in adding an image
...
store.
2013-05-01 12:10:24 -07:00
Min Chen
36c1538f06
Bugfix to make deployDataCenter.py work.
2013-04-30 17:42:48 -07:00
Min Chen
bbd5d13213
Fix bugs in refactored listTemplates and listIsos API.
2013-04-30 11:31:45 -07:00
Edison Su
2f689171e0
refactor snapshot
2013-04-29 18:51:14 -07:00
Edison Su
37cbe8890f
refactor snapshot
2013-04-29 18:51:13 -07:00
Min Chen
91bfbdf1c4
Handle ListTemplateCommand in NfsSecondaryStorageResource for various
...
data store provider.
2013-04-26 12:25:06 -07:00
Nitin Mehta
d1642a489c
=initial changes
2013-04-25 18:29:57 +05:30
Edison Su
4029e7af44
refactor data motion service for volumes
2013-04-24 18:53:57 -07:00
Min Chen
4c174a6867
Fix DeleteSnapshotBackupCommand to pass dataStore information.
2013-04-24 17:30:38 -07:00
Min Chen
5b76e4914c
Remove sendToSecStorage methods from agentManager to use EndPoint
...
instead.
2013-04-24 16:21:41 -07:00
Min Chen
8d29cdf804
Remove SnapshotVO.getSecHostId and SnapshotVO.setSecHostId references
...
from codebase to use SnapshotDataStoreVO.
2013-04-24 11:54:42 -07:00
Min Chen
792fc471a2
Remove VolumeHostDao references from codebase.
2013-04-24 11:11:58 -07:00
Min Chen
0cfef3aa4e
Remove almost all VMTemplateHostDao references except S3Manager and
...
SwiftManager.
2013-04-23 17:51:54 -07:00
Min Chen
06b3092083
Remove VMTemplateHostDao reference from VolumeManagerImpl,
...
StorageManagerImpl and SecondaryStorageManagerImpl.
2013-04-23 12:10:40 -07:00
Min Chen
e40a06deae
Fix extractTemplateCmd.
2013-04-22 21:48:57 -07:00
Edison Su
b8c5c67fbc
add copycommand at resouce side
2013-04-22 19:12:50 -07:00
Min Chen
29687663e8
Rename SnapshotStrategy to SnapshotService to have consistent naming
...
convention for Template, Snapshot, Volume. Also rename CopyCmd to
CopyCommand to follow internal command naming convention.
2013-04-22 16:15:57 -07:00
Min Chen
5f90aa971a
Implement createTemplateCmd and consolidate several copy calls in
...
TemplateServiceImpl.
2013-04-22 15:33:43 -07:00
Edison Su
b30e39b0e3
CLOUDSTACK-1392: add create template from snapshot and volume
2013-04-22 13:24:10 -07:00
Min Chen
9c584b5500
Use EndPoint to send local/remote command, and hide agentMgr message
...
passing.
2013-04-22 13:21:28 -07:00
Min Chen
ffdf567b58
Add implemention to pick EndPoint for secondary storage
2013-04-22 13:19:04 -07:00
Edison Su
abf40435f3
refactor downloadlistener, sync system vm templates when adding a new image store
2013-04-21 22:46:02 -07:00
Min Chen
0229c75b50
Use data motion service for PrepareTemplateCmd to move template from
...
secondary storage to primary.
2013-04-20 20:44:31 -07:00
Min Chen
86913ab4d3
Use data motion service to implement copy template.
2013-04-19 23:01:59 -07:00
Min Chen
6f70fe28e8
Trigger system vm template download while adding image store. Just a
...
code skeleton, waiting for some code in EndPoint.
2013-04-19 19:37:06 -07:00
Min Chen
b8229349f5
Rename HypervisorHostEndPoint to RemoteHostEndPoint to accommodate ssvm
...
as well.
2013-04-19 17:46:33 -07:00
Devdeep Singh
b01f63123f
CS-1879: NPE while migrating volume. The state transitions on the volume that has to be migrated were incorrect. A volume to be migrated is in ready state and cannot be transitioned to copying state. Similarly, the duplicated volume is in ready state too and cannot be transitioned to creating state. Fixed it by transitioning the volume to migrating state when a migrateVolume api call is made. Also, a volume has to be destroyed first before it can be expunged. Fixed that too.
...
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-04-19 16:15:24 +05:30
Devdeep Singh
21ce3befc8
Storage motion for Xenserver changes: 1. Implemented Api findStoragePoolsForMigration. Added a new response objects to list storage pools available for migration. 2. Updated migrateVolume api for allowing migrating volumes of running vms. These changes are integrated into the latest storage refactoring changes. 3. Added the implementation for findHostsForMigration api. It lists the hosts to which an instance can be migrated, including hosts from within and across clusters to which an instance may be migrated with storage motion. The work of migrating a volume of a running vm is also done in copyAsync. 4. Updated the listHosts api for backward compatibility. 5. Added the implementation for migrateVirtualMachineWithVolume api. It migrates an instance with its volumes within a cluster and also across clusters. Also introduced a new XenServerStorageMotionStrategy for migrating volumes of a vm. When a vm is being migrated with its volumes, the vm is put in migrating state and a request is send to the volume manager to migrate the vm and its volumes. Volume manager calls into the volume service which forwards the request to data motion service after moving all the volumes to migrating state. Data motion service enumerates the strategies and the request reaches the XenServerStorageMotionStrategy. It calls in to the resource to complete the operation. 6. Resolved an issue where storage xenmotion of 2nd VM created from the same template to a host was failing with duplicate_vm exception. Made changes to remove the mac_seed key value pair from other_config when vms are created. This is was storage motion to fail. 7. Updated the db upgrade schema script. 8. Added the right permissions in commands.properties 9. Marvin tests for testing storage motion. Following scenarios are tested. 9.1. A virtual machine is migrated to another host. Its volumes are also migrated to another storage pool. 9.2. Just the volumes of a vm are migrated to another storage pool while the vm continues to run on the same host. 10. Unit tests for testing migration of a vm with its volumes.
...
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-04-19 11:36:42 +05:30
Edison Su
ef30ee52ee
add copy stuff from s3 into nfs cache storage
2013-04-18 13:44:49 -07:00
Edison Su
1fe5d7c886
need to download image to cache storage from s3/swift on mgt server for default system vm templates
2013-04-18 01:56:34 -07:00
Min Chen
fe4f53bfcd
Fix SecStorageSetupCommand for Nfs image store.
2013-04-17 17:16:01 -07:00
Min Chen
14b5f0da19
Rename ImageDataFactoryxxx to TemplateDataFactory to have consistent
...
naming conventions for Template data factory class.
2013-04-17 11:45:25 -07:00
Min Chen
fe3b01ece1
Update DataObjectInStore interface and unify implementation of
...
ImageDataFactory, VolumeDataFactory and SnapshotDataFactory
implementations.
2013-04-17 11:40:57 -07:00
Min Chen
1b3994e180
Fix copyTemplateCmd.
2013-04-16 16:38:14 -07:00
Min Chen
0da2da852b
Fix the flow of deleteTemplateCmd.
2013-04-16 12:03:12 -07:00
Mice Xia
ce3337cdd6
CLOUDSTACK-1983 StackOverflowError while deleting snapshot
2013-04-16 13:18:44 +08:00
Mice Xia
cbe021b8d2
CLOUDSTACK-2040 VM with snapshot not getting destroyed during account delation
2013-04-16 13:18:44 +08:00
Min Chen
593337565e
Add S3 code to handle DownloadCommand for registerTemplate.
2013-04-15 14:44:39 -07:00
Pascal Borreli
20614598bf
Fixed typos
...
Signed-off-by: Milamber <milamber@apache.org>
2013-04-13 13:28:32 +00:00
Min Chen
2dd8e2cb97
add getStoreTO into each DataStoreDriver, and add implementation for 3
...
data store plugins.
2013-04-12 18:22:23 -07:00
Min Chen
2ff01a79ca
Rename TemplateTO/VolumeTO in cloud-engine-storage to
...
TemplateObjectTO/VolumeObjectTO to avoid name conflicting with the one
in cloud-api.
2013-04-12 17:10:19 -07:00
Edison Su
b81fa6d9ea
add copy template to cache store
2013-04-12 16:03:30 -07:00
Pascal Borreli
95cbb790f3
Fixed Primary typo
2013-04-12 16:20:11 +01:00
Chip Childers
3b35063adf
Revert "Fixed Primary typo"
...
This reverts commit 4e5a8a0f8a .
2013-04-12 15:18:02 +01:00
Pascal Borreli
4e5a8a0f8a
Fixed Primary typo
...
Conflicts:
client/WEB-INF/classes/resources/messages_de_DE.properties
2013-04-12 14:14:44 +01:00
Min Chen
bb64672715
Refactor DownloadMonitorImpl code, move some functionalities to
...
TemplateServiceImpl and VolumeServiceImpl.
2013-04-11 18:09:42 -07:00
Min Chen
582a1f0539
Fix ImageStoreDaoImpl to return only image stores, not image cache
...
stores.
2013-04-11 11:54:30 -07:00
Edison Su
1c448cd6e3
add cache storage
2013-04-11 11:01:29 -07:00
Edison Su
e5bf38ed05
add cache storage
2013-04-11 10:52:53 -07:00
Min Chen
02686583cf
First draft of register template using image store.
2013-04-10 18:02:53 -07:00
Min Chen
3897590bb1
Add check in addImageStoreCmd to guarantee our assumption of homogeneous
...
image stores.
2013-04-09 16:36:02 -07:00
Min Chen
b2d5535bba
Remove State from image_store db table, and removed enableImageStore
...
api.
2013-04-09 15:38:33 -07:00
Min Chen
2a177de2bc
Remove unused DataStoreProviderDao since provider does not has its own
...
db table.
2013-04-09 14:59:07 -07:00
Min Chen
9be9902ed5
Fix applicationContext.xml to properly load all new refactored image
...
store related classes, also add enableImageStore api.
2013-04-09 14:49:09 -07:00
Min Chen
74880fa26f
add DeleteImageStoreCmd Api.
2013-04-08 16:18:06 -07:00
Min Chen
a872d6d306
Renamed internal classes to use "imageStorexxx" instead of previous
...
"imageDataStorexxx". Add new addImageStoreCmd to use 3 image store
provider plugins.
2013-04-05 17:33:35 -07:00
Min Chen
86a3840412
Fix AddSecondaryStorageCmd to use CloudStack default secondary storage
...
store plugin.
2013-04-05 11:18:33 -07:00
Min Chen
5b31a45ebc
Some further naming refactoring.
2013-04-05 11:18:32 -07:00
Min Chen
a5416797ab
Move previous AncientImageDataStore provider and DefaultImageDataStore
...
provider code into plugins.
2013-04-05 11:18:32 -07:00
Min Chen
b0cbe260f9
New VO and DAO for snapshot, template and volume association table with
...
image_data_store.
2013-04-05 11:18:32 -07:00
Edison Su
f18a1d6f14
fix bunch of bugs related to zone wide storage
2013-04-03 21:51:17 -07:00
Harikrishna Patnala
6110e00c54
CLOUDSTACK-1830: ZWPS: NPE while create volume from snapshot
2013-04-02 10:40:42 -07:00
Min Chen
c52d04cd63
Correct a naming typo.
2013-03-28 10:23:55 -07:00
Edison Su
3ed6200ef8
move default primary storage plugin into its own pom
2013-03-20 17:21:40 -07:00
Edison Su
c60ef79321
CLOUDSTACK-1608: don't support attach volume between different storage scopes
2013-03-19 14:36:37 -07:00
Deepti Dohare
d5cb32f159
Multiple Secondary Storage Issue
2013-03-14 21:08:27 -04:00
Deepti Dohare
27b753a434
CLOUDSTACK-1575 Failed to transit volume with uploadVolume
...
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
2013-03-13 10:40:08 +05:30
Edison Su
409ec9c6b6
CLOUDSTACK-1426: We has strong implication that VO must implement an interface, otherwise EntityManagerImpl can't the vo
2013-03-07 18:25:57 -08:00
Kelven Yang
cc91d826df
Fix conflicts in storage subsystem with Spring
2013-03-05 19:03:31 -05:00
Kelven Yang
333dd810d2
CLOUDSTACK-1339: Using Sping interface injection pattern to avoid using CGLIB proxying mode. Spring with CGLIB proxying will concflict with CGLIB usage in CloudStack DB code, CloudStack CGLIB usage can cause Spring to lose tack of its proxied object and therefore creates a massive amount of objects in memory
2013-03-05 19:03:30 -05:00
Edison Su
69678c82ac
suddenly, maven can't build this java file
2013-03-04 17:23:27 -08:00
Edison Su
cc81413931
CLOUDSTACK-724: add zone wide storage, createstoragepoolcmd doesn't need cluster/pod any more
2013-02-26 23:16:17 -08:00
David Nalley
dc6b4b54fa
adding license headers
2013-02-27 01:42:19 -05:00
Edison Su
0e6290ba87
fix build
2013-02-26 18:50:48 -08:00
Edison Su
8e360f342d
CLOUDSTACK-724: add basic zone wide storage support, refactor storage allocator, need ui support
2013-02-26 18:39:23 -08:00
Sheng Yang
1b408509d6
CLOUDSTACK-1332: Add IPv6 DNS for Zone
2013-02-25 16:08:10 -08:00
Edison Su
3bb713c5ce
fix adding nfs primary storage and build and load
2013-02-21 16:24:39 -08:00
Chip Childers
6cc1123a3e
Correcting license headers that broke the build
...
Signed-off-by: Chip Childers <chip.childers@gmail.com>
2013-02-21 16:29:05 -05:00
Edison Su
ae902590d3
fix snapshot
2013-02-21 11:22:50 -08:00
Edison Su
fb4036ece4
add test folder for snpahost project
2013-02-21 11:22:49 -08:00
Edison Su
0f532c4b3a
rebase to master
2013-02-21 11:22:49 -08:00
Edison Su
ff047e75d3
refactor snapshot, move existing snapshot code into its own snapshotstrategy
2013-02-21 11:22:49 -08:00
Edison Su
020be66f9d
add copy volume and create volume from snapshot
2013-02-21 11:22:49 -08:00
Edison Su
621a779446
use correct disk offering id
2013-02-21 11:22:49 -08:00