Rajani Karuturi
75ae90b073
volume-upload: added account level secondary storage resource limit checks
2015-04-24 15:48:44 +05:30
Rajani Karuturi
0525e4763b
volume-upload: refactored some error messages
2015-04-24 15:45:29 +05:30
Rajani Karuturi
a7e511c1a3
Added file exists check for onetime post url
...
also, fixed an issue where in the upload was going to error state in
case of parallel call to the same post url
2015-04-17 18:08:23 +05:30
Rajani Karuturi
ce823a3a26
Returning template/volume download percent in UploadStatusAnswer
...
Also updating the store ref entries on receiving the answer.
2015-04-09 15:38:58 +05:30
Rajani Karuturi
878b43bc64
volume-upload: removed hardcoded vhd for Image format check.
2015-03-30 17:56:59 +05:30
Rajani Karuturi
018023c1ef
volume upload: added validation for file formats
...
merged TemplateUtils and ImageStoreUtil to a singe ImageStoreUtil
also added a unittest for ImageStoreUtil
2015-03-20 16:25:13 +05:30
Rajani Karuturi
d5dffb5dc9
volume upload: added md5 checksum validation
...
also fixed the issue wherein the successful uploads where also moving to
error state as the channelinactive is called after the end of successful
upload as well.
added a fileuploaded boolean to check when the channel is inactive.
2015-03-18 12:20:51 +05:30
Rajani Karuturi
6b8b4b92e6
handling tcp close event in netty server
...
while the file is in uploading state and connection is reset by peer,
volume upload request posted again shows the upload is IN_Progress
state. marking them as errored
2015-03-17 15:21:25 +05:30
Rajani Karuturi
3de5d9db5f
volume upload: Restart of MS leads to loss of browser uploaded templates
...
on restart of management server, template sync runs. It checks for
templates in ssvm using the uniquename. If it doesnt find any, cleans
the directory. In case of uploaded templates, these are getting saved
using name instead on uniquename and hence template sync cant find them
and does cleanup. Using uniquename in template.properties now.
2015-03-16 12:45:24 +05:30
Rajani Karuturi
b16520bcec
volume upload: added max size check for temaplte/volume post upload
...
used the existing configuration variables max.template.iso.size and
storage.max.volume.upload.size for templates and volumes respectively.
2015-03-03 17:27:40 +05:30
Rajani Karuturi
58f2fb1bb1
volume upload: post response http error code is 200 even for error case
...
Returned appropriate error code(bad request, internal server error, ok)
2015-02-17 12:31:38 +05:30
Rajani Karuturi
643165a07e
volume upload: used netty server to do the file upload
2015-02-17 12:31:27 +05:30
Rajani Karuturi
01c41d09db
volume upload: returning the install path and size in UploadStatusCommand
2015-02-17 11:28:32 +05:30
Rajani Karuturi
7231daa71d
volume upload: fixed the post body parsing logic
...
as long as the boundary is completely in the byte buffer it works.
2015-01-29 16:55:29 +05:30
Rajani Karuturi
92669e314e
volume upload: modified parsing logic
...
vhd file download works fine. some open issues with parsing params
2015-01-29 16:55:28 +05:30
Bharat Kumar
2a2d4364e1
made changes to move a file to the specified localtion
...
Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com>
2015-01-20 16:02:33 +05:30
Rajani Karuturi
a31e1bff33
volume upload: fixed build error from the commit b0a96c4c85
2015-01-20 12:44:05 +05:30
Rajani Karuturi
b0a96c4c85
volume upload: fixed nio server blocking thread issue
2015-01-20 12:27:26 +05:30
Rajani Karuturi
15ae33a5b6
volume upload: refactored post upload command and used it during template registration
2015-01-20 09:24:14 +05:30
Rajani Karuturi
ad6b7b30cb
Volume upload: sending the nfsstore url in the metadata
...
decoding the metadata and deserialising it on receiving it
2015-01-19 18:04:14 +05:30
Rajani Karuturi
ca0f9de6c7
volume upload: parsing post body to get all the params
2015-01-19 12:04:30 +05:30
Koushik Das
7900ae5d9f
volume-upload: initializing state for volume and also setting the post url in volume_store_ref
2015-01-19 11:03:42 +05:30
Rajani Karuturi
c5be9d0b9b
volume upload: removed debug messages in post request handler.
2015-01-17 04:23:44 +05:30
Rajani Karuturi
ef0c5d35cf
volume upload: added post request parser to get the file content
2015-01-17 04:06:29 +05:30
Bharat Kumar
5e1bd634a4
Added changes to maintain and send the upload progress.
...
Signed-off-by: Rajani Karuturi <rajanikaruturi@gmail.com>
2015-01-17 04:06:29 +05:30
Rajani Karuturi
1bf4058732
volume upload: removed the handlerFactory and the handler which were required by NioServer
2015-01-16 17:19:19 +05:30
Rajani Karuturi
ebaa4dd38e
volume upload: added httpcomponents server and removed nio server
...
removing nio server as it is currently handling only https connections
and the parsing logic is also specific to agent communication.
current limitation of httpcomponents server is that the entire file is
read in memory. need figure out how to read it in chunks and send it
through a inputstreamreader to save on secondary storage.
2015-01-16 17:15:14 +05:30
Koushik Das
627f5a62dc
volume upload: management server polling and upload status from agent
...
MS polling logic to query status for volumes that are uploaded
2015-01-14 10:19:12 +05:30
Rajani Karuturi
42fdc343f5
volume upload: starting NIO server on SSVM
2015-01-06 11:07:10 +05:30
Rajani Karuturi
d2ef7295f9
volume upload: sending the preshared key to ssvm
...
sending the key to ssvm in the secondary storage setup command
saving it in a file on ssvm
2014-11-28 16:40:20 +05:30
Nitin Mehta
e87bb20d0c
CLOUDSTACK-7916: Generate Alerts if System VMs cannot be started.
2014-11-14 13:35:40 -08:00
Nitin Mehta
3907bc6f9d
CLOUDSTACK-7916: Generate Alerts if System VMs cannot be started.
2014-11-14 13:18:27 -08:00
Santhosh Edukulla
1aef5cba66
Fixed Coverity Issues
2014-11-03 16:45:30 +05:30
Hugo Trippaers
4ebaf0a583
Bump master version to 4.6.0-SNAPSHOT after branching 4.5.0-SNAPSHOT
2014-10-29 14:54:23 +01:00
Anthony Xu
70112bd145
CLOUDSTACK-7761:
...
Revert "when system VM ping times out, stop system VM"
This reverts commit ee23be1942 .
2014-10-21 17:19:57 -07:00
Santhosh Edukulla
efe1e0a544
Fixed coverity and other resource leak issues
...
Signed-off-by: Santhosh Edukulla <santhosh.edukulla@gmail.com>
2014-10-16 12:19:51 +05:30
Santhosh Edukulla
350ac4c4b0
Fixed Resource Leaks
...
Signed-off-by: Santhosh Edukulla <santhosh.edukulla@gmail.com>
2014-10-13 17:51:02 +05:30
Nitin Mehta
ce90837357
CLOUDSTACK-6826: Improving the download url expiration where the expiration work would be handled by the ssvm that has the corresponding symlink created on it. In case it doesnt exist, then would be any one of the ssvm in the zone.
...
Also when the ssvm is destroyed all the download urls are expired to be cleaned up in the next run by the new ssvm.
2014-10-10 16:28:48 -07:00
Anthony Xu
847e1e47ae
when system VM ping times out, stop system VM
2014-09-30 12:35:44 -07:00
Hugo Trippaers
dc3f0cbc63
Improve the handling of the findbug exclude files
2014-09-03 10:41:22 +02:00
Min Chen
902a9c5b70
CLOUDSTACK-7266: Deleting account is not cleaning the snapshot entries
...
in secondary storage.
2014-08-25 16:09:48 -07:00
Kishan Kavala
c09888fcb5
CLOUDSTACK-7237 : Added TAR image processor for templates with tar extension
2014-08-06 18:03:02 +05:30
Santhosh Edukulla
b371356abc
Fixed coverity issues reported
2014-07-31 21:19:57 +05:30
Hugo Trippaers
49f60ca744
Fix a coverity issue about unchecked returns and make the code flow a
...
litle bit more easy to follow.
2014-07-28 14:42:42 +02:00
Hugo Trippaers
885e08d476
Fix CID 1114611 Check the right variable
2014-07-24 12:21:38 +02:00
Hugo Trippaers
fc23c70a1f
Fix CID 1116481 Widening should happen before calculation
2014-07-04 16:48:30 +02:00
Logan B
736bf540e8
Changed logic for copying snapshot from S3 to NFS staging store to prevent needless failure.
...
Signed-off-by: Daan Hoogland <daan@onecht.net>
2014-06-20 22:37:21 +02:00
Nitin Mehta
8b6dc7ce2f
CLOUDSTACK-6824: In case there is a failure to delete the soft link of a download url, dont bail out since there can be cases such as destroy ssvm where the soft links do not exist any more.
...
(cherry picked from commit 7333016722 )
2014-06-02 17:55:09 -07:00
Nitin Mehta
5393387bbd
CLOUDSTACK-6599:
...
1. Adding the missing Template/Volume URLs expiration functionality
2. Improvement - While deleting the volume during expiration use rm -rf as vmware now contains directoy
3. Improvement - Use standard Answer so that the error gets logged in case deletion of expiration link didnt work fine.
4. Improvement - In case of domain change, expire the old urls
2014-05-30 10:48:42 -07:00
Nitin Mehta
1d45b75298
CLOUDSTACK-6499:
...
Made changes so that uploading custom certificate works for ssvm.
1. Reboot ssvm only when private key is passed meaning the server cert is passed. This is because while uploading the server cert is the last to be uploaded. And we want to propagate the entire chain once uploading is done.
2. Change the SecStorageSetupCommand sent to ssvm so that it also carries the root cert apart from having the chain and the server cert and key.
3. Change ssvm agent code to be able to configure root cert to the java key store.
4. Change ssvm configure ssl script to insert the chain certs correctly.
5. Fix order of chain certificates for apache webserver in SSVM
6. Remove double encoding and decoding for uploadCustomCertificate API from UI and server code respectively, so that API call without UI works fine
7. Java 1.7 - disable using SNI since copyTemplate doesnt work for SSL.
2014-04-24 17:27:02 -07:00