-
Notifications
You must be signed in to change notification settings - Fork 2k
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
CSI: plugins with same type and ID collide on client #8628
Comments
A workaround for operators until we have this fixed is to either:
|
It looks like this could easily be fixed by adding an alloc index to where the path is defined in the We've missed the boat on 0.12.2 for this but it should be straightforward to test this approach. |
Getting the socket path out of the registry when we instantiate the plugin supervisor hook reveals a related problem: plugins collide in the dynamic plugin registry. If more than one plugin of the same type and plugin ID lands on the same Nomad client, they both register with the same key in the registry. (see We could add a feature to the scheduler to make sure that we never schedule the plugin on the same client, but that probably makes plugin upgrades on small clusters difficult. I think we need to rework the client-side registry to store a list of plugins as well. @langmartin do you have thoughts here? |
There's a few complications to a quick fix here:
So in the meantime I've opened #9052 as a notice to operators. |
Work in progress in #12078 |
Should be fixed by #12078, which will ship in Nomad 1.3.0 |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
To communicate with CSI plugins, we mount a directory for the plugin at
${nomad_data_dir}/client/csi/${plugin_type}/${plugin_id}/
. The plugin is responsible for opening a socket at that path +csi.sock
(typically). If a second plugin with the same type and ID lands on the same Nomad client node, then the second allocation can't open the socket.The text was updated successfully, but these errors were encountered: