Comments (5)
Thanks for the feedback, investigating
from pyroute2.
I'm also seeing this issue is there any update on a fix?
from pyroute2.
Likewise, almost any attempt to move an interface to a namespace results in this error:
ndb.interfaces.create(ifname="veth0", kind="veth", target="test-ns").commit()
ndb.interfaces.create(ifname="veth0", kind="veth", net_ns_fd="test-ns").commit()
ndb.interfaces.create(ifname="veth0", kind="veth").set("target", "test-ns").commit()
ndb.interfaces.create(ifname="veth0", kind="veth").set("net_ns_fd", "test-ns").commit()
ndb.interfaces.create(ifname="veth0", kind="veth").commit()
with ndb.interfaces["veth0"] as dev:
dev["target"] = "test-ns"
All give the same error.
from pyroute2.
A quick bit of bisecting gives this working in pyroute2 0.7.6 but failing in 0.7.7.
from pyroute2.
And a git bisect
points to 8c6421b as the offending commit. For reference, the result was produced like this:
$ cat > test.py <<EOM
import pyroute2
try:
ndb = pyroute2.NDB()
ctx = ndb.begin()
ctx.push(
ns := ndb.netns.create("test-2"),
)
ctx.push(
eth0 := ndb.interfaces.create(ifname="eth0", kind="veth", peer="eth0-1").set("target", "test-2")
)
ctx.commit()
ctx = ndb.begin()
ctx.push(ns.remove())
ctx.commit()
except:
exit(10)
exit(0)
EOM
$ python3 -m venv venv/
$ venv/bin/pip install -e .
$ git bisect start HEAD 0.7.6
$ git bisect run sudo venv/bin/python3 test.py
from pyroute2.
Related Issues (20)
- NDB: unicast FDB entry missing in NDB dump, but present in dump via IPRoute HOT 4
- How get named counter in pyroute2
- Unconditionally importing readline causes curses resize handler to break HOT 6
- source package for 0.7.11 missing on pypi HOT 2
- IPRoute decoding exceptions on linux kernel 6.6 (IFLA_INET6_ADDR_GEN_MODE) HOT 1
- NDP Route Change not properly recognized
- No longer able to rename interface after update to any version later than 0.7.6: "could not setup alt ifnames" HOT 12
- Unable to set IP6_TNL_F_IGN_ENCAP_LIMIT on ip6tnl HOT 1
- NDB Kernel not sending RTM_DELROUTE HOT 6
- Extended capabilities in iwutil scan HOT 1
- linux network namespace. commit after del_ip, will print “fail <class 'NoneType'>”
- `IPRoute2.tc` 'flow' filter buggy when in map mode
- Parse conntrack updates to structure NFCTAttrTuple or dicrinary
- Get conntrack TCP OFFLOAD entries looks broken
- lost src and src_len in ndb.routes.create
- IPRoute.flush_addr(altname='some-alt-name') does not work
- Support for `ip route save` and `ip route restore` commands
- rule add dont work, fails on socket issue, ubuntu 18. tests fails as well HOT 2
- pyroute2.netlink.exceptions.NetlinkDumpInterrupted: (-1, 'dump interrupted')
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyroute2.