Skip to content
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

Console and Exec commands are not redirected to the correct host in a cluster #66

Open
davewj100 opened this issue Feb 7, 2023 · 2 comments

Comments

@davewj100
Copy link

When hosts are in a cluster, you can see all the containers from any of the hosts (which is good), but Exec and Console only work if you are on the container's actual host first.

Ex: If you select Host#1 in LXD Dashboard, then try to Console/Exec on a container running in the same cluster on Host#2, this message results:

--- Encrypted Connection Closed ---

Expected behavior: LXD dashboard should direct the Console/Exec operation to the host actually running the container, irrespective of the host currently in-focus in LXD Dashboard. (This is what the lxc command does)

Thank you - LXD Dashboard is excellent, I use it all the time.

@matthewalanpenning
Copy link
Contributor

Dave,
Thanks! Ah, this is an interesting issue. Thanks for taking the time to figure out what was going on. So yes, all instances from a cluster are listed on each host and I didn't consider that the websocket connection for console/exec might not work it the instance is located on a different host that what you are connected to. Good find. I will spend some time this weekend to see if I can find a workaround for this issue.

@ingobaab
Copy link

ingobaab commented Feb 10, 2023

Hi Matthew, I have some maybe cosmetic but 'similar': If I have several browser tabs open and navigating to different "pages" (containers or overview and so on..) The (via ajax) loaded status in red on top is "global" - showing in every browser tab the same last "central" message.. Just saying that, to make you more headache :) anyhow, your software is a great thing! Please tell me, if I should move this to another ticket, maybe...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants