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 <len>] [-p port] <destination>
opensuse423: tracepath6: invalid option -- 'm'
opensuse423: Usage: tracepath6 [-n] [-b] [-l <len>] [-p port] <destination>

Lets try to use tracepath without the -m option if the former fails.

Link: 608419a780
Change-Id: Ife7f393f484212cf520e8f1cf337ef94df2a3ba4
This commit is contained in:
Markos Chandras 2017-08-21 06:02:20 +01:00 committed by Kevin Carter (cloudnull)
parent c1de95dcac
commit c5b317d3e7

View File

@ -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 > \