Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1444864

Summary: ERR - _spal_get_uint64_t_file - Unable to open file "/sys/fs/cgroup/memory/memory.limit_in_bytes". errno=13
Product: Red Hat Enterprise Linux 7 Reporter: Sudhir Menon <sumenon>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: high Docs Contact:
Priority: high    
Version: 7.4CC: lvrabec, mgrepl, mmalik, nkinder, plautrba, pvrabec, rmeggins, ssekidde, tbordaz, wibrown
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-25 20:54:21 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:
Attachments:
Description Flags
ipa-server-install log
none
dirsrv error log none

Description Sudhir Menon 2017-04-24 12:56:43 UTC
Description of problem: "ERR - _spal_get_uint64_t_file - Unable to open file "/sys/fs/cgroup/memory/memory.limit_in_bytes". errno=13" seen during ipa-server-install in SELinux enforcing mode.


Version-Release number of selected component (if applicable):
ipa-server-4.5.0-7.el7.x86_64
389-ds-base-1.3.6.1-9.el7.x86_64
selinux-policy-3.13.1-144.el7.noarch

How reproducible: Always

Steps to Reproduce:
1. Install IPA server with selinux in enforcing mode
2. Check /var/log/messages file.

Actual results:
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.616269079 -0400] - INFO - main - 389-Directory/1.3.6.1 B2017.109.1947 starting up
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.634814598 -0400] - ERR - _spal_get_uint64_t_file - Unable to open file "/sys/fs/cgroup/memory/memory.soft_limit_in_bytes". errno=13
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.635648334 -0400] - WARN - spal_meminfo_get - Unable to retrieve /sys/fs/cgroup/memory/memory.soft_limit_in_bytes. There may be no cgroup support on this platform
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.636286848 -0400] - ERR - _spal_get_uint64_t_file - Unable to open file "/sys/fs/cgroup/memory/memory.limit_in_bytes". errno=13
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.636950249 -0400] - WARN - spal_meminfo_get - Unable to retrieve /sys/fs/cgroup/memory/memory.limit_in_bytes. There may be no cgroup support on this platform
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.637525300 -0400] - ERR - _spal_get_uint64_t_file - Unable to open file "/sys/fs/cgroup/memory/memory.usage_in_bytes". errno=13
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.638225466 -0400] - WARN - spal_meminfo_get - Unable to retrieve /sys/fs/cgroup/memory/memory.limit_in_bytes. There may be no cgroup support on this platform
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.639646542 -0400] - ERR - ldbm_instance_config_cachememsize_set - force a minimal value 512000
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.640399098 -0400] - ERR - _spal_get_uint64_t_file - Unable to open file "/sys/fs/cgroup/memory/memory.soft_limit_in_bytes". errno=13
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.641081226 -0400] - WARN - spal_meminfo_get - Unable to retrieve /sys/fs/cgroup/memory/memory.soft_limit_in_bytes. There may be no cgroup support on this platform
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.641775343 -0400] - ERR - _spal_get_uint64_t_file - Unable to open file "/sys/fs/cgroup/memory/memory.limit_in_bytes". errno=13
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.642610059 -0400] - WARN - spal_meminfo_get - Unable to retrieve /sys/fs/cgroup/memory/memory.limit_in_bytes. There may be no cgroup support on this platform
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.643148049 -0400] - ERR - _spal_get_uint64_t_file - Unable to open file "/sys/fs/cgroup/memory/memory.usage_in_bytes". errno=13
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.643809593 -0400] - WARN - spal_meminfo_get - Unable to retrieve /sys/fs/cgroup/memory/memory.limit_in_bytes. There may be no cgroup support on this platform
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.644632611 -0400] - ERR - _spal_get_uint64_t_file - Unable to open file "/sys/fs/cgroup/memory/memory.soft_limit_in_bytes". errno=13
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.645254793 -0400] - WARN - spal_meminfo_get - Unable to retrieve /sys/fs/cgroup/memory/memory.soft_limit_in_bytes. There may be no cgroup support on this platform
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.645778840 -0400] - ERR - _spal_get_uint64_t_file - Unable to open file "/sys/fs/cgroup/memory/memory.limit_in_bytes". errno=13
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.646482064 -0400] - WARN - spal_meminfo_get - Unable to retrieve /sys/fs/cgroup/memory/memory.limit_in_bytes. There may be no cgroup support on this platform
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.647052614 -0400] - ERR - _spal_get_uint64_t_file - Unable to open file "/sys/fs/cgroup/memory/memory.usage_in_bytes". errno=13
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.647626707 -0400] - WARN - spal_meminfo_get - Unable to retrieve /sys/fs/cgroup/memory/memory.limit_in_bytes. There may be no cgroup support on this platform
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.648333241 -0400] - ERR - _spal_get_uint64_t_file - Unable to open file "/sys/fs/cgroup/memory/memory.soft_limit_in_bytes". errno=13
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.649112101 -0400] - WARN - spal_meminfo_get - Unable to retrieve /sys/fs/cgroup/memory/memory.soft_limit_in_bytes. There may be no cgroup support on this platform
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.649728292 -0400] - ERR - _spal_get_uint64_t_file - Unable to open file "/sys/fs/cgroup/memory/memory.limit_in_bytes". errno=13
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.650290778 -0400] - WARN - spal_meminfo_get - Unable to retrieve /sys/fs/cgroup/memory/memory.limit_in_bytes. There may be no cgroup support on this platform
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.650825493 -0400] - ERR - _spal_get_uint64_t_file - Unable to open file "/sys/fs/cgroup/memory/memory.usage_in_bytes". errno=13
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.651419296 -0400] - WARN - spal_meminfo_get - Unable to retrieve /sys/fs/cgroup/memory/memory.limit_in_bytes. There may be no cgroup support on this platform
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.653203632 -0400] - ERR - _spal_get_uint64_t_file - Unable to open file "/sys/fs/cgroup/memory/memory.soft_limit_in_bytes". errno=13
Apr 24 06:42:57 localhost ns-slapd: [24/Apr/2017:06:42:57.653808284 -0400] - WARN - spal_meminfo_get - Unable to retrieve /sys/fs/cgroup/memory/memory.soft_limit_in_bytes. There may be no cgroup support on this platform


Expected results:Fix the error caused due to SELinux.

Additional info: Attaching install and dirsrv logs.

Comment 2 Sudhir Menon 2017-04-24 13:01:12 UTC
Created attachment 1273610 [details]
ipa-server-install log

Comment 3 Sudhir Menon 2017-04-24 13:02:22 UTC
Created attachment 1273611 [details]
dirsrv error log

Comment 5 mreynolds 2017-04-24 17:46:44 UTC
William, can you look into please?