Description In /etc/os-release, some values are incorrect, NAME, CPE NAME and REDHAT_SUPPORT_PRODUCT, although node parts did not use them visible, but it is in hypervisor product, we need to avoid incorrect values here, especially hostnamectl will return incorrect CPE name. Version ovirt-node-recipe-3.2.3-14.el7.noarch.rpm ovirt-node-3.2.3-14.el7.noarch rhev-hypervisor7-7.1-20150728.1 # cat /etc/system-release-cpe cpe:/o:redhat:enterprise_linux:7:update1:hypervisor # hostnamectl Static hostname: n/a Transient hostname: localhost Icon name: computer-desktop Chassis: desktop Machine ID: 8d74f21f449f4457b46a1c83625858af Boot ID: ad6c444cf2064807b3c7a2cd8c47087e Operating System: Red Hat Enterprise Virtualization Hypervisor 7.1 CPE OS Name: cpe:/o:redhat:enterprise_linux:7.1:GA:client Kernel: Linux 3.10.0-229.7.2.el7.x86_64 Architecture: x86_64 # cat /etc/os-release NAME="Red Hat Enterprise Linux Client" VERSION="7.1 (Maipo)" ID="rhel" ID_LIKE="fedora" VERSION_ID="7.1" PRETTY_NAME="Red Hat Enterprise Virtualization Hypervisor 7.1" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:redhat:enterprise_linux:7.1:GA:client" HOME_URL="https://www.redhat.com/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Virtualization Hypervisor 7.1" REDHAT_BUGZILLA_PRODUCT_VERSION=7.1 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="7.1" Expected result: Use RHEVH itself values instead of RHEL values.
Tested on build rhev-hypervisor-7-7.1-20150804.0. After ticket in comment 1 is resolved, now the NAME already set as "Red Hat Enterprise Linux Server" not Client. But the CPE_NAME still display the RHEL info, NOT RHEV-H CPE, hostnamectl will return incorrect CPE name. And REDHAT_SUPPORT_PRODUCT value whether should be "Red Hat Enterprise Virtualization Hypervisor"? # cat /etc/rhev-hypervisor-release Red Hat Enterprise Virtualization Hypervisor release 7.1 (20150804.0.el7ev) # cat /etc/system-release-cpe cpe:/o:redhat:enterprise_linux:7:update1:hypervisor # hostnamectl Static hostname: n/a Transient hostname: localhost Icon name: computer-desktop Chassis: desktop Machine ID: 58cca1ceed28468fb4034bf84f7ed14d Boot ID: e59d79a5bb824dbc9c85d0963fa35c72 Operating System: Red Hat Enterprise Virtualization Hypervisor 7.1 CPE OS Name: cpe:/o:redhat:enterprise_linux:7.1:GA:server Kernel: Linux 3.10.0-229.11.1.el7.x86_64 Architecture: x86_64 # cat /etc/os-release NAME="Red Hat Enterprise Linux Server" VERSION="7.1 (Maipo)" ID="rhel" ID_LIKE="fedora" VERSION_ID="7.1" PRETTY_NAME="Red Hat Enterprise Virtualization Hypervisor 7.1" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:redhat:enterprise_linux:7.1:GA:server" HOME_URL="https://www.redhat.com/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Virtualization Hypervisor 7.1" REDHAT_BUGZILLA_PRODUCT_VERSION=7.1 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="7.1"
The CPE fix requires another patch, because the CPE string is now stored twice. Please verify this bug (as the right package is now used), and file a separate bug for the incorrect CPE string in /etc/os-release.
(In reply to Fabian Deutsch from comment #3) > The CPE fix requires another patch, because the CPE string is now stored > twice. > > Please verify this bug (as the right package is now used), and file a > separate bug for the incorrect CPE string in /etc/os-release. Separated new bug to cover incorrect CPE name issue: https://bugzilla.redhat.com/show_bug.cgi?id=1251864
Fabian, before this bug verification, there are some unclear still need to clarify. Thanks. NAME, VERSION, ID, ID_LIKE, REDHAT_BUGZILLA_PRODUCT, REDHAT_SUPPORT_PRODUCT in /etc/os-release Are all correct? Do we need to care these values in RHEV-H? # cat /etc/os-release NAME="Red Hat Enterprise Linux Server" VERSION="7.1 (Maipo)" ID="rhel" ID_LIKE="fedora" VERSION_ID="7.1" PRETTY_NAME="Red Hat Enterprise Virtualization Hypervisor 7.1" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:redhat:enterprise_linux:7.1:GA:server" HOME_URL="https://www.redhat.com/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Virtualization Hypervisor 7.1" REDHAT_BUGZILLA_PRODUCT_VERSION=7.1 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="7.1"
Yes, the relevant lines in os-reelase are updated: REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Virtualization Hypervisor 7.1" PRETTY_NAME="Red Hat Enterprise Virtualization Hypervisor 7.1"
To clarify: It's obvious that some entries in os-release are wrong (see comment 6), but we never updated those entries in the past, as they were irrelevant to RHEV-H. I opened bug 1251936 to make sure that - in future - we update all fields (to have a consistent behavior) and to make sure the fields contain the correct informations.
For this bug, we only verify ticket 364388 in comment 1 fix, see comment 2. For further issues fix, we will trace by bug 1251936 and bug 1251864. Thanks.
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://rhn.redhat.com/errata/RHSA-2015-1713.html