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

[BUG] Can't get Linux plugin to connect to the node #122

Closed
Davide-DD opened this issue Jul 8, 2019 · 4 comments
Closed

[BUG] Can't get Linux plugin to connect to the node #122

Davide-DD opened this issue Jul 8, 2019 · 4 comments
Labels
bug Something isn't working

Comments

@Davide-DD
Copy link
Contributor

Describe the bug
When I try to run Linux plugin, it throws an exception and exit.

To Reproduce

  1. Launch YAKS
  2. Launch fagent
  3. Launch Linux plugin
    Linux_log.txt

Expected behavior
I expected to connect the plugin to the node.

Desktop

  • OS: Linux Ubuntu
  • Version: 16.04
  • Involved plugin: Linux

Additional context
This bug happened after I pulled the last changes of the repo and reinstalled everything (commit 02d6598, July 8th).

@Davide-DD Davide-DD added the bug Something isn't working label Jul 8, 2019
@Davide-DD
Copy link
Contributor Author

The same happens with Linuxbridge

@Davide-DD
Copy link
Contributor Author

I finally discovered why... Now, the ID in /etc/machine-id is formatted as a valid UUID before registering the agent to YAKS, therefore, even if the ID in /etc/machine-id is copied to linux_plugin.json, it's not transformed to a valid UUID before the copy and it will not match the agent UUID. To solve, I made a little modification to fos_install.sh and to Linuxbridge and LXD makefiles, in order to transform machine-id to a valid UUID and then copy it to the destination JSON file: if you think that it can be useful, @gabrik, I can upload the modifications I made.

@gabrik
Copy link
Contributor

gabrik commented Jul 9, 2019

Thanks @Davide-DD, yes, the update on the UUID was done some commit ago, that was in order to use standard UUID4 format.

Sure, you can contribute your updates opening a Pull Request:

  • fork the repo
  • apply modification
  • send a PR

Thanks!

@Davide-DD
Copy link
Contributor Author

Perfect! I'll keep this opened so I can reference it in the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants