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

minimega: "-hashfiles -headnode" flags prevents mesh file sharing #1544

Open
glattercj opened this issue Oct 14, 2024 · 1 comment
Open

minimega: "-hashfiles -headnode" flags prevents mesh file sharing #1544

glattercj opened this issue Oct 14, 2024 · 1 comment

Comments

@glattercj
Copy link
Contributor

glattercj commented Oct 14, 2024

Describe your environment

  1. minimega 2.9 da0b90c 2024-09-04
  2. Ubuntu 22.04
  3. n/a
  4. KVM

Describe the bug
When starting minimega with the flags -hashfiles -headnode=xxxx on a multi-node deployment, minimega will not pull files across the minimega mesh specified by -filepath=<filepath>.

To Reproduce
Steps to reproduce the behavior:

  1. Deploy minimega on n1 and n2 with flags -hashfiles -headnode=n1
  2. Start a KVM instance on n2 (not the headnode) and run miniccc on the VM
  3. Create a file on the headnode in the filepath directory <filepath>/foobar
  4. Try to send a file via miniccc using minimega -e cc send <filepath>/foobar

Expected behavior
The file should be sent successfully to the VM running on n2 by first pulling the file to n2 over the mesh.

@activeshadow

@jacdavi
Copy link
Contributor

jacdavi commented Oct 14, 2024

Hmm I just tried this and it seemed to work as expected? Followed the steps you gave above, plus mesh dial n1 on n2 since otherwise mesh list was empty.

Here's the output (on n2). Confirmed the file was on the VM as expected.

minimega[minimega]$ cc send <FILE>
2024/10/14 22:46:18 INFO iomeshage.go:268: found file on <N1> with 1 parts
2024/10/14 22:46:18 INFO iomeshage.go:235: waiting on file: <FILE>
2024/10/14 22:46:18 INFO iomeshage.go:247: iomHelper waiting on <FILE>: 0/1
2024/10/14 22:46:18 INFO iomeshage.go:460: got all parts for <FILE>
2024/10/14 22:46:18 INFO iomeshage.go:247: iomHelper waiting on <FILE>: 1/1
2024/10/14 22:46:18 INFO iomeshage.go:247: iomHelper waiting on <FILE>: 1/1
2024/10/14 22:46:18 INFO iomeshage.go:247: iomHelper waiting on <FILE>: 1/1
2024/10/14 22:46:18 INFO iomeshage.go:247: iomHelper waiting on <FILE>: 1/1
2024/10/14 22:46:18 INFO iomeshage.go:247: iomHelper waiting on <FILE>: 1/1
2024/10/14 22:46:19 INFO server.go:989: send /tmp/minimega/files/<FILE>, rel: <FILE> 

Do you have anything else in your logs?

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

2 participants