[ovirt-users] Tags in Ovirt
Hi all I'm trying to dump out a list of all tags and the VMs attached. I need to do this as I wrote an Ansible task to attach some VMs to some tags and ended up removing other VMs from these tags which caused some issues. I think I've fixed my problem but I want to take a backup of the tags and attached VMs but using ovirt.ovirt.ovirt_tag_info I can't see how to list all tags with the attached VMs. I've tried various incantations like: - ovirt.ovirt.ovirt_tag_info: auth: "{{ ovirt_auth}}" name: 'veeam-tier*' fetch_nested: true nested_attributes: - vm register: result but all I get is: ok: [localhost] => { "result": { "changed": false, "deprecations": [ { "msg": "The 'fetch_nested' and 'nested_attributes' are deprecated please use 'follow' parameter", "version": "3.0.0" } ], "failed": false, "ovirt_tags": [ { "description": "", "href": "/ovirt-engine/api/tags/4ebb9243-b133-40c9-b22e-03b3798415bf", "id": "4ebb9243-b133-40c9-b22e-03b3798415bf", "name": "veeam-tier3", "parent": { "href": "/ovirt-engine/api/tags/----", "id": "----" } }, { "description": "", "href": "/ovirt-engine/api/tags/0fd7a16a-82ca-4d13-a9ab-9646a41c58e6", "id": "0fd7a16a-82ca-4d13-a9ab-9646a41c58e6", "name": "veeam-tier1", "parent": { "href": "/ovirt-engine/api/tags/----", "id": "----" } }, { "description": "", "href": "/ovirt-engine/api/tags/4155338b-43f4-413c-bf41-4e46ee9472fa", "id": "4155338b-43f4-413c-bf41-4e46ee9472fa", "name": "veeam-tier2", "parent": { "href": "/ovirt-engine/api/tags/----", "id": "----" } } ] } } I'm using fetch_nested and nested_attributes as I couldn't get 'follow' to work. Any ideas? Thanks ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/G4LEU5DKANGWNSHPJVTY4EANSKOHQ2HV/
Re: [Users] tags?
On Thu, 6 Mar 2014 21:57:21 -0500 (EST) Andrew wrote: AC It's a way of grouping elements together. AC Eg. tag all the product VMs / Hosts AC Then filter by these tags to perform operations just on those. AC AC https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.3/html-single/Administration_Guide/index.html#sect-Tags Ahh, I keep forgetting that oVirt is basically RHEV... Thanks. So I see how it helps to find tagged objects, but not any way to perform bulk operations on them. It would be really nice to be able to find all VMs tagged as 'webserver' and add/remove a user to all of them in one operation. Robert -- Senior Software Engineer @ Parsons signature.asc Description: PGP signature ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] tags?
- Original Message - From: Robert Story rst...@tislabs.com Sent: Friday, March 7, 2014 11:04:36 AM On Thu, 6 Mar 2014 21:57:21 -0500 (EST) Andrew wrote: AC It's a way of grouping elements together. AC Eg. tag all the product VMs / Hosts AC Then filter by these tags to perform operations just on those. AC AC https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.3/html-single/Administration_Guide/index.html#sect-Tags Ahh, I keep forgetting that oVirt is basically RHEV... Thanks. So I see how it helps to find tagged objects, but not any way to perform bulk operations on them. It would be really nice to be able to find all VMs tagged as 'webserver' and add/remove a user to all of them in one operation. Hi Robert, actually, what you are asking for should not be limited only to a sub-set of objects filtered by tag; we should allow batch operations on any sub- set of objects, filtered by tags, object name, object's cluster-description and/or cpu-consumption. bulk operations are available today, typically on actions that don't require a dialog interaction (other than confirmation dialog, maybe), e.g. Run VM, Stop VM, Maintenance/Activate Host, etc. per your example: granting user permissions on an object is done in the context of the Permissions sub-tab of that object. today, sub-tabs are displayed/associated only with a single item, hence sub-tab operations are performed in the context of that single item. one way of resolving what you are asking for is to change the sub-tabs to support displaying data and performing actions in the context of multiple items, rather than a single item. We can also try and find other solutions for this particular problem, however these solutions will require making the 'Add Permissions action available from another location/context in the GUI (e.g. the VMs main-tab, rather than / in addition to the Permissions sub-tab, in which the 'Add Permission' action is available today). please feel free to open an RFE on this issue: https://bugzilla.redhat.com/enter_bug.cgi?product=oVirt Thanks. Robert -- Senior Software Engineer @ Parsons ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] tags?
On Fri, 7 Mar 2014 11:47:11 -0500 (EST) Einav wrote: EC actually, what you are asking for should not be limited only to a EC sub-set of objects filtered by tag; we should allow batch operations on EC any sub- set of objects, filtered by tags, object name, object's EC cluster-description and/or cpu-consumption. Yes, I agree. EC one way of resolving what you are asking for is to change the EC sub-tabs to support displaying data and performing actions in the EC context of multiple items, rather than a single item. EC [snip] EC please feel free to open an RFE on this issue: EC https://bugzilla.redhat.com/enter_bug.cgi?product=oVirt See https://bugzilla.redhat.com/show_bug.cgi?id=1074026, RFE: support bulk operations in admin portal. Robert -- Senior Software Engineer @ Parsons signature.asc Description: PGP signature ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] tags?
On 03/07/2014 12:11 PM, Robert Story wrote: On Fri, 7 Mar 2014 11:47:11 -0500 (EST) Einav wrote: EC actually, what you are asking for should not be limited only to a EC sub-set of objects filtered by tag; we should allow batch operations on EC any sub- set of objects, filtered by tags, object name, object's EC cluster-description and/or cpu-consumption. Yes, I agree. EC one way of resolving what you are asking for is to change the EC sub-tabs to support displaying data and performing actions in the EC context of multiple items, rather than a single item. EC [snip] EC please feel free to open an RFE on this issue: EC https://bugzilla.redhat.com/enter_bug.cgi?product=oVirt See https://bugzilla.redhat.com/show_bug.cgi?id=1074026, RFE: support bulk operations in admin portal. Robert -- Senior Software Engineer @ Parsons ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users Just FYI if you need this functionality ASAP, you can use Java SDK [1] to get what you need. You will need a little Java program to loop through the VMs and invoke operations on it. [1] http://www.ovirt.org/Java-sdk ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[Users] tags?
Hello, Can someone point me at a guide or explain to me the purpose of tags? I see that I can assign them to VMs and users, but don't grasp the purpose. Robert -- Senior Software Engineer @ Parsons signature.asc Description: PGP signature ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] tags?
- Original Message - Hello, Can someone point me at a guide or explain to me the purpose of tags? I see that I can assign them to VMs and users, but don't grasp the purpose. It's a way of grouping elements together. Eg. tag all the product VMs / Hosts Then filter by these tags to perform operations just on those. https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.3/html-single/Administration_Guide/index.html#sect-Tags Robert -- Senior Software Engineer @ Parsons ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users