Skip to content

[action] [PR:19054] [add-topo] Set kernel.pty.max to 8192#19087

Merged
mssonicbld merged 1 commit intosonic-net:202505from
mssonicbld:cherry/202505/19054
Jun 19, 2025
Merged

[action] [PR:19054] [add-topo] Set kernel.pty.max to 8192#19087
mssonicbld merged 1 commit intosonic-net:202505from
mssonicbld:cherry/202505/19054

Conversation

@mssonicbld
Copy link
Collaborator

Description of PR

Summary:
When deploying thousands of ceos and net containers on server, we see below failure due to PTY resource restriction.

Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: open /dev/ptmx: no space left on device: unknown

The kernel.pty.max default value is 4096.

To solve this issue, set kernel.pty.max to 8192 in add-topo ansible-playbook.

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
  • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Approach

What is the motivation for this PR?

Support deploy thousands of ceos/net containers on a single server.

How did you do it?

Set kernel.pty.max to 8192 in add-topo ansible-playbook.

How did you verify/test it?

Verified by deploy physical testbed.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

What is the motivation for this PR?
Support deploy thousands of ceos/net containers on a single server.

How did you do it?
Set kernel.pty.max to 8192 in add-topo ansible-playbook.

How did you verify/test it?
Verified by deploy physical testbed.
@mssonicbld
Copy link
Collaborator Author

Original PR: #19054

@mssonicbld
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit 7d5634b into sonic-net:202505 Jun 19, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants