Red Hat Bugzilla – Bug 1473036
InventoryRootGroup vms and hosts associations empty
Last modified: 2017-08-08 14:47:50 EDT
Description of problem:
InventoryRootGroup vms and hosts associations empty when querying ManageIQ_Providers_AutomationManager_InventoryRootGroup
Version-Release number of selected component (if applicable):
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)
=> ["configuration_scripts", "hosts", "manager", "vms"]
Associated hosts/configured_hosts within the InventoryRootGroup (Ansible Inventory) should be shown.
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.