Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

network.traceroute fails with "list index out of range" traceback on OSX (Darwin) #4927

Closed
netllama opened this issue May 8, 2013 · 2 comments
Assignees
Labels
Bug broken, incorrect, or confusing behavior help-wanted Community help is needed to resolve this

Comments

@netllama
Copy link

netllama commented May 8, 2013

Trying to call network.traceroute on an OSX (Darwin) minion fails with a Traceback:

$ salt '_' network.traceroute cuda-fs1
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/salt/minion.py", line 428, in _thread_return
ret['return'] = func(_args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/salt/modules/network.py", line 291, in traceroute
traceroute_version = re.findall('version (\d+).(\d+).(\d+)', out2)[0]
IndexError: list index out of range

Same exact thing works for Windows & Linux minions. Master is running 0.14.1.

@basepi
Copy link
Contributor

basepi commented May 10, 2013

I think this just needs an OSX-specific implementation. Thanks!

@cvrebert
Copy link
Contributor

FreeBSD's & OS X Lion's traceroute don't accept the --version option or offer any analogous option.

@ghost ghost assigned cro Nov 6, 2013
@cro cro closed this as completed in 6a4eaef Nov 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior help-wanted Community help is needed to resolve this
Projects
None yet
Development

No branches or pull requests

4 participants