From cea6a459bb6ed9b10280504d95bfcc54fa340bef Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Thu, 3 Dec 2020 14:09:25 +0200 Subject: [PATCH] Do not print btrfs error in log Btrfs error are pretty confusing while reading CI logs, while they are pretty normal to have in case provided directories are not btrfs ones While this won't be an issue for CentOS 8 which do not have btrfs binary Ubuntu would claim that provided directories are not btrfs ones or even do not exist. Change-Id: I1b932877b1dc57d065e9eebc7cbd20712515efd5 Related-Bug: #1855754 --- scripts/scripts-library.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/scripts-library.sh b/scripts/scripts-library.sh index 7f3ca887ce..9a36f1e5a4 100755 --- a/scripts/scripts-library.sh +++ b/scripts/scripts-library.sh @@ -369,13 +369,13 @@ function get_instance_info { # Storage reports for dir_name in lxc machines; do if [ "$(which btrfs)" ]; then - btrfs filesystem usage /var/lib/${dir_name} > \ + btrfs filesystem usage /var/lib/${dir_name} 2>/dev/null > \ "/openstack/log/instance-info/btrfs_${dir_name}_usage_${TS}.log" || true - btrfs filesystem show /var/lib/${dir_name} > \ + btrfs filesystem show /var/lib/${dir_name} 2>/dev/null > \ "/openstack/log/instance-info/btrfs_${dir_name}_show_${TS}.log" || true - btrfs filesystem df /var/lib/${dir_name} > \ + btrfs filesystem df /var/lib/${dir_name} 2>/dev/null > \ "/openstack/log/instance-info/btrfs_${dir_name}_df_${TS}.log" || true - btrfs qgroup show --human-readable -pcre --iec /var/lib/${dir_name} > \ + btrfs qgroup show --human-readable -pcre --iec /var/lib/${dir_name} 2>/dev/null > \ "/openstack/log/instance-info/btrfs_${dir_name}_quotas_${TS}.log" || true fi done