Same as bug p4lang/p4factory issue 193
Error log
File "/xxx/ntf/docker/docker_node.py", line 145, in startShell
self.pid = int(ps_out[0])
ValueError: invalid literal for int() with base 10: "'21431'\n"
Reason
docker_node.py, L145 self.pid = int(ps_out[0]), ps_out[0] is not a pure decimal string, but also including a \n which should be strip first.
Solution
change docker_node.py L145 to:
self.pid = int((ps_out[0].strip()).strip('\''))
System Information
sunyongfeng ~ cat /etc/issue
Ubuntu 16.04 LTS \n \l
sunyongfeng ~ uname -a
Linux openswitch-OptiPlex-380 3.19.8-031908-generic #201505110938 SMP Mon May 11 13:39:59 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Same as bug p4lang/p4factory issue 193
Error log
Reason
docker_node.py, L145
self.pid = int(ps_out[0]), ps_out[0] is not a pure decimal string, but also including a\nwhich should be strip first.Solution
change docker_node.py L145 to:
System Information