RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1540294 - update subscription-manager to use dmidecode instead of python-dmidecode
Summary: update subscription-manager to use dmidecode instead of python-dmidecode
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.5-Alt
Hardware: aarch64
OS: Unspecified
medium
medium
Target Milestone: rc
: 7.6
Assignee: Kevin Howell
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On: 1509938
Blocks: 1498541
TreeView+ depends on / blocked
 
Reported: 2018-01-30 17:40 UTC by Rehana
Modified: 2021-02-08 15:40 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-08 15:40:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1566707 1 None None None 2021-01-20 06:05:38 UTC
Red Hat Bugzilla 1566708 1 None None None 2021-01-20 06:05:38 UTC

Internal Links: 1566707 1566708

Description Rehana 2018-01-30 17:40:10 UTC
Description of problem:


Version-Release number of selected component (if applicable):
subscription-manager-rhsm-certificates-1.20.9-1.el7.aarch64
subscription-manager-1.20.9-1.el7.aarch64


How reproducible:
always

Steps to Reproduce:
1.Try to register /attach a subscription on RHEL-ALT-7.5 (I have used aarch64 variant) 
2.check the rhsm.log 
3.

Actual results:
2018-01-30 12:04:17,451 [WARNING] subscription-manager-gui:12603:AsyncPoolRefreshThread @dmiinfo.py:129 - Error reading system DMI information: Permission denied to memory file/device (/dev/mem)
Permission denied to memory file/device (/dev/mem)
Permission denied to memory file/device (/dev/mem)
Permission denied to memory file/device (/dev/mem)
Permission denied to memory file/device (/dev/mem)
Permission denied to memory file/device (/dev/mem)
Permission denied to memory file/device (/dev/mem)
Permission denied to memory file/device (/dev/mem)
Permission denied to memory file/device (/dev/mem)
Permission denied to memory file/device (/dev/mem)
Permission denied to memory file/device (/dev/mem)
Permission denied to memory file/device (/dev/mem)
Permission denied to memory file/device (/dev/mem)

Expected results:
No error during reading DMI information

Additional info:

Comment 2 Kevin Howell 2018-02-01 15:30:11 UTC
Does it have any other impact aside from console output?

Comment 3 Kevin Howell 2018-02-01 15:32:26 UTC
> Does it have any other impact aside from console output?

I misread... does it have any other impact aside from log messages?

Comment 4 Rehana 2018-02-02 14:31:44 UTC
Hi Kevin,

I dont see any of the dmi facts getting collected and reported in subscription-manager fact --list.

