You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "itobin (via GitHub)" <gi...@apache.org> on 2025/12/22 23:07:29 UTC
[I] Console Proxy URL settings stop working after CPVM reboot [cloudstack]
itobin opened a new issue, #12323:
URL: https://github.com/apache/cloudstack/issues/12323
CS Version 4.22.0
We are using nginx reverse proxy to the CPVM.
When we set the console proxy to SSL and set a URL, restart the management server, the connections then work fine to the VMs using the new config and the NoVNC connections are secured over SSL... great.
Now the problem is that when we reboot the CPVM, this config no longer works. Instead the connections to the VM consoles timeout, there is no way to get it working again even after rebooting the CPVM several times.
We then have to remove the SSL and console proxy settings, reboot the management server and also reboot the CPVM to get it back to the defaults, then go through the process of settings SSL and URL again.
So it appears the console SSL and URL settings are only active until there is a CPVM reboot, then thats its and we have to start again.
Not sure where to look at trying to diagnose this problem.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Console Proxy URL settings stop working after CPVM reboot [cloudstack]
Posted by "itobin (via GitHub)" <gi...@apache.org>.
itobin commented on issue #12323:
URL: https://github.com/apache/cloudstack/issues/12323#issuecomment-3702447368
@DaanHoogland sorry, what i mean is the websockify port, i believe this runs on 8080?
Also in the URL you can see this
/resource/noVNC/vnc.html?autoconnect=true&show_dot=true&port=**8080**&token
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Console Proxy URL settings stop working after CPVM reboot [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #12323:
URL: https://github.com/apache/cloudstack/issues/12323#issuecomment-3689054202
> a bit more info on this.
>
> we logged into the console proxy before a reboot and ran netstat -nat
>
> <img width="789" height="153" alt="Image" src="https://github.com/user-attachments/assets/d9d95007-23e8-41ab-8f52-3bbddd1caf94" />
>
> the ports are listening
>
> We then rebooted the CPVM and ran netstat -nat again
>
> <img width="655" height="84" alt="Image" src="https://github.com/user-attachments/assets/951b6e5b-a516-4b5d-b52f-44a45ab83652" />
>
> so it looks like the ports stop listening which is causing the issue. Is this expected behaviour after enabling the URL and selecting SSL? If so what ports is it supposed to be listening on and why only after a reboot does this change?
>
Can you stop and start the CPVM instead of reboot ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Console Proxy URL settings stop working after CPVM reboot [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #12323:
URL: https://github.com/apache/cloudstack/issues/12323#issuecomment-3689054232
> a bit more info on this.
>
> we logged into the console proxy before a reboot and ran netstat -nat
>
> <img width="789" height="153" alt="Image" src="https://github.com/user-attachments/assets/d9d95007-23e8-41ab-8f52-3bbddd1caf94" />
>
> the ports are listening
>
> We then rebooted the CPVM and ran netstat -nat again
>
> <img width="655" height="84" alt="Image" src="https://github.com/user-attachments/assets/951b6e5b-a516-4b5d-b52f-44a45ab83652" />
>
> so it looks like the ports stop listening which is causing the issue. Is this expected behaviour after enabling the URL and selecting SSL? If so what ports is it supposed to be listening on and why only after a reboot does this change?
>
Can you stop and start the CPVM instead of reboot ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Console Proxy URL settings stop working after CPVM reboot [cloudstack]
Posted by "itobin (via GitHub)" <gi...@apache.org>.
itobin commented on issue #12323:
URL: https://github.com/apache/cloudstack/issues/12323#issuecomment-3740938931
@weizhouapache
- rev proxy set tp https
- cpvm was set to use SSL in the management gui, after disabling it started working
- no certificate is installed on the CPVM, its letsencrypt secured on the rev proxy avoiding the need for them being on CPVM
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Console Proxy URL settings stop working after CPVM reboot [cloudstack]
Posted by "itobin (via GitHub)" <gi...@apache.org>.
itobin commented on issue #12323:
URL: https://github.com/apache/cloudstack/issues/12323#issuecomment-3689039670
a bit more info on this.
we logged into the console proxy before a reboot and ran netstat -nat
<img width="789" height="153" alt="Image" src="https://github.com/user-attachments/assets/d9d95007-23e8-41ab-8f52-3bbddd1caf94" />
the ports are listening
We then rebooted the CPVM and ran netstat -nat again
<img width="655" height="84" alt="Image" src="https://github.com/user-attachments/assets/951b6e5b-a516-4b5d-b52f-44a45ab83652" />
so it looks like the ports stop listening which is causing the issue. Is this expected behaviour after enabling the URL and selecting SSL? If so what ports is it supposed to be listening on and why only after a reboot does this change?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Console Proxy URL settings stop working after CPVM reboot [cloudstack]
Posted by "itobin (via GitHub)" <gi...@apache.org>.
itobin commented on issue #12323:
URL: https://github.com/apache/cloudstack/issues/12323#issuecomment-3702510368
@DaanHoogland problem solved!
so it appears the SSL setting actually needs to be off not on. After reverting back to using the rev proxy and keeping the SSL setting off its working.
Ive verfied this by rebooting everything and still works. There is some incorrect information on one of the github pages which mentions that the SSL needs to be enabled.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Console Proxy URL settings stop working after CPVM reboot [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #12323:
URL: https://github.com/apache/cloudstack/issues/12323#issuecomment-3701773936
@itobin are the consoles still reachable bypassing the reverse proxy?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Console Proxy URL settings stop working after CPVM reboot [cloudstack]
Posted by "itobin (via GitHub)" <gi...@apache.org>.
itobin commented on issue #12323:
URL: https://github.com/apache/cloudstack/issues/12323#issuecomment-3689218545
looks ok I think
<img width="1552" height="354" alt="Image" src="https://github.com/user-attachments/assets/7763e11b-307e-4a6e-b875-8878ea2cbdbe" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Console Proxy URL settings stop working after CPVM reboot [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #12323:
URL: https://github.com/apache/cloudstack/issues/12323#issuecomment-3722875184
ok, well you can add a comment there (please). cc @yadvr . It does seem this needs attention in the docs but I would not know where/how.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Console Proxy URL settings stop working after CPVM reboot [cloudstack]
Posted by "itobin (via GitHub)" <gi...@apache.org>.
itobin commented on issue #12323:
URL: https://github.com/apache/cloudstack/issues/12323#issuecomment-3685724374
> [@itobin](https://github.com/itobin) when you say reboot, you mean from the MS web-console, or do you mean from inside the OS or from the host?
it can be anything, so for example rebooting the CPVM from the Web Gui or rebooting the KVM host the CPVM resides on. The issue is easy to reproduce
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Console Proxy URL settings stop working after CPVM reboot [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #12323:
URL: https://github.com/apache/cloudstack/issues/12323#issuecomment-3702372999
I am a bit confused by your last question @itobin . I did a quick search in the code of the console proxy and found:
```
proxy.setSslEnabled(sslEnabled);
if (sslEnabled) {
proxy.setPort(443);
} else {
proxy.setPort(80);
}
```
Do you confuse the Management server port with that of the console proxy?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Console Proxy URL settings stop working after CPVM reboot [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #12323:
URL: https://github.com/apache/cloudstack/issues/12323#issuecomment-3709075537
thanks @itobin , can you point to the false information, please? (or create a PR to remedie)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Console Proxy URL settings stop working after CPVM reboot [cloudstack]
Posted by "itobin (via GitHub)" <gi...@apache.org>.
itobin commented on issue #12323:
URL: https://github.com/apache/cloudstack/issues/12323#issuecomment-3701884064
@DaanHoogland ok, so i disabled the SSL for consoleproxy in CS but left the URL still set. I then set a entry on the host file on my machine for the URL and public IP of CPVM to bypass the rev proxy.
that works, so it would appear its the SSL element that stops working after rebooting the CPVM.
For clarity, do the ports for CPVM still run on 8080 when SSL is enabled? its strange why it works before rebooting the CPVM
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Console Proxy URL settings stop working after CPVM reboot [cloudstack]
Posted by "itobin (via GitHub)" <gi...@apache.org>.
itobin commented on issue #12323:
URL: https://github.com/apache/cloudstack/issues/12323#issuecomment-3720999442
@DaanHoogland it was here https://github.com/apache/cloudstack/discussions/9013
ive also seen it somewhere else but i cant remember the location now
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Console Proxy URL settings stop working after CPVM reboot [cloudstack]
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #12323:
URL: https://github.com/apache/cloudstack/issues/12323#issuecomment-3685571818
@itobin when you say reboot, you mean from the MS web-console, or do you mean from inside the OS or from the host?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Console Proxy URL settings stop working after CPVM reboot [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #12323:
URL: https://github.com/apache/cloudstack/issues/12323#issuecomment-3689054256
> a bit more info on this.
>
> we logged into the console proxy before a reboot and ran netstat -nat
>
> <img width="789" height="153" alt="Image" src="https://github.com/user-attachments/assets/d9d95007-23e8-41ab-8f52-3bbddd1caf94" />
>
> the ports are listening
>
> We then rebooted the CPVM and ran netstat -nat again
>
> <img width="655" height="84" alt="Image" src="https://github.com/user-attachments/assets/951b6e5b-a516-4b5d-b52f-44a45ab83652" />
>
> so it looks like the ports stop listening which is causing the issue. Is this expected behaviour after enabling the URL and selecting SSL? If so what ports is it supposed to be listening on and why only after a reboot does this change?
>
Can you stop and start the CPVM instead of reboot ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Console Proxy URL settings stop working after CPVM reboot [cloudstack]
Posted by "itobin (via GitHub)" <gi...@apache.org>.
itobin commented on issue #12323:
URL: https://github.com/apache/cloudstack/issues/12323#issuecomment-3689078274
@weizhouapache
exactly the same unfortunately
<img width="664" height="98" alt="Image" src="https://github.com/user-attachments/assets/9da4a817-c14a-496a-bdf9-740cc72b3472" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Console Proxy URL settings stop working after CPVM reboot [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #12323:
URL: https://github.com/apache/cloudstack/issues/12323#issuecomment-3689214071
> [@weizhouapache](https://github.com/weizhouapache)
>
> exactly the same unfortunately
>
> <img alt="Image" width="664" height="98" src="https://private-user-images.githubusercontent.com/118967405/529937554-9da4a817-c14a-496a-bdf9-740cc72b3472.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjY1NjgwMTQsIm5iZiI6MTc2NjU2NzcxNCwicGF0aCI6Ii8xMTg5Njc0MDUvNTI5OTM3NTU0LTlkYTRhODE3LWMxNGEtNDk2YS1iZGY5LTc0MGNjNzJiMzQ3Mi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUxMjI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MTIyNFQwOTE1MTRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04YjQyNWE3MThhN2M0YWM1ZWJjNzU4OTgwN2I4YzRjYThiYWYyZmQ5MmQ1NjkxYjAwZTViMTcwMDQyZjc3ZDQyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.HO4hZzPV6qwADA996SSIdBgKlUemx_Lj2a1VFoRt7GA">
what's the status of `cloud` service in CPVM ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Console Proxy URL settings stop working after CPVM reboot [cloudstack]
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #12323:
URL: https://github.com/apache/cloudstack/issues/12323#issuecomment-3723088255
@itobin
just to confirm
- does reverse proxy use http or https ?
- does cpvm use http or https ?
- when both use https, do they use the same certificates ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Console Proxy URL settings stop working after CPVM reboot [cloudstack]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #12323:
URL: https://github.com/apache/cloudstack/issues/12323#issuecomment-4856145401
## ๐ฏ Triage report
After configuring an nginx reverse proxy for the Console Proxy VM (CPVM) and enabling SSL in the CloudStack management UI, the console connections fail after a CPVM reboot because the CPVM stops listening on the expected ports. The thread was resolved in the comments: the SSL setting in CloudStack must be **disabled** when an SSL-terminating reverse proxy is in front of the CPVM โ enabling it reconfigures the CPVM to use port 443 (which the CPVM has no certificate for), while the reverse proxy should own SSL. Incorrect documentation in discussion #9013 led to the misconfiguration.
### ๐ Assessment
| Dimension | Value | Reasoning |
|---|---|---|
| **Type** | type:config | The issue is a configuration misunderstanding, not a code defect; resolved by reporter |
| **Component** | component:console-proxy | CPVM SSL/port configuration |
| **Severity** | n/a | Operator-recoverable configuration issue |
| **Labels** | type:config, component:console-proxy | As above |
| **Coding agent** | Not suitable | Resolved; follow-up is a documentation correction |
<details><summary>๐ก Notes and suggestions</summary>
- **Resolution** (from reporter comments): when using a TLS-terminating reverse proxy in front of the CPVM, the CloudStack "Console Proxy SSL enabled" setting must be **OFF**. The reverse proxy handles TLS; the CPVM speaks plain HTTP/WS internally.
- Incorrect guidance exists in discussion #9013 โ maintainer (`@DaanHoogland`) asked reporter to add a corrective comment there.
- Consider adding a note to the Admin Guide / Console Proxy documentation clarifying the SSL setting semantics in reverse-proxy deployments.
- The CPVM code sets `proxy.setPort(443)` when SSL is enabled and `proxy.setPort(80)` otherwise โ this is correct but counter-intuitive when a reverse proxy is in play.
</details>
> Generated by [Daily Issue Triage](https://github.com/apache/cloudstack/actions/runs/28523943189) ยท [โท](https://github.com/search?q=repo%3Aapache%2Fcloudstack+%22gh-aw-workflow-call-id%3A+apache%2Fcloudstack%2Fdaily-issue-triage%22&type=issues)
>
<details>
<summary>Add this agentic workflows to your repo</summary>
To install this agentic workflow, run
```
gh aw add githubnext/agentics/workflows/daily-issue-triage.md@d7c1dc4b72b00607a67caaffdcc216cb64379cf9
```
</details>
<!-- gh-aw-agentic-workflow: Daily Issue Triage, engine: copilot, version: 1.0.52, model: claude-sonnet-4.6, id: 28523943189, workflow_id: daily-issue-triage, run: https://github.com/apache/cloudstack/actions/runs/28523943189 -->
<!-- gh-aw-workflow-call-id: apache/cloudstack/daily-issue-triage -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org