Red Hat Bugzilla – Bug 1465654
[RFE] Tower inventory group info available in CloudForms
Last modified: 2017-08-01 10:07:57 EDT
Description of problem:
In the CloudForms UI, when viewing Ansible Tower inventories (Automation -> Ansible Tower -> Explorer) under the Tower provider inventories and/or under the Configured systems, it would be helpful to be able to know what Inventory groups configured systems are part of.
We were looking to use these inventories to programatically set group ownership on VMs for example (the same info would need to be accessible from Automate).
Version-Release number of selected component (if applicable):
The inventory_group info is there already. The association name is "inventory_root_group". See my console output here,
irb(main):103:0> pp ConfiguredSystem.first.inventory_root_group
ConfiguredSystem Load (0.4ms) SELECT "configured_systems".* FROM "configured_systems" ORDER BY "configured_systems"."id" ASC LIMIT $1 [["LIMIT", 1]]
ConfiguredSystem Inst Including Associations (0.3ms - 1rows)
EmsFolder Load (0.4ms) SELECT "ems_folders".* FROM "ems_folders" WHERE "ems_folders"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]]
EmsFolder Inst Including Associations (0.1ms - 1rows)
created_on: Mon, 13 Mar 2017 15:03:49 UTC +00:00,
updated_on: Mon, 13 Mar 2017 15:03:49 UTC +00:00,
=> #<ManageIQ::Providers::AutomationManager::InventoryRootGroup id: 4, name: "Dev-VC60", ems_id: 2, created_on: "2017-03-13 15:03:49", updated_on: "2017-03-13 15:03:49", uid_ems: nil, ems_ref_obj: nil, ems_ref: "2", type: "ManageIQ::Providers::AutomationManager::InventoryR...", hidden: nil>
That appears to be providing the name of the inventory, not the name of the group within the inventory. Can you verify?
could you provide a screenshot of the page you're describing. And, maybe a quick mock-up of what you're looking for on the page?
Created attachment 1292960 [details]
tower inventory showing existence of group and all hosts in the inventory
Created attachment 1292961 [details]
Tower image showing hosts in TestGroup, part of Demo Inventory
Created attachment 1292962 [details]
CloudForms image showing Demo Inventory and lack of group info summary
Created attachment 1292963 [details]
CloudForms image showing Demo Inventory and lack of group info configured systems
I'm not too concerned about what it looks like, having the Tower Inventory Group information available in CloudForms would be useful. Ultimately, I would have used it in this case from automate, not the UI. But seeing the same in the UI would also be helpful.
I see what you meant.
So this is mainly for the external Tower use case, right?
The implication is weather we need to implement CUD of groups via CFME UI. For external Tower use case, user can go through Tower native UI to do CUD.
Assuming there is no way to put hosts into groups with Ansible inside, then that's true.