Bug 1044862 - On OpenShift Enterprise 2.0 installation, oo-diagnostics -v -w 1 complains about kernel.sem semaphores too low: 128 < 512
Summary: On OpenShift Enterprise 2.0 installation, oo-diagnostics -v -w 1 complains ab...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Containers
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Luke Meyer
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-19 06:47 UTC by Jan Pazdziora
Modified: 2014-03-21 19:33 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-21 19:33:34 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Jan Pazdziora 2013-12-19 06:47:04 UTC
Description of problem:

On a fresh all-on-one OpenShift Enterprise 2.0 installation, running oo-diagnostics -v -w 1 fails with

INFO: running oo-accept-node
[31mFAIL: run_script
oo-accept-node had errors:
--BEGIN OUTPUT--
FAIL: kernel.sem semaphores too low: 128 < 512
1 ERRORS

--END oo-accept-node OUTPUT--[0m

Version-Release number of selected component (if applicable):

Enterprise 2.0.

How reproducible:

Deterministic.

Steps to Reproduce:
1. Run ./openshift.sh to configure all on one Enterprise 2.0.
2. Run oo-diagnostics -v -w 1

Actual results:

INFO: running oo-accept-node
[31mFAIL: run_script
oo-accept-node had errors:
--BEGIN OUTPUT--
FAIL: kernel.sem semaphores too low: 128 < 512
1 ERRORS

Expected results:

No error.

Additional info:

I should point out that I've reported this issue on Origin back in June in bug 974497, it even got cloned to Enterprise product as bug 1007752 but sadly that got deferred, so this bug confirms my concern from bug 1007752 comment 4 -- the issue got to GA'ed version.

Comment 4 Luke Meyer 2013-12-19 23:00:48 UTC
That didn't use to happen. I'll have to figure out what changed.

Comment 5 Luke Meyer 2013-12-20 21:00:05 UTC
This shouldn't happen at all. When you use openshift.sh, it sets the semaphores higher, and has for as long as we've had it I think. See:

configure_sysctl_on_node()
{
  set_sysctl kernel.sem '250  32000 32  4096' 'Accomodate many httpd instances for OpenShift gears.'


Now, this doesn't take effect until system reboot (or there's a sysctl option to put it into effect). However the instructions are to reboot after install. Are you running this after a reboot or before?

Comment 6 Jan Pazdziora 2013-12-22 09:53:10 UTC
(In reply to Luke Meyer from comment #5)
> This shouldn't happen at all. When you use openshift.sh, it sets the
> semaphores higher, and has for as long as we've had it I think. See:
> 
> configure_sysctl_on_node()
> {
>   set_sysctl kernel.sem '250  32000 32  4096' 'Accomodate many httpd
> instances for OpenShift gears.'
> 
> 
> Now, this doesn't take effect until system reboot (or there's a sysctl
> option to put it into effect). However the instructions are to reboot after
> install. Are you running this after a reboot or before?

Yeah, thank you for he catch, it was the "not rebooting" thing.

I cannot reasonably reboot after installation so that was the cause of the bug. Running sysctl -p fixes the problem. I wonder if the openshift.sh could do that automatically?

Comment 8 Brenton Leanhardt 2014-03-21 19:33:34 UTC
I'm going to close this as DEFERRED.  If it ever happens it will be part of this PR: https://github.com/openshift/openshift-extras/pull/311


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