apache / cloudstack

Apache CloudStack is an opensource Infrastructure as a Service (IaaS) cloud computing platform
https://cloudstack.apache.org/
Apache License 2.0
2.06k stars 1.1k forks source link

Can't upload iso from local #7568

Closed HtainL closed 1 year ago

HtainL commented 1 year ago

while i upload ubuntu 18.04 from local i saw this error.

image

image

boring-cyborg[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the issue template!

rohityadavcloud commented 1 year ago

@HtainL did you setup SSL certificates for your zone/ssvms? And which version of CloudStack is that?

If you're on CloudStack 4.18, you can use http to upload templates/iso by setting use.https.to.upload to false and restarting your mgmt server and ssvm, then try again.

HtainL commented 1 year ago

@rohityadavcloud I didn't setup SSL and https in mgmt server. I login mgmt server with http://mgmtip:8080. And i can't find use.https.to.upload in /etc/cloudstack/management/server.properties

kiranchavala commented 1 year ago

@HtainL

Please find global settings at this path configuration > global settings , you disable the setting and

  1. Restart mgmt service

service cloudstack-managment restart

  1. Restart the ssvm

Screenshot 2023-05-29 at 4 32 25 PM

HtainL commented 1 year ago

@kiranchavala Hello bro. I did all above step, and i still can't upload the iso from local.

kiranchavala commented 1 year ago

@HtainL clear the cache of the browser or try in an incognito window

Please send the management server log if you are hitting the exception

HtainL commented 1 year ago

@kiranchavala I tried that way but same error occured. I shared a link that include a management server log. Thank you so much for helping me.

https://we.tl/t-lBG5u5LmND

thorzinaung commented 1 year ago

@HtainL @kiranchavala i got the same error also. I did steps exactly like mention upper but still got same issue. Can give more suggestion?

kiranchavala commented 1 year ago

@HtainL @thorzinaung let me cross-check internally and revert back

What is the cloudstack version you are using ?

thorzinaung commented 1 year ago

@kiranchavala hi, my cloudstack version is 4.18.0.0 bhai.

kiranchavala commented 1 year ago

Hi @HtainL @thorzinaung

Cloudstack supports upload iso only via HTTPS enabled ssvm , please refer to the documentation

http://docs.cloudstack.apache.org/en/latest/adminguide/templates.html?highlight=upload%20iso%20#uploading-templates-and-isos-from-a-local-computer

As a workaround, please follow the steps

  1. Disable the global setting (use.https.to.upload ) to false

  2. Restart mgmt service

service cloudstack-managment restart

  1. Restart the ssvm

  2. Open the dev tools in ur browser , and select upload the iso

Screenshot 2023-06-01 at 6 46 01 PM
  1. Copy the failed POST request and paste in a new tab and click on allow

Ex: https://10.0.55.61/upload/ce4f681a-c08e-4062-a3ab-191797a55a8a

  1. Allow the browser to trust it
Screenshot 2023-06-01 at 6 47 44 PM
  1. Try to submit the request again
Screenshot 2023-06-01 at 6 48 44 PM

If it still doesn't work i would suggest to register the iso from a webserver instead of local Iso upload

DaanHoogland commented 1 year ago

@HtainL I am closing this issue. If you feel this is invalid please reopen or create a new one