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

Unable to run pod in Kubernetes #1

Open
gcpguru opened this issue Mar 2, 2021 · 1 comment
Open

Unable to run pod in Kubernetes #1

gcpguru opened this issue Mar 2, 2021 · 1 comment
Assignees

Comments

@gcpguru
Copy link

gcpguru commented Mar 2, 2021

When the pod starts up, it immediately fails with the following:

Traceback (most recent call last):
File "/usr/local/bin/ncs2_device_plugin", line 11, in
load_entry_point('ncs2-device-plugin==0.2.0', 'console_scripts', 'ncs2_device_plugin')()
File "/app/ncs2_device_plugin/main.py", line 46, in main
server = NCS2DevicePluginServer(service=service, logger=logger)
File "/app/ncs2_device_plugin/server.py", line 25, in init
self.server.add_insecure_port('unix://' + ncs2_socket_path)
File "/usr/local/lib/python3.8/dist-packages/grpcio-1.34.0-py3.8-linux-x86_64.egg/grpc/_server.py", line 961, in add_insecure_port
return _common.validate_port_binding_result(
File "/usr/local/lib/python3.8/dist-packages/grpcio-1.34.0-py3.8-linux-x86_64.egg/grpc/_common.py", line 166, in validate_port_binding_result
raise RuntimeError(_ERROR_MESSAGE_PORT_BINDING_FAILED % address)
RuntimeError: Failed to bind to address unix:///var/lib/kubelet/device-plugins/ncs2.sock

Complete log file attached.
failed_pod.log

@pmundt
Copy link
Member

pmundt commented Mar 3, 2021

Thanks for the report @rafaeljcuevas. Can you try re-run this with GRPC_VERBOSITY=debug set so we can figure out why the socket file is not being created?

Also, are you using a specific Kubernetes version or distribution?

@pmundt pmundt self-assigned this Mar 3, 2021
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