Bug 1473036 - InventoryRootGroup vms and hosts associations empty
Summary: InventoryRootGroup vms and hosts associations empty
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.8.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: cfme-future
Assignee: Drew Bomhof
QA Contact: Dave Johnson
URL:
Whiteboard: ansible
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-19 22:31 UTC by ncatling
Modified: 2018-01-05 23:48 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-08 18:47:50 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description ncatling 2017-07-19 22:31:21 UTC
Description of problem:
InventoryRootGroup vms and hosts associations empty when querying ManageIQ_Providers_AutomationManager_InventoryRootGroup

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:

[root@localhost vmdb]# rails c
Loading production environment (Rails 5.0.3)

irb(main):002:0> $evm = MiqAeMethodService::MiqAeService.new(MiqAeEngine::MiqAeWorkspaceRuntime.new)
=> #<MiqAeMethodService::MiqAeService:...

irb(main):003:0> $evm.vmdb('ManageIQ_Providers_AutomationManager_InventoryRootGroup').first.associations
=> ["configuration_scripts", "hosts", "manager", "vms"]

irb(main):004:0> $evm.vmdb('ManageIQ_Providers_AutomationManager_InventoryRootGroup').first.vms
=> []

irb(main):005:0> $evm.vmdb('ManageIQ_Providers_AutomationManager_InventoryRootGroup').first.hosts
=> []


Actual results:
=> []


Expected results:
Associated hosts/configured_hosts within the InventoryRootGroup (Ansible Inventory) should be shown.

Additional info:

Comment 2 Drew Bomhof 2017-08-08 18:47:50 UTC
In regards to 'hosts' and 'vms' on 'ManageIQ_Providers_AutomationManager_InventoryRootGroup'.

Although the association names make sense as methods, in the case of the sub class ManageIQ::Providers::AutomationManager::InventoryRootGroup those associations are being pulled in from a polymorphic parent.  

We currently do not collect or maintain results for 'vms' or 'hosts' in the ManageIQ::Providers::AutomationManager::InventoryRootGroup class. This may happen in the future with our move to the REST API.


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