Bug 1473036 - InventoryRootGroup vms and hosts associations empty
InventoryRootGroup vms and hosts associations empty
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate (Show other bugs)
Unspecified Unspecified
medium Severity medium
: GA
: cfme-future
Assigned To: Drew Bomhof
Dave Johnson
Depends On:
  Show dependency treegraph
Reported: 2017-07-19 18:31 EDT by ncatling
Modified: 2018-01-05 18:48 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-08-08 14:47:50 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description ncatling 2017-07-19 18:31:21 EDT
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 14:47:50 EDT
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.