split the bug from https://bugzilla.redhat.com/show_bug.cgi?id=1248942#c3 Tested on build rhev-hypervisor-7-7.1-20150804.0. the CPE_NAME display the RHEL CPE name, NOT RHEV-H CPE, hostnamectl will return incorrect CPE name in RHEV-H. # 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" Expected result Correct CPE string in /etc/os-release in RHEV-H 7.1
*** Bug 1251936 has been marked as a duplicate of this bug. ***
# cat /etc/redhat-release Red Hat Enterprise Virtualization Hypervisor release 7.2 (20151104.0.el7ev) # cat /etc/system-release-cpe cpe:/o:redhat:enterprise_linux:7:update2:hypervisor # hostnamectl Static hostname: dhcp-9-205.nay.redhat.com Icon name: computer-desktop Chassis: desktop Machine ID: e8dc07ed14ff4f21bce8668d4bf957e1 Boot ID: d1103a3ad1f14a3b92373d43b44b24a5 Operating System: Red Hat Enterprise Virtualization Hypervisor 7.2 CPE OS Name: cpe:/o:redhat:enterprise_linux:7:update2:hypervisor Kernel: Linux 3.10.0-327.el7.x86_64 Architecture: x86-64 # cat /etc/os-release NAME="Red Hat Enterprise Linux Workstation" VERSION="7.2 (Maipo)" ID="rhel" ID_LIKE="fedora" VERSION_ID="7.2" PRETTY_NAME="Red Hat Enterprise Virtualization Hypervisor 7.2" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:redhat:enterprise_linux:7:update2:hypervisor" HOME_URL="https://www.redhat.com/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Virtualization Hypervisor 7.2" REDHAT_BUGZILLA_PRODUCT_VERSION=7.2 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="7.2" Result: Correct CPE string in /etc/os-release in RHEV-H 7.2 for 3.6.0
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/RHBA-2016-0378.html