networkop / meshnet-cni

a (K8s) CNI plugin to create arbitrary virtual network topologies
BSD 3-Clause "New" or "Revised" License
116 stars 27 forks source link

`make install` fails #33

Closed crystalattice closed 2 years ago

crystalattice commented 2 years ago

Going through the README demo, I get to the point of running make install but it fails to execute

popos@pop-os:~/meshnet-cni$ make install /home/popos/go/bin/kind load docker-image --name "meshnet" networkop/meshnet:4bf3db7-dirty Image: "networkop/meshnet:4bf3db7-dirty" with ID "sha256:8eaa415b1910d98d19dad3a6396c85893e27e40f8842ed6a1c9a47e27962d293" not yet present on node "meshnet-control-plane", loading... Image: "networkop/meshnet:4bf3db7-dirty" with ID "sha256:8eaa415b1910d98d19dad3a6396c85893e27e40f8842ed6a1c9a47e27962d293" not yet present on node "meshnet-worker", loading... Image: "networkop/meshnet:4bf3db7-dirty" with ID "sha256:8eaa415b1910d98d19dad3a6396c85893e27e40f8842ed6a1c9a47e27962d293" not yet present on node "meshnet-worker3", loading... Image: "networkop/meshnet:4bf3db7-dirty" with ID "sha256:8eaa415b1910d98d19dad3a6396c85893e27e40f8842ed6a1c9a47e27962d293" not yet present on node "meshnet-worker2", loading... ERROR: command "docker save -o /tmp/images-tar964290207/images.tar networkop/meshnet:4bf3db7-dirty" failed with error: exit status 1 Command Output: failed to save image: invalid output path: directory "/tmp/images-tar964290207" does not exist make: *** [.mk/kind.mk:33: kind-load] Error 1

I have tried this on clean VMs of both Ubuntu 21.04 and 21.10.

crystalattice commented 2 years ago

A coworker was able to successfully run make install using macOS, so maybe it's how Linux handles the call.

networkop commented 2 years ago

this looks strange. can you confirm you can see the networkop/meshnet:4bf3db7-dirty image in your local registry?

crystalattice commented 2 years ago

Unless there is something else I should be looking at, it appears to be there Screenshot from 2021-12-15 08-43-29 .

networkop commented 2 years ago

seems like you may be hitting this issue? are you installing docker from snap? can you try the suggested workaround, i.e. passing TMPDIR env variable to kind load command?

crystalattice commented 2 years ago

Yes, I'm using docker from snap. Thanks for the info; I wasn't aware this was a problem.

I'll change my settings and continue; I will also close this issue.