Skip to content

Commit abc41f8

Browse files
mnasiadkayoctozepto
authored andcommitted
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 191b46e)
1 parent d0839a3 commit abc41f8

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

tests/get_logs.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ copy_logs() {
1111
rm ${LOG_DIR}/kolla_configs/config/ironic/ironic-agent.{kernel,initramfs}
1212
mkdir ${LOG_DIR}/system_configs/
1313
cp -rL /etc/{hostname,hosts,host.conf,resolv.conf,nsswitch.conf,docker,systemd} ${LOG_DIR}/system_configs/
14+
# Remove /var/log/kolla link to not double the data uploaded
15+
unlink /var/log/kolla
1416
cp -rvnL /var/log/* ${LOG_DIR}/system_logs/
1517

1618

@@ -125,6 +127,8 @@ copy_logs() {
125127
done
126128

127129
chmod -R 777 ${LOG_DIR}
130+
131+
du -sm ${LOG_DIR}
128132
}
129133

130134
copy_logs

tests/post.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,4 @@
7272
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/ara-report/"
7373
mode: pull
7474

75-
- name: Generate HTML from ARA database
76-
command: "ara generate html {{ ansible_env.HOME }}/ara-html"
77-
environment:
78-
ARA_DATABASE: "sqlite:///{{ ansible_env.HOME }}/.ara/ansible.sqlite"
79-
80-
- name: Download ARA HTML
81-
synchronize:
82-
src: "{{ ansible_env.HOME }}/ara-html"
83-
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/ara-report/"
84-
mode: pull
85-
rsync_opts:
86-
- "--quiet"
8775
when: ara_stat_result.stat.exists

0 commit comments

Comments
 (0)