Comment 9 for bug 1477605

Revision history for this message
Julia Aranovich (jkirnosova) wrote :

Yes, we have an idea about generic filtering in the API, which will be available both for UI and CLI. But I'm not sure when we'll start its implementation. This particular ticket was created as a result of an experience of label management in CLI. I think the case to get nodes with label1 AND label2 is a more frequent case than to get nodes with label1 OR label2 OR both. For this purpose I would run 2 commands to filter separately nodes by label1 and then by label2.

For example, user wants to get a node from rack#1 and position#3 (rack# and position# are node labels). Now (in master) he will get all nodes from rack#1 and all nodes, that located at position#3 through all racks. I think it is unacceptable.

I think we should go with CLI change for the ticket.