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

missing plugin configuration prevents agent start #18

Closed
tgross opened this issue May 10, 2024 · 1 comment
Closed

missing plugin configuration prevents agent start #18

tgross opened this issue May 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@tgross
Copy link
Member

tgross commented May 10, 2024

If the plugin block is missing from the agent configuration for this plugin but the plugin binary is present in the plugin directory, Nomad will fail fingerprinting and the agent will not start.

2024-05-10T11:35:37.795-0400 [WARN] agent.plugin_loader: plugin not referenced in the agent configuration file, future versions of Nomad will not load this plugin until the agent configuration is updated: plugin_dir=/home/tim/ws/nomad/etc/plugins plugin=nomad-driver-exec2
2024-05-10T11:35:37.810-0400 [INFO] agent.plugin_loader: plugin process exited: plugin_dir=/home/tim/ws/nomad/etc/plugins plugin=/home/tim/ws/nomad/etc/plugins/nomad-driver-exec2 id=284674
2024-05-10T11:35:37.821-0400 [ERROR] agent: error starting agent:
error=
| failed to create plugin loader: failed to initialize plugin loader: parsing plugin configurations failed: 1 error occurred:
| \t* plugin "exec2" (driver): failed to parse config: Missing required argument: The argument "unveil_paths" is required, but no definition was found.
|

Note that in hashicorp/nomad#19189 we added a warning log to Nomad's plugin loader that indicated that missing plugin configurations would be deprecated. But the warning says only that the plugin will not be loaded, not that the agent won't be started.

@tgross tgross added the bug Something isn't working label May 10, 2024
@tgross tgross changed the title missing plugin configuration prevents fingerprinting missing plugin configuration prevents agent start May 10, 2024
@shoenig
Copy link
Member

shoenig commented May 21, 2024

Fixed in #26

@shoenig shoenig closed this as completed May 21, 2024
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