-
Notifications
You must be signed in to change notification settings - Fork 82
volume: provide an option to set a 'tag' #462
Comments
So this can be an option in the volume create request API and then 'gluster volume info --tag=something' can filter this out. Is this what the requirement is? If yes, this should be quite easy to implement. Need a change in volume create & volume info (ReST APIs and CLI commands) |
Checklist
|
To clarify my original intent with this feature: I'm looking for the ability to store additional metadata with gluster entities that are exposed externally (e.g., volumes, nodes, clusters, snapshots). If devices/bricks are exposed, they should be taggable also.
The above are just examples of how I could see this being used. glusterd should not interpret these tags in any way other than to allow filtering as @amarts showed above. |
It's in the plan to allow custom metadata (key/value pairs) for peer and volume objects. Core glusterd shall not interpret or use these in any way. However, glusterd2 will impose a size (in bytes) restriction. |
@vpandey-RH Checklist:
|
@vpandey-RH Next step would be to add support to list volumes that have specific keys and/or values set. You can extend the existing volume list API by adding query params. |
The documentation formatting needs to be fixed. |
@prashanthpai Resolved the documentation issue |
... (or many tags) on a volume while creating (or with volume update apis).
This tag can be used to display reduced set of volumes, like
gluster volume info --tag=something
If we get each different layer integrating the API to set their own tag while creating the volume, it would be very useful for debug, analytics (like which tool is actually creating more volumes etc).
To start with we can mark everything going in with cli as
tag:'cli'
.@JohnStrunk (add more if something is missed)
The text was updated successfully, but these errors were encountered: