Bug 1663217
Summary: | [RFE] Add RHV VM name to the matching between Satellite's content host to RHV (currently only VM FQDN is used) | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Ulhas Surse <usurse> |
Component: | ovirt-engine | Assignee: | Artur Socha <asocha> |
Status: | CLOSED ERRATA | QA Contact: | Petr Kubica <pkubica> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.2.7 | CC: | aperotti, apinnick, asocha, dfodor, lleistne, lsvaty, masayag, michal.skrivanek, mperina, mtessun, pkubica, tnisan |
Target Milestone: | ovirt-4.5.1 | Keywords: | FutureFeature, ZStream |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: |
The hostname and/or FQDN of the VM or VDSM host can change after a virtual machine (VM) is created. Previously, this change could prevent the VM from fetching errata from Red Hat Satellite/Foreman. With this enhancement, errata can be fetched even if the VM hostname or FQDN changes.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2022-07-14 12:54:30 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1857866 | ||
Bug Blocks: |
Description
Ulhas Surse
2019-01-03 13:01:46 UTC
Hi just tried it and it is not working. I can clearly see that in Satellite facts are reported and there is an erratum available. Did a little bit digging around: xx.xx.xx.xx - - [07/Apr/2021:13:36:08 +0200] "GET /api/v2/status HTTP/1.1" 200 65 "-" "Java/11.0.10" xx.xx.xx.xx - - [07/Apr/2021:13:36:08 +0200] "GET /api/v2/hosts?search=facts.dmi::system::uuid=<UUID CENSORED>&format=json HTTP/1.1" 200 210 "-" "Java/11.0.10" xx.xx.xx.xx - - [07/Apr/2021:13:36:08 +0200] "GET /api/v2/hosts?search=facts.network::fqdn=<FQDN CENSORED>&format=json HTTP/1.1" 200 211 "-" "Java/11.0.10" xx.xx.xx.xx - - [07/Apr/2021:13:36:08 +0200] "GET /api/v2/hosts?search=facts.network::hostname=satellite-fqdn-vm&format=json HTTP/1.1" 200 191 "-" "Java/11.0.10" Satellite API: { "total": 15, "subtotal": 0, "page": 1, "per_page": 20, "search": "facts.dmi::system::uuid=<UUID CENSORED>", "sort": { "by": null, "order": null }, "results": [] } but this: https://<SATELLITE FQDN>/api/v2/hosts?search=facts.uuid=%22<UUID CENSORED>%22 { "total": 15, "subtotal": 1, "page": 1, "per_page": 20, "search": "facts.uuid = \"<UUID CENSORED>\"", <-- here is necessary to have escaped quotes "sort": { "by": null, "order": null }, "results": [ <found a correct result> ] } Also simillar with network search: https://<SATELLITE FQDN>/api/v2/hosts?search=facts.networking::fqdn=<FQDN CENSORED> { "total": 15, "subtotal": 0, "page": 1, "per_page": 20, "search": "facts.network::fqdn=<FQDN CENSORED>", "sort": { "by": null, "order": null }, "results": [] } and correct one: https://<SATELLITE FQDN>/api/v2/hosts?search=facts.networking::fqdn=<FQDN CENSORED> { "total": 15, "subtotal": 1, "page": 1, "per_page": 20, "search": "facts.networking::fqdn=<FQDN CENSORED>", "sort": { "by": null, "order": null }, "results": [ <found a correct result> ] } Also it's possible to get a VM with MAC address: https://<SATELLITE FQDN>/api/v2/hosts?search=facts.networking::mac=<MAC ADDRESS> or IP https://<SATELLITE FQDN>/api/v2/hosts?search=facts.networking::ip=<IP ADDRESS> About the last one: /api/v2/hosts?search=facts.network::hostname=satellite-fqdn-vm I didn't find a way how to get it useful. - Satellite in this case is not managing the DNS or would have to ensure that in RHV VM name == hostname - In case that Satellite is managing the DNS user has to ensure that RHV VM name == Satellite Host name Please let me know if this is the case and the desired behavior. For now I'm moving it back to ASSIGNED Given that it failed QE, do we want to fix this properly, or just close-wontfix? I believe the issue is fixed, but we have a gap in documentation. Anyway we are discussing these to get into a conclusion and finally close it as fixed. We are past 4.5.0 feature freeze, please re-target. We believe it worked, just the prerequisities hasn't been met. please retest and if it still doesn't work provide more details or access info Verified in ovirt-engine-4.5.0.7-0.9.el8ev.noarch Now it is possible to see errata in the VM, tested with Satellite 6.10 (FQDN and VM name don't match) Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: RHV Manager (ovirt-engine) [ovirt-4.5.1] security, bug fix and update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:5555 |