6fc3a4c075
This will aid debugging of nova 500 errors when doing the trivial boots of cirros to validate the cloud is functional. Change-Id: Idd6d406e3a5a6ea5dd046c61c391c8f6147a9168
22 lines
700 B
YAML
22 lines
700 B
YAML
- hosts: all
|
|
tasks:
|
|
- name: Copy openstack logs
|
|
ignore_errors: yes
|
|
block:
|
|
- name: Make openstack logs dir
|
|
become: true
|
|
file:
|
|
path: /var/log/nodepool/openstack
|
|
state: directory
|
|
mode: '0755'
|
|
- name: Write out openstack logs
|
|
become: true
|
|
shell:
|
|
cmd: |
|
|
u=""
|
|
name=""
|
|
for u in $(systemctl list-unit-files | grep devstack | awk '{print $1}'); do
|
|
name=$(echo $u | sed 's/devstack@/screen-/' | sed 's/\.service//')
|
|
journalctl -o short-precise --unit $u > /var/log/nodepool/openstack/$name.txt
|
|
done
|