diff options
author | Tim Rozet <trozet@redhat.com> | 2017-11-27 15:22:25 -0500 |
---|---|---|
committer | Tim Rozet <trozet@redhat.com> | 2018-04-04 16:03:49 -0400 |
commit | 382fa452e0c9a8189911f615416e1b24badaf5e4 (patch) | |
tree | 41973e70a7b054b4a2297bb45918430c0614c9ee /lib/ansible/playbooks/fetch_overcloud_logs.yml | |
parent | b047099b609eac330486f23913e8046d0f22c1ab (diff) |
Adds the ability to fetch logs from deployment
Usage:
opnfv-pyutil --fetch-logs
python3 utils.py --fetch-logs --lib-dir ../lib
Eventually all utils.sh functions will be migrated here.
Note there is no support here for containers. Will be
added later.
Change-Id: I223b8592ad09e0370e287ee2801072db31f9aa12
Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'lib/ansible/playbooks/fetch_overcloud_logs.yml')
-rw-r--r-- | lib/ansible/playbooks/fetch_overcloud_logs.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/ansible/playbooks/fetch_overcloud_logs.yml b/lib/ansible/playbooks/fetch_overcloud_logs.yml new file mode 100644 index 00000000..1ab52475 --- /dev/null +++ b/lib/ansible/playbooks/fetch_overcloud_logs.yml @@ -0,0 +1,25 @@ +--- +- hosts: all + tasks: + - name: Archive logs + archive: + path: + - /var/log + - /etc/puppet + - /etc/nova + - /etc/neutron + - /etc/heat + - /etc/haproxy + - /etc/glance + - /etc/puppet + - /etc/vpp + - /etc/os-net-config + - /opt/opendaylight/data/log + - /opt/opendaylight/etc + dest: /root/logging.tar.gz + become: yes + - name: Fetch /var/log/ + fetch: + src: /root/logging.tar.gz + dest: "{{ apex_temp_dir }}/" + become: yes |