You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by "UAnton (via GitHub)" <gi...@apache.org> on 2025/01/26 16:56:58 UTC

[D] Can't upload ISO or template [cloudstack]

GitHub user UAnton created a discussion: Can't upload ISO or template

Hello,
I'm trying to deploy a cloud on Cloudstack and xpc-ng. I have 2 interfaces. Network0 and Network1.

Scheme: MGMT - 10.100.1.0/24 (Network0), 10.0.0.0/24 VLAN 1001 (Public), Guest - VXLAN (Network1)
Storage: Primary - 10.100.1.202 (ISCSI), Secondary - 10.100.1.206 (NFS)
Everything was added without problems. Both storages are visible. Service VMs are created and connected. I can't upload ISOs or templates, or create a VM. The VM and router don't start.
Where did I make a mistake? Thank you!

<img width="1368" alt="Screenshot 2025-01-26 at 18 47 23" src="https://github.com/user-attachments/assets/b367b08f-843e-42c6-ba0f-f2aa25320595" />
<img width="1483" alt="Screenshot 2025-01-26 at 18 47 47" src="https://github.com/user-attachments/assets/65233fd1-a6b8-44e5-b619-4e0d4ac18800" />
<img width="1602" alt="Screenshot 2025-01-26 at 18 48 28" src="https://github.com/user-attachments/assets/e48eb1a6-278b-48f3-bfbd-d431a8528ddc" />
<img width="2242" alt="Screenshot 2025-01-26 at 18 50 47" src="https://github.com/user-attachments/assets/2657781c-9974-4b0b-bdd2-782ec1b94607" />
<img width="2245" alt="Screenshot 2025-01-26 at 18 51 11" src="https://github.com/user-attachments/assets/725a5ceb-60ba-43d7-aa78-cd1595057643" />
<img width="404" alt="Screenshot 2025-01-26 at 18 56 37" src="https://github.com/user-attachments/assets/0528782e-b267-4470-8429-c6d40348a44a" />




GitHub link: https://github.com/apache/cloudstack/discussions/10277

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "UAnton (via GitHub)" <gi...@apache.org>.
GitHub user UAnton closed a discussion: Can't upload ISO or template

Hello,
I'm trying to deploy a cloud on Cloudstack and xpc-ng. I have 2 interfaces. Network0 and Network1.

Scheme: MGMT - 10.100.1.0/24 (Network0), 10.0.0.0/24 VLAN 1001 (Public), Guest - VXLAN (Network1)
Storage: Primary - 10.100.1.202 (ISCSI), Secondary - 10.100.1.206 (NFS)
Everything was added without problems. Both storages are visible. Service VMs are created and connected. I can't upload ISOs or templates, or create a VM. The VM and router don't start.
Where did I make a mistake? Thanks!

<img width="1368" alt="Screenshot 2025-01-26 at 18 47 23" src="https://github.com/user-attachments/assets/b367b08f-843e-42c6-ba0f-f2aa25320595" />
<img width="1483" alt="Screenshot 2025-01-26 at 18 47 47" src="https://github.com/user-attachments/assets/65233fd1-a6b8-44e5-b619-4e0d4ac18800" />
<img width="1602" alt="Screenshot 2025-01-26 at 18 48 28" src="https://github.com/user-attachments/assets/e48eb1a6-278b-48f3-bfbd-d431a8528ddc" />
<img width="2242" alt="Screenshot 2025-01-26 at 18 50 47" src="https://github.com/user-attachments/assets/2657781c-9974-4b0b-bdd2-782ec1b94607" />
<img width="2245" alt="Screenshot 2025-01-26 at 18 51 11" src="https://github.com/user-attachments/assets/725a5ceb-60ba-43d7-aa78-cd1595057643" />
<img width="404" alt="Screenshot 2025-01-26 at 18 56 37" src="https://github.com/user-attachments/assets/0528782e-b267-4470-8429-c6d40348a44a" />




GitHub link: https://github.com/apache/cloudstack/discussions/10277

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "UAnton (via GitHub)" <gi...@apache.org>.
GitHub user UAnton edited a comment on the discussion: Can't upload ISO or template

@weizhouapache 

`httpd.conf  https.conf  
root@s-114-VM:~# cat /etc/apache2/https.conf 
RewriteEngine On
RewriteCond %{HTTPS} =on
RewriteCond %{REQUEST_METHOD} =POST
RewriteRule ^/upload/(.*) http://127.0.0.1:8210/upload?uuid=$1 [P,L]
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Methods "POST, OPTIONS"
Header always set Access-Control-Allow-Headers "x-requested-with, content-type, origin, authorization, accept, client-security-token, x-signature, x-metadata, x-expires"`

GitHub link: https://github.com/apache/cloudstack/discussions/10277#discussioncomment-12189521

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "UAnton (via GitHub)" <gi...@apache.org>.
GitHub user UAnton added a comment to the discussion: Can't upload ISO or template

