Merge "Collect services statuses in logs"

This commit is contained in:
Zuul 2019-03-22 12:49:21 +00:00 committed by Gerrit Code Review
commit 0dbf167cdc
1 changed files with 6 additions and 1 deletions

View File

@ -48,7 +48,7 @@
- name: Collect logs from all failed systemd services
shell: >
systemctl -t service --failed --no-legend | awk '{print $1}'
| xargs -r -n1 journalctl -u > /var/log/extra/services.txt 2>&1
| xargs -r -n1 journalctl -u > /var/log/extra/failed_services.txt 2>&1
- name: Collect network status info
shell: >
@ -128,6 +128,11 @@
- name: lvm debug
shell: "(vgs; pvs; lvs) &> /var/log/extra/lvm.txt"
- name: Collect services status
shell: |
systemctl list-units --full --all &> /var/log/extra/services.txt
systemctl status "*" &>> /var/log/extra/services.txt
- name: check if ODL is enabled via docker
shell: docker ps | grep opendaylight_api
register: odl_container_enabled