Bug 1505590
| Summary: | xClarity: server-host relationship to hosts managed by RHEV-M provider not created. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Rodney H. Brown <rbrown4> | ||||
| Component: | Providers | Assignee: | Rodney H. Brown <rbrown4> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Rodney H. Brown <rbrown4> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 5.9.0 | CC: | cpelland, gblomqui, jfrey, jhardy, obarenbo, rbrown4, simaishi, tstoddard | ||||
| Target Milestone: | GA | Keywords: | TestOnly, ZStream | ||||
| Target Release: | 5.10.0 | ||||||
| Hardware: | All | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | 5.10.0.0 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1552323 (view as bug list) | Environment: | |||||
| Last Closed: | 2019-02-11 13:53:50 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | Lenovo | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1552323 | ||||||
| Attachments: |
|
||||||
|
Description
Rodney H. Brown
2017-10-24 00:01:35 UTC
Hey Rodney, ovirt does populate the serial_number parameter: https://github.com/ManageIQ/manageiq-providers-ovirt/blob/master/app/models/manageiq/providers/redhat/infra_manager/refresh/parse/strategies/host_inventory.rb#L193-L198 Can you confirm that this is missing in the database? ovirt does populate the serial_number parameter, but it is added to the hardwares table associated with the host object. The Lenovo provider is expecting to match to a service_tag number in the host object, that is not populated for the RHEV VM
$>select name, hostname, service_tag, type from hosts;
name | hostname | service_tag | type
--------------------------+--------------------------+-------------+----------------------------------------------------
ratchet1.labs.lenovo.com | ratchet1.labs.lenovo.com | 06ARFA2 | ManageIQ::Providers::Vmware::InfraManager::HostEsx
ratchet2.labs.lenovo.com | ratchet2.labs.lenovo.com | 06AREZ9 | ManageIQ::Providers::Vmware::InfraManager::HostEsx
Default | 10.243.6.151 | | ManageIQ::Providers::Redhat::InfraManager::Host
The OpenStack Nova nodes appear to fill in this value as well. I have not been able to test OpenShift on bare-metal yet to see if this is set.
I have a WIP PR to have the lenovo provider also check the hardwares serial_number field if the host.service_tag field is nil.
https://github.com/ManageIQ/manageiq-providers-lenovo/pull/93
Adding open stack examples:
name | hostname | service_tag | type
--------------------------+--------------------------+-------------+----------------------------------------------------
8f3a1ad6-05dc-4e0b-b720-84e139e97efb (Controller) | 172.20.0.10 | MJ0397BY | ManageIQ::Providers::Openstack::InfraManager::Host
319b10fe-68f1-457b-9214-f40c0d20a9c9 (Controller) | 172.20.0.12 | MJ0397QS | ManageIQ::Providers::Openstack::InfraManager::Host
be75b381-ded1-4123-abbc-27437993ef2c (Controller) | 172.20.0.8 | MJ0397QT | ManageIQ::Providers::Openstack::InfraManager::Host
e7b32ff5-ce97-4ead-97a7-69b863b69438 (NovaCompute) | 172.20.0.9 | KQ5X35Z | ManageIQ::Providers::Openstack::InfraManager::Host
a65a8898-dc44-4f34-b0b7-63e38db93e1c (NovaCompute) | 172.20.0.11 | KQ8N873 | ManageIQ::Providers::Openstack::InfraManager::Host
PR https://github.com/ManageIQ/manageiq-providers-lenovo/pull/93 opened to address this bug. 2/20/2018: Changed the Target Release to 5.9.1. |