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

incus-user: keep track of socket path used to connect to the server #1607

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

bboozzoo
Copy link
Contributor

The logic used to figure out the correct Unix socket path for access to
the demon in client.ConnectIncusUnix() was fixed in in
d8b78d5 to account for use of
/run/incus/unix.socket as an alternative socket location. However, the
proxying code of incus-user was not updated when the fix was
introduced. As a result, even if initial connection to the server and
the configuration queries were successful, the actual attempt to proxy
a client request would fail while trying to connect to
/var/lib/incus/unix.socket regardless of prior findings.

 The logic used to figure out the correct Unix socket path for access to
 the demon in `client.ConnectIncusUnix()` was fixed in in
 d8b78d5 to account for use of
 /run/incus/unix.socket as an alternative socket location. However, the
 proxying code of incus-user was not updated when the fix was
 introduced. As a result, even if initial connection to the server and
 the configuration queries were successful, the actual attempt to proxy
 a client request would fail while trying to connect to
 /var/lib/incus/unix.socket regardless of prior findings.

Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
@bboozzoo bboozzoo requested a review from stgraber as a code owner January 25, 2025 16:41
@stgraber stgraber changed the title cmd/incus-user: keep track of socket path used to connect to the server incus-user: keep track of socket path used to connect to the server Jan 27, 2025
@stgraber stgraber enabled auto-merge January 27, 2025 04:32
@stgraber
Copy link
Member

Looks good, I'll re-try the failing test tomorrow and that will get this one merged, thanks!

@stgraber stgraber merged commit 079bbcf into lxc:main Jan 27, 2025
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants