-
Notifications
You must be signed in to change notification settings - Fork 378
Specify which data a CO can safely cache #71
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
Comments
GetNodeId was replaced with NodeGetInfo. But this is still a valid issue. |
I'm having a bit of a hard time with this one. I thought I'd approach it by considering cases where the NodeID might reasonably change (even though COs don't want it to). For example, the plugin is uninstalled-then-reinstalled to the system. The CO isn't guaranteed to be the plugin supervisor, so it may not be aware of such a change - if the change is performed quickly, then the CO may think that the plugin has simply been restarted. Similarly, the backend storage provider may be reconfigured such that its no longer possible for the plugin to maintain the old NodeID (given that we want to support "stateless" plugins) since NodeID would be derived from the backend metadata. |
Options discussed with @jdef @jieyu @julian-hj:
We agreed 4 is the least worst option, will go with that. |
Currently the spec does not specify whether or not a CO can safely cache certain data, such as a
NodeID
. It is important to know whether or not this information should be cached or should be obtained every time it is required. For example, because theNodeID
is not a single-value, its data map could be used to transport Node host-level information to a Controller host, such as a list of local devices on the node host. However, if theNodeID
is cached this value should not be used for general data transport.Cache characteristics and expectations should be explicitly detailed for each piece of data returned by the CSI RPCs.
The text was updated successfully, but these errors were encountered: