Reduce number of logs and disable ara HTML report

- Remove /var/log/kolla link to omit uploading the same logs twice
- Remove ARA HTML report (usually takes around 120MB) - can be easily
  generated from the sqlite db

Change-Id: I74cd6d1128689ab2c73f00ee08af3778d7d670a4
(cherry picked from commit 191b46ef40)
This commit is contained in:
Michał Nasiadka 2021-02-25 19:16:04 +01:00 committed by Radosław Piliszek
parent d0839a3cb1
commit abc41f86d9
2 changed files with 4 additions and 12 deletions

View File

@ -11,6 +11,8 @@ copy_logs() {
rm ${LOG_DIR}/kolla_configs/config/ironic/ironic-agent.{kernel,initramfs}
mkdir ${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/
@ -125,6 +127,8 @@ copy_logs() {
done
chmod -R 777 ${LOG_DIR}
du -sm ${LOG_DIR}
}
copy_logs

View File

@ -72,16 +72,4 @@
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/ara-report/"
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