Comment 6 for bug 1713239

Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

It seems reasonable that there should be a separate tag in the query.

Will there be any way though to do a combined query with one API call? For example, a DB application might want to use some storage tagged with "nvme" and "db" (partition or not). Automation providing nodes and devices via MAAS would then have to do the following for each node:

1) find all devices tagged as "nvme" and "db";
2) if there are no partitions on those, add those to the list of devices to use;
2) find all devices tagged as "nvme" with partitions and match any partition with the "db" tag.

The result (after by-id symlink resolution) could be something like: [/dev/nvme0n1p2, /dev/nvme1n1]