redhat-performance / tuned

Tuning Profile Delivery Mechanism for Linux
GNU General Public License v2.0
814 stars 178 forks source link

Add API functions to retrieve active instances and their devices #569

Closed zacikpa closed 10 months ago

zacikpa commented 10 months ago

Resolves: RHEL-15137

Appropriate commands are added to tuned-adm as well:

To differentiate between cases when a plugin does not exist (error) and when it does not have any active instances (not an error), get_instances also returns a boolean and an error string.

Similarly in instance_get_devices - if an instance exists but does not have any assigned devices, it is not an error. If it does not exist, it is an error.

Let me know if this behaviour is OK or whether I should simplify it by just returning empty lists.

zacikpa commented 10 months ago

@yarda Please review the updates and I will squash then.

yarda commented 10 months ago

EPEL-8 CI failure is infra error, i.e. it is not blocking the merge.

yarda commented 10 months ago

LGTM, please squash.

zacikpa commented 10 months ago

LGTM, please squash.

Done.