Bug 2057053
Summary: | subscription-manager should not try to gather cloud metadata, when there is not strong sign that the VM is running in public cloud | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Jiri Hnidek <jhnidek> | |
Component: | subscription-manager | Assignee: | Jiri Hnidek <jhnidek> | |
Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> | |
Severity: | medium | Docs Contact: | ||
Priority: | high | |||
Version: | 8.6 | CC: | cdonnell, hlawatschek, jpasqual, jsefler, magoodwi, redakkan, sgajendr, shivagup, sshashi, thomas.zajic, zpetrace | |
Target Milestone: | rc | Keywords: | Triaged, ZStream | |
Target Release: | 8.7 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | subscription-manager-1.28.30-1.el8 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 2083642 2175823 (view as bug list) | Environment: | ||
Last Closed: | 2022-11-08 10:48:04 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 2083642, 2175823 |
Description
Jiri Hnidek
2022-02-22 16:11:57 UTC
*** Bug 2058431 has been marked as a duplicate of this bug. *** If you want to avoid this issue with current RHEL 8.5, then you can use following workaround. Create following file: /etc/rhsm/facts/fix_ms_chassis.facts and add following content to this file: { "dmi.chassis.manufacturer": "Redacted" } This custom fact override output of dmidecode and there will not be false positive detection of Azure. Reproducing the bug: [root@kvm-02-guest24 ~]# subscription-manager version server type: This system is currently not registered. subscription management server: 3.2.22-1 subscription management rules: 5.41 subscription-manager: 1.28.29-3.el8 printing communication between SUBMAN and the server: [root@kvm-02-guest24 ~]# export SUBMAN_DEBUG_PRINT_REQUEST=1 [root@kvm-02-guest24 ~]# export SUBMAN_DEBUG_PRINT_REQUEST_HEADER=1 [root@kvm-02-guest24 ~]# export SUBMAN_DEBUG_PRINT_REQUEST_BODY=1 [root@kvm-02-guest24 ~]# export SUBMAN_DEBUG_PRINT_RESPONSE=1 mimicking hyperV environment: [root@kvm-02-guest24 ~]# nano /etc/rhsm/facts/hyperv.facts { "dmi.chassis.manufacturer": "microsoft", "virt.host_type": "hyperv", "virt.is_guest": true } checking if system will try to reach metadata server: [root@kvm-02-guest24 ~]# subscription-manager facts Making request: GET http://169.254.169.254/metadata/instance?api-version=2021-02-01 {User-Agent: cloud-what/1.0, Accept-Encoding: gzip, deflate, Accept: */*, Connection: keep-alive, Metadata: true} Making request: GET http://169.254.169.254/metadata/versions {User-Agent: cloud-what/1.0, Accept-Encoding: gzip, deflate, Accept: */*, Connection: keep-alive, Metadata: true} cpu.core(s)_per_socket: 1 cpu.cpu(s): 1 cpu.cpu_socket(s): 1 cpu.thread(s)_per_core: 1 cpu.topology_source: kernel /sys cpu sibling lists distribution.id: Ootpa distribution.name: Red Hat Enterprise Linux distribution.version: 8.7 distribution.version.modifier: Unknown ... --> system tried to reach metadata server Pre-verification: pre-veriying on version: [root@kvm-02-guest24 ~]# subscription-manager version server type: This system is currently not registered. subscription management server: 3.2.22-1 subscription management rules: 5.41 subscription-manager: 1.28.29+30.gdab220594-1.git.0.e2b8079 printing communication between SUBMAN and the server: [root@kvm-02-guest24 ~]# export SUBMAN_DEBUG_PRINT_REQUEST=1 [root@kvm-02-guest24 ~]# export SUBMAN_DEBUG_PRINT_REQUEST_HEADER=1 [root@kvm-02-guest24 ~]# export SUBMAN_DEBUG_PRINT_REQUEST_BODY=1 [root@kvm-02-guest24 ~]# export SUBMAN_DEBUG_PRINT_RESPONSE=1 checking if system will try to reach metadata server: [root@kvm-02-guest24 ~]# subscription-manager facts cpu.core(s)_per_socket: 1 cpu.cpu(s): 1 cpu.cpu_socket(s): 1 cpu.thread(s)_per_core: 1 cpu.topology_source: kernel /sys cpu sibling lists distribution.id: Ootpa distribution.name: Red Hat Enterprise Linux distribution.version: 8.7 distribution.version.modifier: Unknown dmi.bios.address: 0xe8000 dmi.bios.bios_revision: 1.0 dmi.bios.release_date: 01/01/2011 dmi.bios.rom_size: 64 KB dmi.bios.runtime_size: 96 KB dmi.bios.vendor: Seabios dmi.bios.version: 0.5.1 ... --> system didn't try to reach metadata server = pre-verification PASSED Final verification: Version: [root@kvm-02-guest08 ~]# subscription-manager version server type: This system is currently not registered. subscription management server: 3.2.22-1 subscription management rules: 5.41 subscription-manager: 1.28.30-1.el8 Printing communication between SM and server: [root@kvm-02-guest08 ~]# export SUBMAN_DEBUG_PRINT_REQUEST=1 [root@kvm-02-guest08 ~]# export SUBMAN_DEBUG_PRINT_REQUEST_HEADER=1 [root@kvm-02-guest08 ~]# export SUBMAN_DEBUG_PRINT_REQUEST_BODY=1 [root@kvm-02-guest08 ~]# export SUBMAN_DEBUG_PRINT_RESPONSE=1 Configuring host to mimic hyperv environment: [root@kvm-02-guest08 ~]# cat /etc/rhsm/facts/hyperv.facts { "dmi.chassis.manufacturer": "microsoft", "virt.host_type": "hyperv", "virt.is_guest": true } Trying if system will try to reach metadata server: [root@kvm-02-guest08 ~]# subscription-manager facts cpu.core(s)_per_socket: 1 cpu.cpu(s): 1 cpu.cpu_socket(s): 1 cpu.thread(s)_per_core: 1 cpu.topology_source: kernel /sys cpu sibling lists distribution.id: Ootpa distribution.name: Red Hat Enterprise Linux distribution.version: 8.7 distribution.version.modifier: Unknown dmi.bios.address: 0xe8000 dmi.bios.bios_revision: 1.0 dmi.bios.release_date: 01/01/2011 dmi.bios.rom_size: 64 KB dmi.bios.runtime_size: 96 KB dmi.bios.vendor: Seabios dmi.bios.version: 0.5.1 dmi.chassis.asset_tag: Unknown ... --> system didn't try to reach metadata server = final verification PASSED 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 (subscription-manager bug fix and enhancement 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/RHEA-2022:7719 |