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:
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.