Bug 1572917
Summary: | vm.hardware.nics[0].lan nil for RHV VMs | |||
---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Ian Tewksbury <itewksbu> | |
Component: | Providers | Assignee: | Alona Kaplan <alkaplan> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Radim Hrazdil <rhrazdil> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 5.8.0 | CC: | alkaplan, cpelland, gblomqui, itewksbu, jfrey, jhardy, mkanoor, mperina, obarenbo, tfitzger | |
Target Milestone: | GA | Keywords: | TestOnly, ZStream | |
Target Release: | 5.10.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | 5.10.0.0 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1588042 (view as bug list) | Environment: | ||
Last Closed: | 2019-02-11 14:00:02 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | RHEVM | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1588042 |
Description
Ian Tewksbury
2018-04-28 17:57:55 UTC
Automate is only exposing the associations that are mapped and populated by the provider. If the data is not collected and populated by the provider will not be available through Automate. Passing to the Providers team to review. Is it a regression? Alona, I do not know. This is the first time I have tried doing this. Blue skies, Ian Ian, Can you please elaborate on the verification steps required here? (What is exactly needed to be run on automate) Thanks, Ilanit. @llanit, This should do the trick in the rails console: ``` vm = $evm.vmdb(:vm).find_by_name("my_vm_host_name") vm.hardware.nics[0].lan ``` currently for RHV that returns `nil` but it should return a lan object as it does for VMWare. New commit detected on ManageIQ/manageiq-providers-ovirt/master: https://github.com/ManageIQ/manageiq-providers-ovirt/commit/4df9bfc7db548d3316fbe4875c665926aa33f5e9 commit 4df9bfc7db548d3316fbe4875c665926aa33f5e9 Author: Alona Kaplan <alkaplan> AuthorDate: Wed Jun 6 12:49:15 2018 -0400 Commit: Alona Kaplan <alkaplan> CommitDate: Wed Jun 6 12:49:15 2018 -0400 Fix travis failure in case the network_id is nil Fixes https://bugzilla.redhat.com/1572917 app/models/manageiq/providers/redhat/inventory/parser/infra_manager.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Verified: ``` $evm = MiqAeMethodService::MiqAeService.new(MiqAeEngine::MiqAeWorkspaceRuntime.new) vm = $evm.vmdb(:vm).find_by_name('test_vm') vm.hardware.nics[0].lan ``` Outputs: => #<MiqAeServiceLan:0x4e4c344 @object=#<Lan id: 1, switch_id: 1, name: "ovirtmgmt", tag: nil, created_on: "2018-09-17 11:38:16", updated_on: "2018-09-17 11:38:16", uid_ems: "03de76c3-77e5-4185-be38-da1fd7174d0e", allow_promiscuous: nil, forged_transmits: nil, mac_changes: nil, computed_allow_promiscuous: nil, computed_forged_transmits: nil, computed_mac_changes: nil, parent_id: nil, ems_ref: nil>, @virtual_columns=["href_slug", "region_description", "region_number"], @associations=["guest_devices", "hosts", "switch", "templates", "vms"]> Version CFME 5.10.0.15.20180914163601_fb02d7e Version RHV: 4.2.6.3-0.1.el7ev |