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
Edison Su
a22403edcd
squash changes into one giant patch
2013-02-21 11:22:48 -08:00
Rohit Yadav
80d58b6c73
CLOUDSTACK-1317: Bump CloudStack package version to 4.2.0-SNAPSHOT in all poms
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-20 16:42:56 +05:30
Kelven Yang
7b75f0d990
Sync master to javelin one more time
2013-02-01 11:37:33 -08:00
Kelven Yang
176523254e
Improve component lifecycle management with system run-level concept
2013-01-30 15:21:02 -08:00
Kelven Yang
1450547987
Put usage server under Spring
2013-01-25 23:00:55 -08:00
Edison Su
6f5655cb03
generalize storage orchestration: DataObjectManager will handle all the object life cycle management
2013-01-24 18:30:08 -08:00
Kelven Yang
45a92ba369
Fix the initialization of management server
2013-01-23 15:29:41 -08:00
Prachi Damle
e5bf16b00f
Fixing error with merge
2013-01-22 16:44:28 -08:00
Edison Su
e4e2cf6be7
skip test in cloud engine
2013-01-22 13:25:48 -08:00
Edison Su
c921118c58
add image create test case
2013-01-22 13:25:48 -08:00
Edison Su
4fbecf15ec
add unit test back, primary storage life cycle is tested
2013-01-21 17:01:00 -08:00
Edison Su
3251cd665b
add test case for create storage pool
2013-01-21 16:59:51 -08:00
Edison Su
b4988e86ab
add backedn code
2013-01-21 16:59:50 -08:00
Kelven Yang
2c5859dbd4
Bring javelin back to the status of being able to start System VMs after another round of master branch merge
2013-01-18 19:15:32 -08:00
Edison Su
224621197c
add misssing files
2013-01-18 15:39:37 -08:00
Edison Su
1283712d93
replace spring injection in nfssecondarystorage
2013-01-18 15:10:08 -08:00
Rohit Yadav
593b60ca51
rat: Fix license on newly added files
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-01-17 21:37:24 -08:00
Edison Su
ddc53771bf
implement toURI
2013-01-17 18:49:50 -08:00
Edison Su
c4a11b9979
rename datastream to dataobject
2013-01-17 18:49:50 -08:00
Kelven Yang
df684261cf
Put command classes under Spring injection framework
2013-01-15 18:07:19 -08:00
Edison Su
c93918a896
rename dataobject to datastream
2013-01-15 15:46:21 -08:00
Edison Su
8af85b04d0
refactor api, based on suggestion from community
2013-01-14 18:52:39 -08:00
Rohit Yadav
9faf00bdc8
Fix license on xml.in, jsp and ucls files on javelin
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-01-12 06:34:34 -08:00
Rohit Yadav
ea3f5ecb54
Fix license for xml files in javelin
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-01-12 06:31:47 -08:00
Rohit Yadav
ba20e7f85a
Fix license headers for java files in javelin
...
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-01-12 06:27:09 -08:00
Rohit Yadav
38eaa04b98
Pull changes from master into javelin
...
- Disables simulator plugin, breaks build, available via simulator profile
- Fixes spring injections
- Fix api,acl plugins, ApiServer, ApiDispatcher
- Fix other merge conflicts
Conflicts:
docs/en-US/external-firewalls-and-load-balancers.xml
plugins/acl/static-role-based/src/org/apache/cloudstack/acl/StaticRoleBasedAPIAccessChecker.java
server/src/com/cloud/api/ApiDispatcher.java
server/src/com/cloud/api/ApiServer.java
server/src/com/cloud/consoleproxy/ConsoleProxyManagerImpl.java
utils/test/com/cloud/utils/log/CglibThrowableRendererTest.java
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-01-12 06:02:54 -08:00
Kelven Yang
53da542001
Another round of fixes after merge
2013-01-11 15:21:04 -08:00
Alex Huang
f922c6fc03
Keep removing
2013-01-10 14:46:52 -08:00
Alex Huang
56e5fbdee2
removed import of componentlocator and inject from all files
2013-01-10 11:44:47 -08:00
Alex Huang
395de6f2b3
merge from latest pull
2013-01-10 11:07:11 -08:00
Alex Huang
f40e7b7511
removed componentlocator and inject
2013-01-10 11:05:20 -08:00
Edison Su
a03d83bba9
refactor the motion service api
2013-01-10 10:27:05 -08:00
Alex Huang
14bd345f1f
merge compiles
2013-01-09 04:41:27 -08:00
Kelven Yang
32e67f60d4
Work with Spring proxy-ed object
2013-01-08 14:24:19 -08:00
Edison Su
2d6133c61e
change the top level async call using future
2013-01-04 17:17:57 -08:00
Edison Su
9410cd1f3c
add deletevolume and createdata disk
2013-01-03 18:56:18 -08:00
Prachi Damle
1eb64e6181
ProvisioningService:: registerZone changes and unit-test
2013-01-03 11:44:36 -08:00
Edison Su
d7bc09f950
fix build
2013-01-03 11:35:41 -08:00
Edison Su
e40042b554
refactor volumeservice api
2013-01-02 18:42:48 -08:00
Edison Su
ce2120d09d
fix build
2013-01-02 17:43:55 -08:00
Edison Su
5d1e97e407
add create volume
2013-01-02 17:32:54 -08:00
Kelven Yang
6504fc6b09
Enforce strong typing for getting result from AsyncMethod
2013-01-02 15:48:45 -08:00
Edison Su
13aef24ba2
add uml class diagram generated by objectaid
2012-12-28 16:51:25 -08:00
Alex Huang
54cce5fa18
Getting things to compile
2012-12-28 16:07:56 -08:00
Kelven Yang
259e6d5f74
Fix a few Spring bootstrap issues
2012-12-27 17:46:52 -08:00
Edison Su
9de3a1fae4
add create volume from base image command
2012-12-27 16:31:59 -08:00
Edison Su
d99161399e
so many traps in rpc call: you can't use aop in a thread, you need to intercept finalize call etc
2012-12-24 02:37:32 -08:00
Edison Su
4b2d9f4415
refactor test cases: use testNG instead of junit, as testNG can group test cases and pass parameter to test case
2012-12-22 22:10:39 -08:00
Kelven Yang
877e16029c
Fix a few Spring issues to Bootstrap javaline server
2012-12-21 16:49:27 -08:00
Edison Su
ac88c16be6
finaly, finish download template to primary storage
2012-12-20 19:06:02 -08:00
Edison Su
c216990e1c
trying to add code to download url into devcloud
2012-12-19 18:43:04 -08:00
Edison Su
8aaf5ba3a0
fix unit test
2012-12-19 16:01:58 -08:00
Edison Su
ad3b226ab2
fix test build
2012-12-19 12:08:58 -08:00
Edison Su
8214f18897
fix build, due to refactor rpc
2012-12-19 12:02:11 -08:00
Edison Su
0581ea763a
add xenserver backend code: download template from http directly
2012-12-18 18:34:13 -08:00
Edison Su
aefb657c41
Finally, get async api call works for storage subsystem
2012-12-17 18:12:46 -08:00
Edison Su
716a5673d0
1st try to add async api in the storage component, it's ugly like hell
2012-12-14 18:25:40 -08:00
Edison Su
510d3759a7
fix build
2012-12-13 15:17:23 -08:00
Edison Su
cdf5511664
finish configurator, the default primary storage provider can cover all the hypervisors and protocols
2012-12-08 03:16:03 -08:00
Edison Su
7652a44be7
add datastore configurator, for each hypervisor and each protocol, needs to have its own configurator
2012-12-07 18:23:08 -08:00
Edison Su
ae59bf6c3b
add lifecycle on primarydatastore
2012-12-07 18:23:08 -08:00
Edison Su
1b91641397
We can directly load xenserver resource in unit test now, that means directly sending commands to hypervisor host in unit test is possible, storage integration test is in a final stage
2012-12-05 17:52:24 -08:00
Edison Su
0836bb8ec9
add state machine for templateonprimarystorage, thus we don't need hold lock
2012-12-04 19:02:14 -08:00
Edison Su
2c689adce7
add more implementation in volume project
2012-12-03 18:34:49 -08:00
Edison Su
54f9a5de65
add backup/snapshot project
2012-12-03 13:39:44 -08:00
Edison Su
ac5622cc2a
add sample driver code: solidfire and s3
2012-11-28 19:50:41 -08:00
Edison Su
225ad3c289
seperate code into different modules: storage, storage/volume, storage/image, storage/snapshot, storage/backup, storage/integration-test
2012-11-27 19:16:28 -08:00
Edison Su
487a0ac43d
remove unused code
2012-11-26 18:45:49 -08:00
Edison Su
e436d4327f
create volume from template unit test is passed
2012-11-26 11:42:34 -08:00
Edison Su
550f4fbcdc
create template/primary data store is done
2012-11-20 18:57:19 -08:00
Edison Su
573d13dd7c
starting unit test
2012-11-20 18:57:19 -08:00
Alex Huang
bd17d35adb
Some initial checkins
2012-11-19 16:53:21 -08:00
Edison Su
6866613af4
refactor download template
2012-11-16 18:50:28 -08:00
Edison Su
23a35db952
add image motion interface
2012-11-15 17:52:42 -08:00
Edison Su
3b668d2907
fix build
2012-11-15 13:29:11 -08:00
Edison Su
cad75e7220
add storage motion interface
2012-11-14 17:47:24 -08:00
Edison Su
a06eb4557e
refactor apis
2012-11-13 16:34:44 -08:00
Edison Su
2251d5bb40
move interfaces around
2012-11-07 16:03:34 -08:00
Kelven Yang
cea8f3bf37
Switch inject annotation to javax and let ComponentLocator to recognize both the new and original inject annotation
2012-11-07 15:03:22 -08:00
Edison Su
17c82b7270
add image skeleton
2012-11-05 19:36:56 -08:00
Edison Su
6dd2318b44
fix build
2012-11-05 11:19:16 -08:00
Alex Huang
cf6b336739
fixed pom problem in network component
2012-11-05 09:22:50 -08:00
Alex Huang
a6df8a5b44
Added engine
2012-11-05 09:14:14 -08:00