Add additional checks for nginx
Validate nginx service is running and also collect some logs. Change-Id: I3d3daf0344d978cf72ea171e84e3f1439725d990 Depends-On: https://review.openstack.org/648850 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
1718c834c5
commit
bdc5925121
|
@ -30,3 +30,10 @@
|
|||
when: zuul_service_zuul_web_state in ['reloaded', 'restarted', 'started']
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
||||
- name: Ensure nginx is running
|
||||
become: true
|
||||
shell: /usr/sbin/service nginx status
|
||||
changed_when: false
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
|
|
@ -211,6 +211,7 @@
|
|||
args:
|
||||
creates: "{{ zuul_output_dir }}/logs/logs/{{ inventory_hostname }}/var/log/journal/{{ item }}.service.log"
|
||||
with_items:
|
||||
- nginx
|
||||
- zuul-web
|
||||
|
||||
- name: Collect zuul-web log files
|
||||
|
@ -226,5 +227,7 @@
|
|||
with_items:
|
||||
- /etc/zuul/web-logging.conf
|
||||
- /etc/zuul/zuul.conf
|
||||
- /var/log/nginx/access.log
|
||||
- /var/log/nginx/error.log
|
||||
- /var/log/zuul/web-debug.log
|
||||
- /var/log/zuul/web.log
|
||||
|
|
Loading…
Reference in New Issue