...
- To increase the number of parallel uploads, multiple SSVMs needs to be created. This will be handled automatically by the management server using the SSVM scale up mechanism (system.vm.auto.reserve.capacity, secstorage.capacity.standby and secstorage.session.max configuration variables). More uploads for a SSVM results in more polling related agent commands going to the SSVM and that should exhaust the session.max limit and result in spawning new SSVM. The SSVM selector logic then should pick up an SSVM during the request.
- TBD: number of parallel uploads a single SSVM can handle
Troubleshooting/logs
All the upload server related logs will be from a thread with name format nioEventLoopGroup-%d-%d. log4j xml can be tuned to get logs at different levels.
UI Changes
UI to upload volume/template which should be able to accept "browse and upload" file. Existing UI for volume/template upload will be extended with the browser-based upload functionality.
...
- User navigates to the Templates page then switches to ISO using the "Select view" selector, then the user clicks on "Register ISO" (existing screen)
- Register ISO form pops up (existing screen)
- User has now the choice to provide URL of the volume/ISO (existing functionality) or Upload File from Browser (new functionality)
- Selects File Upload from Browser then specifies the volume/ISO file (Browse...) to be uploaded
- User fills in other existing form fields
- User clicks OK to submit the form
- Browser UI requests an unique upload URL using the getUploadParamsForVolume api call
- Management server returns an upload url, encrypted metadata string which should be passed on to the upload url while doing the upload
- Browser starts uploading using POST request to the upload URL
- The post request completes once the template is uploaded or there was an error uploading.
- The user can close the dialog (POST request should still be active) and use listvolumes API result to check the status of it
Testing
Unit testing
TBD: unit tests for service layer, api layer and monitoring thread (koushik/rajani)
Automation/marvin cases
To be updated by sailaja
Manual Test Cases
To be updated by Deepti
Open Issues
- PSK length - for now it can be a fixed length, later on it can be made configurable.
Upload url should be active only for one call - Its partially handled now. The limitation needs to be addressed.
- Recommended configuration of SSVM and apache web server
...