[API] doesn't allow listing nodes that match a set of tags

Bug #1437007 reported by Jason Hobbs
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Wishlist
Unassigned

Bug Description

Right now the MAAS API only allows listing nodes per tag. If you want to list nodes that match multiple tags, you have to either make multiple calls to the nodes api, one per tag, and find the intersection manually, or list all nodes and then manually filter which ones have all the tags.

In oil, we're doing the latter.

Tags: oil
Revision history for this message
LaMont Jones (lamont) wrote :

The api should be enhanced to allow looking for an intersection of tags, or possibly even expressions of tags

Changed in maas:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Alex Iannicelli (atiannicelli) wrote :

I would propose that "maas maas nodes list tags_name=TAG" should filter the results so that only nodes that have a tag of "TAG" are returned in the response. The documentation seems to imply that this is possible here: https://maas.ubuntu.com/docs/maascli.html. It states:
        Filter the list using specific key/value pairs:
             $ maas maas nodes list architecture="i386/generic"
But this doesn't work. All the nodes are returned no matter what comes after "list" on the command line.

Changed in maas:
importance: Medium → Wishlist
milestone: none → next
summary: - API doesn't allow listing nodes that match a set of tags
+ [API] doesn't allow listing nodes that match a set of tags
Revision history for this message
Adam Collard (adam-collard) wrote :

This bug has not seen any activity in the last 6 months, so it is being automatically closed.

If you are still experiencing this issue, please feel free to re-open.

MAAS Team

Changed in maas:
status: Triaged → Invalid
Changed in maas:
milestone: next → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.