Skip to content
Snippets Groups Projects
Commit 3c5e0f9f authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Reduce number of logs and disable ara HTML report"

parents c2360f54 191b46ef
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,8 @@ copy_logs() { ...@@ -11,6 +11,8 @@ copy_logs() {
rm ${LOG_DIR}/kolla_configs/config/ironic/ironic-agent.{kernel,initramfs} rm ${LOG_DIR}/kolla_configs/config/ironic/ironic-agent.{kernel,initramfs}
mkdir ${LOG_DIR}/system_configs/ mkdir ${LOG_DIR}/system_configs/
cp -rL /etc/{hostname,hosts,host.conf,resolv.conf,nsswitch.conf,docker,systemd} ${LOG_DIR}/system_configs/ cp -rL /etc/{hostname,hosts,host.conf,resolv.conf,nsswitch.conf,docker,systemd} ${LOG_DIR}/system_configs/
# Remove /var/log/kolla link to not double the data uploaded
unlink /var/log/kolla
cp -rvnL /var/log/* ${LOG_DIR}/system_logs/ cp -rvnL /var/log/* ${LOG_DIR}/system_logs/
...@@ -120,6 +122,8 @@ copy_logs() { ...@@ -120,6 +122,8 @@ copy_logs() {
done done
chmod -R 777 ${LOG_DIR} chmod -R 777 ${LOG_DIR}
du -sm ${LOG_DIR}
} }
copy_logs copy_logs
...@@ -72,16 +72,4 @@ ...@@ -72,16 +72,4 @@
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/ara-report/" dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/ara-report/"
mode: pull mode: pull
- name: Generate HTML from ARA database
command: "ara generate html {{ ansible_env.HOME }}/ara-html"
environment:
ARA_DATABASE: "sqlite:///{{ ansible_env.HOME }}/.ara/ansible.sqlite"
- name: Download ARA HTML
synchronize:
src: "{{ ansible_env.HOME }}/ara-html"
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/ara-report/"
mode: pull
rsync_opts:
- "--quiet"
when: ara_stat_result.stat.exists when: ara_stat_result.stat.exists
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment