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

Hyperkit Fails to Connect to VPNKit with Failed Assertion #85232

Closed
2 tasks done
dshick-nydig opened this issue Sep 15, 2021 · 9 comments
Closed
2 tasks done

Hyperkit Fails to Connect to VPNKit with Failed Assertion #85232

dshick-nydig opened this issue Sep 15, 2021 · 9 comments
Labels
bug Reproducible Homebrew/homebrew-core bug outdated PR was locked due to age stale No recent activity

Comments

@dshick-nydig
Copy link
Contributor

dshick-nydig commented Sep 15, 2021

brew gist-logs <formula> link OR brew config AND brew doctor output

n/a, package installs fine

  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.

What were you trying to do (and why)?

Run the homebrew installed version of hyperkit (through minikube) using VPNKit built from master.

What happened (include all command output)?

Assertion failed: (sizeof(VERSION_SHA1) == sizeof(init_msg.commit) + 1), function vpnkit_connect, file src/lib/pci_virtio_net_vpnkit.c, line 324.

https://github.com/moby/hyperkit/blob/b54460a1b41b487262d03c9685ae8b50dbc6607a/src/lib/pci_virtio_net_vpnkit.c#L323-L325

I suspect that this line of the makefile is not working correctly as the release tarball is not a valid git repository, causing CFLAGS to be set improperly. Perhaps

What did you expect to happen?

I expected for this assertion not to fail. Perhaps the makefile needs to be amended to include a default VERSION_SHA1.

Step-by-step reproduction instructions (by running brew commands)

# install minikube and hyperkit
brew install minikube hyperkit

# build vpnkit
brew install autoconf automake dylibbundler libtool opam pkg-config wget
git clone https://github.com/moby/vpnkit.git && cd vpnkit
make -f Makefile.darwin ocaml
make -f Makefile.darwin depends
make -f Makefile.darwin build
make -f Makefile.darwin artefacts

# run vpnkit and minikube with hyperkit
./vpnkit --ethernet /tmp/ethernet
minikube start --uuid 00000000-0000-0000-0000-000000000001 --driver=hyperkit --hyperkit-vpnkit-sock /tmp/ethernet --alsologtostderr
@dshick-nydig
Copy link
Contributor Author

Raised an issue with upstream. Hopefully the error can be patched for now and fixed permanently there.

@dshick-nydig
Copy link
Contributor Author

Adding the following is a quick workaround to get this building, but hardcoding a git hash is probably not the best approach as it would have to be updated manually with every release.

args << "GIT_VERSION_SHA1=\"b54460a1b41b487262d03c9685ae8b50dbc6607a\""

@github-actions
Copy link
Contributor

github-actions bot commented Oct 7, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale No recent activity label Oct 7, 2021
@dshick-nydig
Copy link
Contributor Author

not stale

@github-actions github-actions bot removed the stale No recent activity label Oct 7, 2021
@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale No recent activity label Oct 30, 2021
@dshick-nydig
Copy link
Contributor Author

not stale

@github-actions github-actions bot removed the stale No recent activity label Nov 2, 2021
@SMillerDev
Copy link
Member

It's definitely stale, nobody is working on it upstream or in Homebrew.

@carlocab
Copy link
Member

carlocab commented Nov 3, 2021

To clarify: we don't keep issues open just because they still affect someone. We only keep issues open when someone is actively working on them.

This way issues that someone can do something about aren't buried under the ones that nobody can/will. I am closing this the next time @github-actions adds the stale label.

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale No recent activity label Nov 27, 2021
@github-actions github-actions bot added the outdated PR was locked due to age label Jan 10, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 10, 2022
kristi added a commit to kristi/homebrew-core that referenced this issue Feb 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Reproducible Homebrew/homebrew-core bug outdated PR was locked due to age stale No recent activity
Projects
None yet
Development

No branches or pull requests

3 participants