From c5b317d3e78d3e8c5ed323199eaaa3bf650d2bcf Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Mon, 21 Aug 2017 06:02:20 +0100 Subject: [PATCH] scripts: scripts-library.sh: Do not use the '-m' option on tracepath The -m option as added 4 years ago, yet openSUSE ships an even older version so the -m option is not available there and we are seeing the followign errors: opensuse423: tracepath: invalid option -- 'm' opensuse423: Usage: tracepath [-n] [-b] [-l ] [-p port] opensuse423: tracepath6: invalid option -- 'm' opensuse423: Usage: tracepath6 [-n] [-b] [-l ] [-p port] Lets try to use tracepath without the -m option if the former fails. Link: https://github.com/iputils/iputils/commit/608419a7804caf36a359875d2fdae0b3eb181387 Change-Id: Ife7f393f484212cf520e8f1cf337ef94df2a3ba4 --- scripts/scripts-library.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/scripts-library.sh b/scripts/scripts-library.sh index 3c338ed3fc..40e7d03720 100755 --- a/scripts/scripts-library.sh +++ b/scripts/scripts-library.sh @@ -186,9 +186,9 @@ function get_instance_info { systemd-resolve --statistics && \ cat /etc/systemd/resolved.conf) > \ "/openstack/log/instance-info/host_dns_info_${TS}.log" || true - tracepath "8.8.8.8" -m 5 > \ + tracepath "8.8.8.8" -m 5 || tracepath "8.8.8.8" > \ "/openstack/log/instance-info/host_tracepath_info_${TS}.log" || true - tracepath6 "2001:4860:4860::8888" -m 5 >> \ + tracepath6 "2001:4860:4860::8888" -m 5 || tracepath6 "2001:4860:4860::8888" >> \ "/openstack/log/instance-info/host_tracepath_info_${TS}.log" || true if [ "$(which lxc-ls)" ]; then lxc-ls --fancy > \