Bug 1465654 - [RFE] Tower inventory group info available in CloudForms
Summary: [RFE] Tower inventory group info available in CloudForms
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.8.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: GA
: cfme-future
Assignee: Loic Avenel
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-27 21:04 UTC by Jeffrey Cutter
Modified: 2019-12-18 14:36 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-12-18 14:36:43 UTC
Category: ---
Cloudforms Team: Ansible
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
tower inventory showing existence of group and all hosts in the inventory (32.08 KB, image/png)
2017-06-29 20:43 UTC, Jeffrey Cutter
no flags Details
Tower image showing hosts in TestGroup, part of Demo Inventory (27.31 KB, image/png)
2017-06-29 20:44 UTC, Jeffrey Cutter
no flags Details
CloudForms image showing Demo Inventory and lack of group info summary (25.32 KB, image/png)
2017-06-29 20:45 UTC, Jeffrey Cutter
no flags Details
CloudForms image showing Demo Inventory and lack of group info configured systems (46.14 KB, image/png)
2017-06-29 20:46 UTC, Jeffrey Cutter
no flags Details

Description Jeffrey Cutter 2017-06-27 21:04:57 UTC
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):

5.8

Comment 2 James Wong 2017-06-28 14:41:46 UTC
Jeffrey,

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)
#<ManageIQ::Providers::AutomationManager::InventoryRootGroup:0x007f949b9b1068
 id: 4,
 name: "Dev-VC60",
 ems_id: 2,
 created_on: Mon, 13 Mar 2017 15:03:49 UTC +00:00,
 updated_on: Mon, 13 Mar 2017 15:03:49 UTC +00:00,
 uid_ems: nil,
 ems_ref_obj: nil,
 ems_ref: "2",
 type: "ManageIQ::Providers::AutomationManager::InventoryRootGroup",
 hidden: nil>
=> #<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>
irb(main):104:0>

Comment 3 Jeffrey Cutter 2017-06-28 16:45:25 UTC
James,

That appears to be providing the name of the inventory, not the name of the group within the inventory.  Can you verify?

Thanks,
-Jeff

Comment 4 Greg Blomquist 2017-06-29 15:25:58 UTC
Jeff,

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?

Comment 5 Jeffrey Cutter 2017-06-29 20:43:02 UTC
Created attachment 1292960 [details]
tower inventory showing existence of group and all hosts in the inventory

Comment 6 Jeffrey Cutter 2017-06-29 20:44:18 UTC
Created attachment 1292961 [details]
Tower image showing hosts in TestGroup, part of Demo Inventory

Comment 7 Jeffrey Cutter 2017-06-29 20:45:06 UTC
Created attachment 1292962 [details]
CloudForms image showing Demo Inventory and lack of group info summary

Comment 8 Jeffrey Cutter 2017-06-29 20:46:00 UTC
Created attachment 1292963 [details]
CloudForms image showing Demo Inventory and lack of group info configured systems

Comment 9 Jeffrey Cutter 2017-06-29 20:53:38 UTC
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.

Comment 10 James Wong 2017-06-30 13:30:35 UTC
Jeffrey,

I see what you meant.

Thanks,
James

Comment 12 James Wong 2017-06-30 19:53:38 UTC
Jeffrey,

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.

regards,
James

Comment 13 Jeffrey Cutter 2017-07-05 17:50:35 UTC
Hi James,

Assuming there is no way to put hosts into groups with Ansible inside, then that's true.

Thanks,
-Jeff

Comment 15 Dave Johnson 2018-11-29 09:02:36 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set the severity to Low.


Note You need to log in before you can comment on or make changes to this bug.