Skip to content

NDB lost sync in apply() trying to set GRE tunnel configs #878

Open
@carloslockward

Description

@carloslockward

I found this issue while trying to change the configuration of an existing GRE(or any other kind) tunnel using pyroute2 version 0.6.5

Exception

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/snap/iotr-cr-sysmgr/x2/lib/python3.8/site-packages/pr2modules/ndb/auth_manager.py", line 69, in guard
    return f(obj, *argv, **kwarg)
  File "/snap/iotr-cr-sysmgr/x2/lib/python3.8/site-packages/pr2modules/ndb/objects/__init__.py", line 676, in commit
    self.apply()
  File "/snap/iotr-cr-sysmgr/x2/lib/python3.8/site-packages/pr2modules/ndb/auth_manager.py", line 69, in guard
    return f(obj, *argv, **kwarg)
  File "/snap/iotr-cr-sysmgr/x2/lib/python3.8/site-packages/pr2modules/ndb/objects/interface.py", line 702, in apply
    super(Interface, self).apply(rollback, req_filter)
  File "/snap/iotr-cr-sysmgr/x2/lib/python3.8/site-packages/pr2modules/ndb/auth_manager.py", line 69, in guard
    return f(obj, *argv, **kwarg)
  File "/snap/iotr-cr-sysmgr/x2/lib/python3.8/site-packages/pr2modules/ndb/objects/__init__.py", line 892, in apply
    raise Exception('lost sync in apply()')
Exception: lost sync in apply()

Steps to reproduce

  1. Create a GRE tunnel ip.link("add", ifname="testtun", kind="gre", gre_local="10.10.10.2", gre_remote="10.10.100.3", gre_ttl=254)
  2. Try to change it with NDB ndb.interfaces["testtun"].set("gre_local", "10.10.10.3").commit()

Notes

I also tried to change the tunnel using these commands but they didn't work(didn't throw an exception but value was not changed):

  • ip.link("update", index=31, IFLA_GRE_LOCAL="10.10.10.3")
  • ip.link("set", index=31, IFLA_GRE_LOCAL="10.10.10.3")

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions