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

Fix startup error when not using any dns plugins #601

Closed
yachub opened this issue Aug 9, 2023 · 0 comments · Fixed by #602
Closed

Fix startup error when not using any dns plugins #601

yachub opened this issue Aug 9, 2023 · 0 comments · Fixed by #602
Assignees

Comments

@yachub
Copy link

yachub commented Aug 9, 2023

This issue has been copied from Jira at https://puppet.atlassian.net/browse/POOLER-228

With DNS plugin introduction in vmpooler 3.x, a bug was introduced in the manager where it fails to start if no dns gems are included in dns_configs. Manager should be allowed to run only with a dynamic-dns config. Example trace:

Error while creating dns plugin for pool debian-11-x86_64: uninitialized constant Vmpooler::PoolManager::Dns
docker-vmpooler-manager-1  | warning: thread "Ruby-0-Thread-3: /opt/vmpooler/bin/vmpooler:52" terminated with exception (report_on_exception is true):
docker-vmpooler-manager-1  | NameError: uninitialized constant Vmpooler::PoolManager::Dns
docker-vmpooler-manager-1  |       const_missing at org/jruby/RubyModule.java:4309
docker-vmpooler-manager-1  |   create_dns_object at /opt/vmpooler/lib/vmpooler/pool_manager.rb:1450
docker-vmpooler-manager-1  |            execute! at /opt/vmpooler/lib/vmpooler/pool_manager.rb:1703
docker-vmpooler-manager-1  |                each at org/jruby/RubyArray.java:1987
docker-vmpooler-manager-1  |            execute! at /opt/vmpooler/lib/vmpooler/pool_manager.rb:1669
docker-vmpooler-manager-1  |              <main> at /opt/vmpooler/bin/vmpooler:58
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

Successfully merging a pull request may close this issue.

1 participant