Skip to content

Commit 7cad7b0

Browse files
Merge pull request #152 from jwhonce/libdm_log_level
Additional debugging logging
2 parents fc8201b + fcd7797 commit 7cad7b0

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

oct/ansible/oct/roles/docker/tasks/configure_docker_daemon_storage.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,10 @@
1212
dest: /etc/sysconfig/docker-storage-setup
1313
line: "VG={{ origin_ci_docker_volume_group }}"
1414

15+
- name: Set EXTRA_STORAGE_OPTIONS for docker-storage-setup
16+
lineinfile:
17+
dest: /etc/sysconfig/docker-storage-setup
18+
line: "EXTRA_STORAGE_OPTIONS='--storage-opt dm.libdm_log_level=3'"
19+
1520
- name: Run docker-storage-setup
1621
command: docker-storage-setup

oct/ansible/oct/roles/docker/tasks/main.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@
2121
regexp: '^ADD_REGISTRY=(.*)'
2222
line: '# ADD_REGISTRY=\1'
2323

24+
- name: log to json-file to avoid flooding journald
25+
lineinfile:
26+
backrefs: yes
27+
dest: /etc/sysconfig/docker
28+
regexp: '^OPTIONS=(.*) --log-driver=journald (.*)'
29+
line: 'OPTIONS=\1 --log-driver=json-file --log-opt max-size=50m \2'
30+
31+
- name: turn on docker daemon debugging
32+
lineinfile:
33+
backrefs: yes
34+
dest: /etc/sysconfig/docker
35+
regexp: "^OPTIONS='(.*)'"
36+
line: "OPTIONS='--debug \\1'"
37+
2438
- name: configure the OpenShift storage
2539
include: configure_openshift_storage.yml
2640

0 commit comments

Comments
 (0)