Skip to content

Commit

Permalink
Set coredump pattern on node
Browse files Browse the repository at this point in the history
setting core dump pattern on node.
Closes-bug: #1783851

Change-Id: I8c66cde73f172bb09c43de9eb6fb8d7e5180f367
  • Loading branch information
aniketgawade committed Aug 9, 2018
1 parent 7857272 commit eed66aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions roles/contrail_master/tasks/main.yaml
Expand Up @@ -84,6 +84,9 @@
mode: 0777
state: directory

- name: Set core dump pattern on node
command: echo "/var/crashes/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern

- name: Create Contrail single YAML file for Contrail 4.0
template:
src: contrail-installer-4.j2
Expand Down
3 changes: 3 additions & 0 deletions roles/contrail_node/tasks/main.yaml
Expand Up @@ -28,6 +28,9 @@
when: contrail_version|int < 5
with_items: "{{ image.results }}"

- name: Set core dump pattern on node
command: echo "/var/crashes/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern

- name: Load Contrail docker images
docker_image:
name: "{{ item }}"
Expand Down

0 comments on commit eed66aa

Please sign in to comment.