P4

请教P4D2_2017/exercises/mri用例执行报错问题


环境信息
Ubuntu 14.04, 64bit

执行步骤

$ cd P4D2_2017/exercises/mri
$ ./run.sh
Error Details

The step ./run.sh raised the error OSError: [Errno 2] No such file or directory:

Entering build directory.
Extracting package.
Reading package manifest.

p4c-bm2-ss --p4v 16 "mri.p4" -o "mri.p4.json"
*** Log directory /home/wasdns/tutorials/P4D2_2017/exercises/mri/build/logs
*** Pcap directory /home/wasdns/tutorials/P4D2_2017/exercises/mri/build
python2 "/home/wasdns/tutorials/P4D2_2017/utils/mininet/multi_switch_mininet.py" --log-dir "/home/wasdns/tutorials/P4D2_2017/exercises/mri/build/logs" --manifest "./p4app.json" --target "multiswitch" --auto-control-plane --behavioral-exe "simple_switch" --json "mri.p4.json" --cli-message "mininet_message.txt"
*** Creating network
*** Adding hosts:
h1 h2 h3
*** Adding switches:
s1 s2 s3
*** Adding links:
Traceback (most recent call last):
File "/home/wasdns/tutorials/P4D2_2017/utils/mininet/multi_switch_mininet.py", line 242, in <module>
main()
File "/home/wasdns/tutorials/P4D2_2017/utils/mininet/multi_switch_mininet.py", line 145, in main
controller = None)
File "/usr/lib/python2.7/dist-packages/mininet/net.py", line 164, in __init__
self.build()
File "/usr/lib/python2.7/dist-packages/mininet/net.py", line 357, in build
self.buildFromTopo( self.topo )
File "/usr/lib/python2.7/dist-packages/mininet/net.py", line 344, in buildFromTopo
self.addLink( src, dst, srcPort, dstPort, **params )
File "/usr/lib/python2.7/dist-packages/mininet/net.py", line 287, in addLink
return cls( node1, node2, **defaults )
File "/usr/lib/python2.7/dist-packages/mininet/link.py", line 400, in __init__
params2=params)
File "/usr/lib/python2.7/dist-packages/mininet/link.py", line 350, in __init__
self.makeIntfPair( intfName1, intfName2 )
File "/usr/lib/python2.7/dist-packages/mininet/link.py", line 381, in makeIntfPair
makeIntfPair( intf1, intf2 )
File "/usr/lib/python2.7/dist-packages/mininet/util.py", line 154, in makeIntfPair
quietRun( 'ip link del ' + intf1 )
File "/usr/lib/python2.7/dist-packages/mininet/util.py", line 117, in quietRun
return errRun( cmd, stderr=STDOUT, **kwargs )[ 0 ]
File "/usr/lib/python2.7/dist-packages/mininet/util.py", line 77, in errRun
popen = Popen( cmd, stdout=PIPE, stderr=stderr, shell=shell )
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
已邀请:

adamas

赞同来自:


可能是Mininet异常退出导致的,执行下面命令试下
$ sudo mn -c

Wasdns

赞同来自:


我也遇到了相同的问题,可以参考之前在Github上的一个issue:github.com/p4lang/tutorials/issues/31,目前我还没有跑成功。

要回复问题请先登录注册