[root@hp-moonshot-03-c42 test]#  subscription-manager facts --list | grep dmi
[root@hp-moonshot-03-c42 test]# subscription-manager facts --list
cpu.core(s)_per_socket: 8
cpu.cpu(s): 8
cpu.cpu_socket(s): 1
cpu.thread(s)_per_core: 1
cpu.topology_source: kernel /sys cpu sibling lists
distribution.id: Maipo
distribution.name: Red Hat Enterprise Linux Server
distribution.version: 7.5
distribution.version.modifier: beta
lscpu.architecture: aarch64
lscpu.bogomips: 100.00
lscpu.byte_order: Little Endian
lscpu.core(s)_per_socket: 8
lscpu.cpu(s): 8
lscpu.flags: fp asimd evtstrm cpuid
lscpu.l1d_cache: unknown size
lscpu.l1i_cache: unknown size
lscpu.l2_cache: unknown size
lscpu.model: 1
lscpu.numa_node(s): 1
lscpu.numa_node0_cpu(s): 0-7
lscpu.on-line_cpu(s)_list: 0-7
lscpu.socket(s): 1
lscpu.thread(s)_per_core: 1
memory.memtotal: 66409408
memory.swaptotal: 33488832
net.interface.eno1.ipv4_address: 10.12.0.250
net.interface.eno1.ipv4_address_list: 10.12.0.250
net.interface.eno1.ipv4_broadcast: 10.12.7.255
net.interface.eno1.ipv4_broadcast_list: 10.12.7.255
net.interface.eno1.ipv4_netmask: 21
net.interface.eno1.ipv4_netmask_list: 21
net.interface.eno1.ipv6_address.global: 2620:52:0:c00:1658:d0ff:fe58:6522
net.interface.eno1.ipv6_address.global_list: 2620:52:0:c00:1658:d0ff:fe58:6522
net.interface.eno1.ipv6_address.link: fe80::1658:d0ff:fe58:6522
net.interface.eno1.ipv6_address.link_list: fe80::1658:d0ff:fe58:6522
net.interface.eno1.ipv6_netmask.global: 64
net.interface.eno1.ipv6_netmask.global_list: 64
net.interface.eno1.ipv6_netmask.link: 64
net.interface.eno1.ipv6_netmask.link_list: 64
net.interface.eno1.mac_address: 14:58:D0:58:65:22
net.interface.eno1d1.mac_address: 14:58:D0:58:65:23
net.interface.lo.ipv4_address: 127.0.0.1
net.interface.lo.ipv4_address_list: 127.0.0.1
net.interface.lo.ipv4_broadcast: Unknown
net.interface.lo.ipv4_broadcast_list: Unknown
net.interface.lo.ipv4_netmask: 8
net.interface.lo.ipv4_netmask_list: 8
net.interface.lo.ipv6_address.host: ::1
net.interface.lo.ipv6_address.host_list: ::1
net.interface.lo.ipv6_netmask.host: 128
net.interface.lo.ipv6_netmask.host_list: 128
network.fqdn: hp-moonshot-03-c42.lab.eng.rdu.redhat.com
network.hostname: hp-moonshot-03-c42.lab.eng.rdu.redhat.com
network.ipv4_address: 10.12.0.250
network.ipv6_address: 2620:52:0:c00:1658:d0ff:fe58:6522
proc_cpuinfo.common.bogomips: 100.00
proc_cpuinfo.common.cpu_architecture: 8
proc_cpuinfo.common.cpu_implementer: 0x50
proc_cpuinfo.common.cpu_part: 0x000
proc_cpuinfo.common.cpu_revision: 1
proc_cpuinfo.common.cpu_variant: 0x0
proc_cpuinfo.common.features: fp asimd evtstrm cpuid
system.certificate_version: 3.2
system.default_locale: en_IN.UTF-8
uname.machine: aarch64
uname.nodename: hp-moonshot-03-c42.lab.eng.rdu.redhat.com
uname.release: 4.14.0-36.el7a.aarch64
uname.sysname: Linux
uname.version: #1 SMP Wed Jan 31 08:40:38 EST 2018
virt.host_type: Not Applicable
virt.is_guest: False

however i see that dmi facts are reported on a normal RHEL 7.5 x86_64 machine.

that's the only thing i could find out.

Comment 5 John Sefler 2018-02-02 18:51:45 UTC
[root@hp-moonshot-03-c43 ~]# python
Python 2.7.5 (default, Dec  8 2017, 11:45:49) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-25)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dmidecode
>>> dmidecode.get_warnings()
'/sys/firmware/efi/systab: SMBIOS entry point missing\nNo SMBIOS nor DMI entry point found, sorry.\n'
>>> dmidecode.system()
{}
>>> dmidecode.get_warnings()
'/sys/firmware/efi/systab: SMBIOS entry point missing\nNo SMBIOS nor DMI entry point found, sorry.\nPermission denied to memory file/device (/dev/mem)\nPermission denied to memory file/device (/dev/mem)\nPermission denied to memory file/device (/dev/mem)\n'
>>> quit()
[root@hp-moonshot-03-c43 ~]# 
[root@hp-moonshot-03-c43 ~]# rpm -qa | grep dmidecode
dmidecode-3.0-5.el7.aarch64
python-dmidecode-3.12.2-2.el7.aarch64


This bug should probably belong to component python-dmidecode

Comment 6 Jeff Bastian 2018-02-08 19:16:29 UTC
See bug 1509938 for the python-dmidecode problem.  The module should be trying to read /sys/firmware/dmi/* instead of the raw /dev/mem device because the raw /dev/mem device has been disabled intentionally on aarch64 (see bug 1456956).

Comment 7 Mark Langsdorf 2018-03-29 16:05:57 UTC
Moving to rhel-alt-7.6

Comment 8 Jeff Bastian 2018-04-12 20:12:27 UTC
The python-dmidecode bug was CLOSED WONTFIX with the recommendation to migrate to pure dmidecode.  Apparently the python-dmidecode upstream is not responding and it may not be maintained any longer.

Comment 10 Rehana 2021-02-08 15:40:16 UTC
We will be considering this bug in the future fr RHEL 9 https://issues.redhat.com/browse/RHELPLAN-46044 . Hence closing this bug on RHEL 7 .

thanks,
Rehana


Note You need to log in before you can comment on or make changes to this bug.