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
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