Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add task to save coredumps in hypervisor nodes #104

Merged
merged 1 commit into from
Mar 8, 2017

Conversation

KKoukiou
Copy link
Collaborator

@KKoukiou KKoukiou commented Mar 6, 2017

No description provided.

@KKoukiou
Copy link
Collaborator Author

KKoukiou commented Mar 6, 2017

Wanted to add tag for this task so that it can be skippped on demand, but since the I83 is general I left it to be adjusted with the rest of the code.

@KKoukiou KKoukiou changed the title Add task to dump coredump in hypervisor nodes Add task to save coredump logs in hypervisor nodes Mar 6, 2017
@KKoukiou
Copy link
Collaborator Author

KKoukiou commented Mar 6, 2017

Looks like that in rhel and rhev-h machines coredumps are under /var/log/core

cat /proc/sys/kernel/core_pattern 
/var/log/core/core.%p.%t.dump

But this can be changed by user. Do we want to patameterize the coredump path?

@KKoukiou KKoukiou changed the title Add task to save coredump logs in hypervisor nodes Add task to save coredumps in hypervisor nodes Mar 6, 2017
@KKoukiou
Copy link
Collaborator Author

KKoukiou commented Mar 6, 2017

Added the head -n 1 after parsing dirpath because I got some redundant new lines else:
ex:

[kkoukiou@katerina ovirt-ansible]$ cat /proc/sys/kernel/core_pattern | xargs dirname 
|/usr/libexec
.
.
.
.
.
.
.
.
[kkoukiou@katerina ovirt-ansible]$ cat /proc/sys/kernel/core_pattern 
|/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t %P %I

@lukas-bednar lukas-bednar added this to the 0.1.2 milestone Mar 8, 2017
@lukas-bednar lukas-bednar added this to In Progress in all-in-one Mar 8, 2017
@lukas-bednar lukas-bednar merged commit bbfe2b8 into rhevm-qe-automation:master Mar 8, 2017
@lukas-bednar lukas-bednar moved this from In Progress to Done in all-in-one Mar 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants