Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

Add support for automatically collecting and uploading core dumps #31

Open
jlebon opened this issue Mar 15, 2017 · 2 comments
Open

Add support for automatically collecting and uploading core dumps #31

jlebon opened this issue Mar 15, 2017 · 2 comments

Comments

@jlebon
Copy link
Collaborator

jlebon commented Mar 15, 2017

E.g. a collect-cores key?
This would require different approaches depending on the environment:

  • Virtualized: enable core dumping to e.g. /var/tmp/coredumps during provisioning, and just upload all the cores found at the end of the test run.

  • Containerized: in this scenario, rhci itself is running either in a privileged container or directly on the host. Either way, it should be able to write to core_pattern. One issue is linking back core dumps with the right container/test run for upload. Maybe we should just make our own |/usr/bin/rhci-coredump %p handler and teach it to cross link PIDs with containers? Though not sure how that would work if rhci itself is containerized. Relying on just the PID in the final core dump name would have races.

We would also need to upload the binaries, of course. Maybe we can start with a limit of 10 MB total (for core + binaries) and see how useful it is.

@cgwalters
Copy link
Member

See also https://lists.projectatomic.io/projectatomic-archives/atomic-devel/2016-September/msg00044.html

This type of thing is exactly why I think we should be trying to use Kube/OpenShift as our backend, since any improvements we make for core collection in CI testing will also apply to production workloads.

@jlebon
Copy link
Collaborator Author

jlebon commented Mar 22, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants