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

rule add dont work, fails on socket issue, ubuntu 18. tests fails as well #1204

Open
jkoorts opened this issue Aug 8, 2024 · 2 comments
Open
Labels

Comments

@jkoorts
Copy link

jkoorts commented Aug 8, 2024

I run my python app from command line as 'sudo python3 myapp' and I get (logged in with su gives same results):

[Errno 9] Bad file descriptor

at:

File "/usr/local/lib/python3.11/site-packages/pyroute2/netlink/rtnl/iprsocket.py", line 71, in sendto_gate
return self._sendto(msg.data, addr)

from:

ipr.rule('add',
table=self.table_id,
priority=priority,
src='100.66.2.224',
src_len=29,
action='FR_ACT_TO_TBL')

a lot of Pyroute2 tests fails with 'sudo make test'. Test report attached.

testreport.txt

@jkoorts
Copy link
Author

jkoorts commented Aug 12, 2024

Note this is on a clean installation of Centos 9 and Ubuntu 18

@jkoorts
Copy link
Author

jkoorts commented Aug 14, 2024

Just downgraded to python2.7 and used the older version of this lib and that works fine. So something not right with latest + python 3.9

@svinota svinota added the bug label Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants