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

Plugin registration mechanism of CSI is broken #70485

Closed
gnufied opened this issue Oct 31, 2018 · 12 comments
Closed

Plugin registration mechanism of CSI is broken #70485

gnufied opened this issue Oct 31, 2018 · 12 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. sig/node Categorizes an issue or PR as relevant to SIG Node. sig/storage Categorizes an issue or PR as relevant to SIG Storage.

Comments

@gnufied
Copy link
Member

gnufied commented Oct 31, 2018

It looks like plugin registration mechanism of CSI might be broken:

Oct 31 13:57:11 foobar-csi-test-minion-group-xxx kubelet[1987]: E1031 13:57:11.226647    1987 plugin_watcher.go:115] error failed to get plugin info using RPC GetInfo at socket /var/lib/kubelet/plugins/com.google.csi.gcepd/csi.sock, err: rpc error: code = Unimplemented desc = unkno
wn service pluginregistration.Registration when handling create event: "/var/lib/kubelet/plugins/com.google.csi.gcepd/csi.sock": CREATE
@k8s-ci-robot k8s-ci-robot added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Oct 31, 2018
@gnufied
Copy link
Member Author

gnufied commented Oct 31, 2018

/sig storage
/kind bug
/assign

@k8s-ci-robot k8s-ci-robot added sig/storage Categorizes an issue or PR as relevant to SIG Storage. kind/bug Categorizes issue or PR as related to a bug. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Oct 31, 2018
@gnufied
Copy link
Member Author

gnufied commented Oct 31, 2018

cc @verult @msau42

@msau42
Copy link
Member

msau42 commented Oct 31, 2018

Is this with/without feature gates? On head or 1.12? Does this impact other functionality like attach, mount, etc?

@jsafrane
Copy link
Member

I think that it's dynamic registration that discovers all sockets in /var/lib/kubelet/plugins, including a socket created by a driver in a subdirectory. It tries to talk to it with dynamic registration gRPC and it fails.

Driver registrar exposes a different socket (/var/lib/kubelet/plugins/*.sock, no subdirectory) and that one should be discovered and used by kubelet.

The message is harmless, at least on my machine, however, it pollutes logs and we should do something about it. Should the dynamic registration watch only /var/lib/kubelet/plugins without subdirectories?

/sig node

@k8s-ci-robot k8s-ci-robot added the sig/node Categorizes an issue or PR as relevant to SIG Node. label Oct 31, 2018
@jsafrane
Copy link
Member

cc @RenaudWasTaken for dynamic registration expertise.

@gnufied
Copy link
Member Author

gnufied commented Oct 31, 2018

Okay, so this could not be reason of volume limits not being registered for csi plugins. hmm. it looked suspicious.

@RenaudWasTaken
Copy link
Contributor

Hello!

Yep this seems to be related to #69015 which is a known harmless bug.

Basically what happens is that the plugin watcher will iterate recursively over that directory and try to register every file. In your case the csi.sock doesn't seem to implement the gRPC service, since this is the case, the pluginwatcher mechanism will ignore this file.

We are considering limiting the recursive behavior to one level, and making sure that the files we try to contact always end with .sock in the next release.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 29, 2019
@msau42
Copy link
Member

msau42 commented Jan 29, 2019

/close

@k8s-ci-robot
Copy link
Contributor

@msau42: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@msau42
Copy link
Member

msau42 commented Jan 29, 2019

Red herring

@kremers
Copy link

kremers commented Nov 11, 2019

Same issue with trident v19.10.0

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. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. sig/node Categorizes an issue or PR as relevant to SIG Node. sig/storage Categorizes an issue or PR as relevant to SIG Storage.
Projects
None yet
Development

No branches or pull requests

7 participants