DeepSea icon indicating copy to clipboard operation
DeepSea copied to clipboard

net.ping no longer works

Open jan--f opened this issue 6 years ago • 3 comments

salt-run net.ping
[WARNING ] Unable to find IPv6 record for "admin" causing a 10 second timeout when rendering grains. Set the dns or /etc/hosts for IPv6 to clear this.
Exception occurred in runner net.ping: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/salt/client/mixins.py", line 395, in _low
    data['return'] = self.functions[fun](*args, **kwargs)
  File "/srv/modules/runners/net.py", line 358, in ping
    _summarize(len(addresses), results)
  File "/srv/modules/runners/net.py", line 458, in _summarize
    if results[host]['succeeded'] == total:
TypeError: string indices must be integers, not str

jan--f avatar Feb 22 '18 08:02 jan--f

Hmm, I just ran this without issue.

# salt-run net.ping
[WARNING ] Unable to find IPv6 record for "admin.ceph" causing a 10 second timeout when rendering grains. Set the dns or /etc/hosts for IPv6 to clear this.
Succeeded: 92 addresses from 23 minions average rtt 50.34 ms

swiftgist avatar Mar 01 '18 18:03 swiftgist

If I remember right we had this problem on a system that does not have ipv6 enabled at all. So could this be fixed also without adding ipv6 to dns and hosts?

Am 01.03.2018 um 19:44 schrieb Eric Jackson [email protected]:

Hmm, I just ran this without issue.

salt-run net.ping

[WARNING ] Unable to find IPv6 record for "admin.ceph" causing a 10 second timeout when rendering grains. Set the dns or /etc/hosts for IPv6 to clear this. Succeeded: 92 addresses from 23 minions average rtt 50.34 ms — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Martin-Weiss avatar Mar 02 '18 07:03 Martin-Weiss

i have the same issue on a debian-9 host. First i had to install python-netaddr inorder for the module to function at all and now i have the same issue as mentioned in the inital message of this bug report.

IPv6 is enabled: 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 52:54:00:06:90:3a brd ff:ff:ff:ff:ff:ff inet 192.168.122.196/24 brd 192.168.122.255 scope global ens3 valid_lft forever preferred_lft forever inet6 fe80::5054:ff:fe06:903a/64 scope link valid_lft forever preferred_lft forever

lordfolken avatar Jan 15 '19 21:01 lordfolken