From 4ef6e59ef582e3e492ba0aa16d6f9698c8be1d5b Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Thu, 16 Sep 2021 10:44:43 +0200 Subject: [PATCH] CI: Remove IPA images from saved /etc/kolla This saves 156MB of storage in each CentOS job on the master branch. Backport note: ironic-ipxe is Xena only. Storage space saved on Wallaby and older will be about half (varies depending on Linux distribution and OpenStack release). Change-Id: Icb3569bc764435127a00ee15583c6f3e4e598eca --- roles/kayobe-diagnostics/files/get_logs.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/kayobe-diagnostics/files/get_logs.sh b/roles/kayobe-diagnostics/files/get_logs.sh index 7d955d428..d07f8680a 100644 --- a/roles/kayobe-diagnostics/files/get_logs.sh +++ b/roles/kayobe-diagnostics/files/get_logs.sh @@ -20,6 +20,8 @@ copy_logs() { # Don't save the IPA images. rm ${LOG_DIR}/kayobe_configs/kolla/config/ironic/ironic-agent.{kernel,initramfs} rm ${LOG_DIR}/kolla_configs/config/ironic/ironic-agent.{kernel,initramfs} + rm ${LOG_DIR}/kolla_node_configs/ironic-ipxe/ironic-agent.{kernel,initramfs} + rm ${LOG_DIR}/kolla_node_configs/ironic-pxe/ironic-agent.{kernel,initramfs} fi if [[ -n ${PREVIOUS_CONFIG_DIR} ]] && [[ -d ${PREVIOUS_CONFIG_DIR} ]]; then mkdir -p ${LOG_DIR}/previous_{kayobe,kolla}_configs