@weizhouapache 
Not work :(
<img width="2068" alt="Screenshot 2025-02-13 at 14 25 22" src="https://github.com/user-attachments/assets/b0c7525c-b41c-4694-ba01-0a4347a9ed84" />

<img width="540" alt="Screenshot 2025-02-13 at 14 24 32" src="https://github.com/user-attachments/assets/1195ff87-45bc-4f9e-8f52-50f949714a59" />

@rajujith 
I generated and uploaded the cert but nothing... SystemVM restarted but nothing worked 



GitHub link: https://github.com/apache/cloudstack/discussions/10277#discussioncomment-12187198

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "UAnton (via GitHub)" <gi...@apache.org>.
GitHub user UAnton edited a comment on the discussion: Can't upload ISO or template

@weizhouapache 
I read this but any HTTPS  links present
<img width="1387" alt="Screenshot 2025-02-13 at 14 40 54" src="https://github.com/user-attachments/assets/f94186e6-6d47-43a4-91ef-13a096d1d5b8" />

I can't find any normal docs about certificates.

GitHub link: https://github.com/apache/cloudstack/discussions/10277#discussioncomment-12187377

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "UAnton (via GitHub)" <gi...@apache.org>.
GitHub user UAnton edited a comment on the discussion: Can't upload ISO or template

@weizhouapache 
I have redeployed the certificate and SystemVMs. Enable SSL for GUI. 
Now SSL works for console, GUI, and image download but upload doesn't work.
All settings global settings like in (https://www.shapeblue.com/securing-cloudstack-4-11-with-https-tls/)
Try to enable/disable use.https.to.upload but can't upload ISOs, images, volumes...

`Access to XMLHttpRequest at 'https://10-1-0-2.skillvps.local/upload/913750b1-1f6d-4b10-b3ce-45e7c5f638c2' from origin 'https://cloudstack.skillvps.local:8443' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.`

GitHub link: https://github.com/apache/cloudstack/discussions/10277#discussioncomment-12188481

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "UAnton (via GitHub)" <gi...@apache.org>.
GitHub user UAnton added a comment to the discussion: Can't upload ISO or template

Thanks! Please close.

GitHub link: https://github.com/apache/cloudstack/discussions/10277#discussioncomment-12143993

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "UAnton (via GitHub)" <gi...@apache.org>.
GitHub user UAnton added a comment to the discussion: Can't upload ISO or template

@weizhouapache 
Update names and lets-encrypt. All works fine! Thanks!

GitHub link: https://github.com/apache/cloudstack/discussions/10277#discussioncomment-12192791

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: Can't upload ISO or template

Actually users can upload template/iso without SSL certificates

just need to set global setting use.https.to.upload to false
please refer to #8264 

GitHub link: https://github.com/apache/cloudstack/discussions/10277#discussioncomment-12149688

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: Can't upload ISO or template

@UAnton 
if you upload certs, you can refer to https://www.shapeblue.com/securing-cloudstack-4-11-with-https-tls/

setting `use.https.to.upload` to `false` works for me

GitHub link: https://github.com/apache/cloudstack/discussions/10277#discussioncomment-12187251

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: Can't upload ISO or template

you need to 
- change global settings
- restart mgmt service
- restart or destroy/recreate system vms

GitHub link: https://github.com/apache/cloudstack/discussions/10277#discussioncomment-12187609

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: Can't upload ISO or template

> @weizhouapache I have redeployed the certificate and SystemVMs. Enable SSL for GUI. Now SSL works for console, GUI, and image download but upload doesn't work. All settings global settings like in (https://www.shapeblue.com/securing-cloudstack-4-11-with-https-tls/) Try to enable/disable use.https.to.upload but can't upload ISOs, images, volumes...
> 
> `Access to XMLHttpRequest at 'https://10-1-0-2.skillvps.local/upload/913750b1-1f6d-4b10-b3ce-45e7c5f638c2' from origin 'https://cloudstack.skillvps.local:8443' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.`

it looks related to #9389 

can you share the config file `/etc/apache2/https.conf` or `/etc/apache2/http.conf` in the secondary storage VM ?
@UAnton 

I also wonder if it is related to `.local` domain

GitHub link: https://github.com/apache/cloudstack/discussions/10277#discussioncomment-12189402

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: Can't upload ISO or template

Good. 
So, is it true that the issue is caused by the .local domain ?

GitHub link: https://github.com/apache/cloudstack/discussions/10277#discussioncomment-12192901

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
GitHub user weizhouapache added a comment to the discussion: Can't upload ISO or template

> @weizhouapache I have done this more than 10 times... but HTTPS is not enabled for console, upload... ACS ignore my cert and SSL settings

what's the value of global settings ?
(refer to https://www.shapeblue.com/securing-cloudstack-4-11-with-https-tls/)

GitHub link: https://github.com/apache/cloudstack/discussions/10277#discussioncomment-12187771

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "UAnton (via GitHub)" <gi...@apache.org>.
GitHub user UAnton added a comment to the discussion: Can't upload ISO or template

@DaanHoogland , from URL  - works good.

GitHub link: https://github.com/apache/cloudstack/discussions/10277#discussioncomment-11978066

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
GitHub user DaanHoogland added a comment to the discussion: Can't upload ISO or template

@UAnton , can you register ISOs and templates from URLs?

Please investigate the logs on the management server and SSVM to see if any exceptions are related to the upload attempt.

GitHub link: https://github.com/apache/cloudstack/discussions/10277#discussioncomment-11968050

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "UAnton (via GitHub)" <gi...@apache.org>.
GitHub user UAnton edited a discussion: Can't upload ISO or template

Hello,
I'm trying to deploy a cloud on Cloudstack and xpc-ng. I have 2 interfaces. Network0 and Network1.

Scheme: MGMT - 10.100.1.0/24 (Network0), 10.0.0.0/24 VLAN 1001 (Public), Guest - VXLAN (Network1)
Storage: Primary - 10.100.1.202 (ISCSI), Secondary - 10.100.1.206 (NFS)
Everything was added without problems. Both storages are visible. Service VMs are created and connected. I can't upload ISOs or templates, or create a VM. The VM and router don't start.
Where did I make a mistake? Thanks!

<img width="1368" alt="Screenshot 2025-01-26 at 18 47 23" src="https://github.com/user-attachments/assets/b367b08f-843e-42c6-ba0f-f2aa25320595" />
<img width="1483" alt="Screenshot 2025-01-26 at 18 47 47" src="https://github.com/user-attachments/assets/65233fd1-a6b8-44e5-b619-4e0d4ac18800" />
<img width="1602" alt="Screenshot 2025-01-26 at 18 48 28" src="https://github.com/user-attachments/assets/e48eb1a6-278b-48f3-bfbd-d431a8528ddc" />
<img width="2242" alt="Screenshot 2025-01-26 at 18 50 47" src="https://github.com/user-attachments/assets/2657781c-9974-4b0b-bdd2-782ec1b94607" />
<img width="2245" alt="Screenshot 2025-01-26 at 18 51 11" src="https://github.com/user-attachments/assets/725a5ceb-60ba-43d7-aa78-cd1595057643" />
<img width="404" alt="Screenshot 2025-01-26 at 18 56 37" src="https://github.com/user-attachments/assets/0528782e-b267-4470-8429-c6d40348a44a" />




GitHub link: https://github.com/apache/cloudstack/discussions/10277

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "UAnton (via GitHub)" <gi...@apache.org>.
GitHub user UAnton added a comment to the discussion: Can't upload ISO or template

@weizhouapache 
I read this but any HTTPS  links present
<img width="1387" alt="Screenshot 2025-02-13 at 14 40 54" src="https://github.com/user-attachments/assets/f94186e6-6d47-43a4-91ef-13a096d1d5b8" />



GitHub link: https://github.com/apache/cloudstack/discussions/10277#discussioncomment-12187377

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "UAnton (via GitHub)" <gi...@apache.org>.
GitHub user UAnton added a comment to the discussion: Can't upload ISO or template

@weizhouapache 
I have done this more than 10 times... but HTTPS is not enabled for console, upload... ACS ignore my cert and SSL settings

GitHub link: https://github.com/apache/cloudstack/discussions/10277#discussioncomment-12187695

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "UAnton (via GitHub)" <gi...@apache.org>.
GitHub user UAnton added a comment to the discussion: Can't upload ISO or template

@weizhouapache 
https://pastebin.com/2cmqYMUN

GitHub link: https://github.com/apache/cloudstack/discussions/10277#discussioncomment-12189521

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "UAnton (via GitHub)" <gi...@apache.org>.
GitHub user UAnton added a comment to the discussion: Can't upload ISO or template

> Good. So, is it true that the issue is caused by the .local domain ?

Yes. With public domain all ok

GitHub link: https://github.com/apache/cloudstack/discussions/10277#discussioncomment-12192980

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "UAnton (via GitHub)" <gi...@apache.org>.
GitHub user UAnton added a comment to the discussion: Can't upload ISO or template

@weizhouapache 
I have redeployed the certificate and SystemVMs. Enable SSL for GUI. 
Now SSL works for console, GUI, and image download but upload doesn't work.
All settings global settings like in (https://www.shapeblue.com/securing-cloudstack-4-11-with-https-tls/)
Try to enable/disable use.https.to.upload but can't upload ISOs, images, volumes...

GitHub link: https://github.com/apache/cloudstack/discussions/10277#discussioncomment-12188481

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org


Re: [D] Can't upload ISO or template [cloudstack]

Posted by "rajujith (via GitHub)" <gi...@apache.org>.
GitHub user rajujith added a comment to the discussion: Can't upload ISO or template

@UAnton For local upload we need to install SSL certificates for the SystemVMs.

GitHub link: https://github.com/apache/cloudstack/discussions/10277#discussioncomment-11979844

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@cloudstack.apache.org