-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add local ISO upload via UI #3251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2666 |
DaanHoogland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks ok, in spite of my comments. awaiting testing and such
api/src/main/java/org/apache/cloudstack/api/command/user/iso/GetUploadParamsForIsoCmd.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/cloud/template/TemplateAdapterBase.java
Outdated
Show resolved
Hide resolved
24750aa to
dcb9875
Compare
|
@blueorangutan package |
|
@borisstoyanov a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✖centos7 ✔debian. JID-2669 |
|
@blueorangutan package |
|
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2670 |
|
@blueorangutan test |
|
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-3463)
|
borisstoyanov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, manually checked the upload is working
|
@blueorangutan package |
|
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2679 |
|
@blueorangutan test |
|
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
I just tried to upload an iso from my local machine and from a UI perspective it failed silently, after 20 mins it appeared to still be uploading. However from the logs, there was an immediate NPE: |
|
Not sure that this message should go to end users. This is good for logs. but end users should get something LESS specific. |
|
Trillian test result (tid-3495)
|
|
Verified @borisstoyanov observation that when create button is clicked for templates or ISOs an entry is created in database and even in failed state a wrong entry is created. Logic seems to be separable but needs ~1 day for separation and testing. For message can we show something more generic like - "Error in uploading ISO. Please check system settings on SSVM." ? CC/ @PaulAngus , @rhtyd , @borisstoyanov |
|
@anuragaw I would prefer something like "Failed to upload {iso/template} due to system configuration please contact your administrator." and in the API that finds the URL of the remote endpoint simply check if we've setup the ssl certificate (from keystore table we can check if cpvm/ssvm certificate exists) and log a statement that upload will possibly fail due to missing SSL cert setup. |
|
The feature of uploading a volume/template and with this PR iso requires that the env has ssl/tls certificates setup. The failure to upload a template/volume/iso when endpoint is incorrectly setup with a wrong certificate (default) is a known case and should not limit the acceptance of the PR. Instead in a separate PR we can attempt to allow users to upload a template/volume/iso when admin has not setup a certs by providing it a non-https endpoint of the ssvm. |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2760 |
borisstoyanov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Thanks @borisstoyanov @rhtyd, I'll close/open to re-kick Travis |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM based on code and local testing.
PaulAngus
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - tested by uploading a VyOS iso from local machine and using it to create a new instance.
|
Merging based on last smoketests and reviews. |
Description
Problem: Users can register ISOs from URL but cannot upload local ISOs.
Root cause: CloudStack provides browser-based upload support for volumes and templates, but ISOs are not supported.
Solution:
The existing browser-based upload from local functionality for templates and volumes (https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=39620237) is extended to support uploading local ISOs.
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
Templates tab -> ISOs -> Upload from local -> Select file on local file system