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

Don't delete local socket when reverse #1725

Merged
merged 2 commits into from
Aug 12, 2023

Conversation

afbjorklund
Copy link
Member

@afbjorklund afbjorklund commented Aug 10, 2023

When we are forwarding a local socket, we should not delete it.

Theoretically we could delete the remote socket, if it exists.

Closes #1724

@afbjorklund
Copy link
Member Author

afbjorklund commented Aug 10, 2023

Actually we should delete the remote socket, otherwise restart fails.

WARN[0031] [hostagent] Failed to set up forward from "/var/tmp/docker.sock" (guest) to "/var/run/docker.sock" (host)


EDIT: notice that the error message (for fail) was wrong as well, we're forwarding from host to guest (with reverse)

@afbjorklund afbjorklund force-pushed the reverse-remove branch 2 times, most recently from c187e28 to 7ac98b9 Compare August 10, 2023 16:07
@AkihiroSuda AkihiroSuda added this to the v0.18.0 milestone Aug 10, 2023
@AkihiroSuda AkihiroSuda modified the milestones: v0.17.1, v0.18.0 Aug 11, 2023
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@AkihiroSuda
Copy link
Member

Rebasing may fix the CI failure

When we are forwarding a local socket, we should not delete it.

Doing so would interrupt the local service, if delete succeeds.

Signed-off-by: Anders F Björklund <[email protected]>
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, but we should have a test for this

@AkihiroSuda AkihiroSuda merged commit 27b4e78 into lima-vm:master Aug 12, 2023
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

Successfully merging this pull request may close these issues.

Reverse unix socket forwarding in Mac deletes the source unix socket.
2 participants