From ee88d4d46ed47076ac0d2f1d96975d157da914b3 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 26 Dec 2024 18:52:02 +0900 Subject: [PATCH] Capture full syslog file ... so that we can review logs from the other middleware. Change-Id: I3eaaf263056bfe756c5b5de5aaa210c56b2f3669 --- playbooks/storlets-functional/post.yaml | 41 ++++++------------------- 1 file changed, 10 insertions(+), 31 deletions(-) diff --git a/playbooks/storlets-functional/post.yaml b/playbooks/storlets-functional/post.yaml index 30a5f6e1..59abf7ae 100644 --- a/playbooks/storlets-functional/post.yaml +++ b/playbooks/storlets-functional/post.yaml @@ -7,46 +7,25 @@ state: directory - name: Prepare the logs into user space (Ubuntu) - shell: "egrep {{ item }} /var/log/syslog > {{ zuul.project.src_dir }}/logs/{{ item }}.log" - with_items: - - "account-server" - - "container-server" - - "object-server" - - "proxy-server" - - "ansible" - - "storlets-daemon" - - "daemon-factory" + copy: + src: /var/log/syslog + dest: "{{ zuul.project.src_dir }}/logs/syslog.log" + mode: 0644 + remote_src: yes become: yes when: - ansible_os_family == 'Debian' - name: Prepare the logs into user space (CentOS) - shell: "egrep {{ item }} /var/log/messages > {{ zuul.project.src_dir }}/logs/{{ item }}.log" - with_items: - - "account-server" - - "container-server" - - "object-server" - - "proxy-server" - - "ansible" - - "storlets-daemon" - - "daemon-factory" + copy: + src: /var/log/messages + dest: "{{ zuul.project.src_dir }}/logs/syslog.log" + mode: 0644 + remote_src: yes become: yes when: - ansible_os_family == 'RedHat' - - name: Change log permisson as readable - file: - path: "{{ zuul.project.src_dir }}/logs/{{ item }}.log" - mode: 0644 - with_items: - - "account-server" - - "container-server" - - "object-server" - - "proxy-server" - - "ansible" - - "storlets-daemon" - - "daemon-factory" - - name: Copy logs from worker nodes to executor node synchronize: # TODO: make it sort of tox_envdir