adoptium / adoptium/infrastructure
Ansible request for Linux core settings on docker test hosts
- Dominant language
- Python
- Stars
- 96
- Forks
- 106
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 12
Description
Please put the name of the software product (and affected platforms if relevant) in the title of this issue
- [x] Missing install
- [ ] Bug in ansible playbook
- [x] Request for new playbook addition
Details: The default setting in `/proc/sys/kernel/core_pattern` on Ubuntu is to have it set to `|/usr/share/apport/apport %p %s %c %d %P %E`. This prevents processes dumping core in docker by default. A fix is to set it to `core` which appears to cause the behavior we want. We should probably understand the implications and any side effects of doing this before implementing it, but it gives us a viable solution that I've implemented on three machines I've been experimenting with as part of https://github.com/AdoptOpenJDK/openjdk-infrastructure/issues/1809 (test-ibmcloud-ubuntu1604-x64-1, test-packet-ubuntu1804-armv8-1, and the new 20.04 host I'm working with)
If added to the playbooks it will need to be done in a way that persists across reboots (what I've done on the two referenced machines will not at the moment, so it will get lost if they are restarted)
Contributor guide
Research direction
Start by reviewing the Ansible playbooks for the listed Ubuntu Docker test hosts and the current behavior of /proc/sys/kernel/core_pattern. Confirm the implications and side effects of setting it to core, then make the configuration persist across reboots. Done means the setting is applied consistently to the referenced hosts and core dumps work as intended after restart.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ansible, docker, linux, ubuntu
- Domain
- devops, infrastructure, operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100