Bug 1438085
Summary: | fact collection behavior of 'virt.uuid' has changed for 'virt.host_type's containing {"ibm_systemz","powervm"} | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | John Sefler <jsefler> |
Component: | subscription-manager | Assignee: | Chris Snyder <csnyder> |
Status: | CLOSED ERRATA | QA Contact: | John Sefler <jsefler> |
Severity: | low | Docs Contact: | |
Priority: | high | ||
Version: | 7.4 | CC: | csnyder, jsefler, khowell, redakkan, skallesh |
Target Milestone: | rc | Keywords: | Regression, Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | subscription-manager-1.19.9-1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-08-01 19:22:43 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: |
Description
John Sefler
2017-03-31 20:54:17 UTC
Out of curiosity, have you tried these cases against systems matching the arch and virtualization platforms mentioned in beaker? It turns out I did not need the answer to the question in comment 3 to solve this bug. Cancelling needinfo. I've attached a PR including a fix for this. Reproducing the failure with below subscription-manager versions on an x86_64 KVM guest : ============================================================ # subscription-manager version server type: Red Hat Subscription Management subscription management server: 0.9.51.21-1 subscription management rules: 5.15.1 subscription-manager: 1.19.4-1.el7 python-rhsm: 1.19.2-1.el7 on "ibm_systemz": ================ [root@dhcp35-71 ~]# mv /usr/sbin/virt-what /usr/sbin/virt-what.BAK [root@dhcp35-71 ~]# echo '#!/bin/bash - ' > /usr/sbin/virt-what; echo -e 'echo -e "ibm_systemz\nibm_systemz-direct"' >> /usr/sbin/virt-what; chmod a+x /usr/sbin/virt-what [root@dhcp35-71 ~]# virt-what ibm_systemz ibm_systemz-direct [root@dhcp35-71 ~]# subscription-manager facts | egrep ^virt virt.host_type: ibm_systemz, ibm_systemz-direct virt.is_guest: True virt.uuid: 09daf6e6-e77e-af0f-16b6-2ee661306d71 --> FAILED on "powervm": ============== [root@dhcp35-71 ~]# echo '#!/bin/bash - ' > /usr/sbin/virt-what; echo -e 'echo -e "powervm_lx86"' >> /usr/sbin/virt-what; chmod a+x /usr/sbin/virt-what [root@dhcp35-71 ~]# virt-what powervm_lx86 [root@dhcp35-71 ~]# subscription-manager facts | egrep ^virt virt.host_type: powervm_lx86 virt.is_guest: True virt.uuid: 09daf6e6-e77e-af0f-16b6-2ee661306d71 --> FAILED on "xen-dom0": ============== [root@dhcp35-71 ~]# echo '#!/bin/bash - ' > /usr/sbin/virt-what; echo -e 'echo -e "xen-dom0"' >> /usr/sbin/virt-what; chmod a+x /usr/sbin/virt-what [root@dhcp35-71 ~]# virt-what xen-dom0 [root@dhcp35-71 ~]# subscription-manager facts | egrep ^virt virt.host_type: xen-dom0 virt.is_guest: False Retesting with updated subscription-manager version on a x86_64 machine: ======================================================================== subscription-manager: 1.19.13-1.el7 python-rhsm: 1.19.6-1.el7 # rpm -qa subscription-manager --changelog | grep 1438085 - 1438085: Do not include virt.uuid for platforms where it is not known on "ibm_systemz": =============== # mv /usr/sbin/virt-what /usr/sbin/virt-what.BAK # echo '#!/bin/bash - ' > /usr/sbin/virt-what; echo -e 'echo -e "ibm_systemz\nibm_systemz-direct"' >> /usr/sbin/virt-what; chmod a+x /usr/sbin/virt-what # virt-what ibm_systemz ibm_systemz-direct # subscription-manager facts | egrep ^virt virt.host_type: ibm_systemz, ibm_systemz-direct virt.is_guest: True ^^ PASSED : virt.uuid is absent for the system of virt.host_type " ibm_systemz" on "powervm": ============ [root@inferno ~]# echo '#!/bin/bash - ' > /usr/sbin/virt-what; echo -e 'echo -e "powervm_lx86"' >> /usr/sbin/virt-what; chmod a+x /usr/sbin/virt-what [root@inferno ~]# virt-what powervm_lx86 [root@inferno ~]# subscription-manager facts | egrep ^virt virt.host_type: powervm_lx86 virt.is_guest: True ^^ PASSED : virt.uuid is absent for the system of virt.host_type "powervm" on "xen-dom0": ============== [root@inferno ~]# echo '#!/bin/bash - ' > /usr/sbin/virt-what; echo -e 'echo -e "xen-dom0"' >> /usr/sbin/virt-what; chmod a+x /usr/sbin/virt-what [root@inferno ~]# virt-what xen-dom0 [root@inferno ~]# subscription-manager facts | egrep ^virt virt.host_type: xen-dom0 virt.is_guest: False Based on the above test observations , marking this bug as verified!! 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, 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/RHBA-2017:2083 |