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

failed to run scheduler when adding a custom plugin #3330

Open
calvin0327 opened this issue Feb 27, 2024 · 2 comments
Open

failed to run scheduler when adding a custom plugin #3330

calvin0327 opened this issue Feb 27, 2024 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@calvin0327
Copy link

What happened:

  1. I rebuild the vc-scheduler image in ubuntu:
make images SUPPORT_PLUGINS=yes
  1. compile the plugin .so file in ubuntu:
# default CC is gcc
CGO_ENABLED=1 go build -o myplugin.so -buildmode=plugin myplugin.go
  1. rebuild a new scheduler image add .so file to it, ref: https://github.com/volcano-sh/volcano/blob/master/docs/design/custom-plugin.md#4-add-plugins-into-container

  2. add plugin flag: --plugins-dir=plugins

and running the pod with the new image, and logs show:

image

What you expected to happen:

the scheduler is running normally.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • Volcano Version:
  • Kubernetes version (use kubectl version):
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:
@calvin0327 calvin0327 added the kind/bug Categorizes issue or PR as related to a bug. label Feb 27, 2024
@hwdef
Copy link
Member

hwdef commented Feb 27, 2024

@calvin0327
Copy link
Author

Did you set SUPPORT_PLUGINS=yes when build image?

https://github.com/volcano-sh/volcano/blob/94c62a4b73c71bd263e8ae770c694343b6007380/Makefile#L75C9-L75C24

yes, I set the env var.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants