Skip to content

NDB cant add default route 'could not apply the changes' v0.6.12 #934

Closed
@carloslockward

Description

@carloslockward

NDB fails to add a default route with priority 0 with error: 'could not apply the changes'.

Exception

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/snap/iotr-cr-sysmgr/x125/lib/python3.8/site-packages/pr2modules/ndb/auth_manager.py", line 67, in guard
    return f(obj, *argv, **kwarg)
  File "/snap/iotr-cr-sysmgr/x125/lib/python3.8/site-packages/pr2modules/ndb/objects/__init__.py", line 694, in commit
    raise e_i
  File "/snap/iotr-cr-sysmgr/x125/lib/python3.8/site-packages/pr2modules/ndb/objects/__init__.py", line 683, in commit
    return self.apply(mode='commit')
  File "/snap/iotr-cr-sysmgr/x125/lib/python3.8/site-packages/pr2modules/ndb/auth_manager.py", line 67, in guard
    return f(obj, *argv, **kwarg)
  File "/snap/iotr-cr-sysmgr/x125/lib/python3.8/site-packages/pr2modules/ndb/objects/route.py", line 691, in apply
    return super(Route, self).apply(rollback, req_filter, mode)
  File "/snap/iotr-cr-sysmgr/x125/lib/python3.8/site-packages/pr2modules/ndb/auth_manager.py", line 67, in guard
    return f(obj, *argv, **kwarg)
  File "/snap/iotr-cr-sysmgr/x125/lib/python3.8/site-packages/pr2modules/ndb/objects/__init__.py", line 935, in apply
    raise Exception('could not apply the changes')
Exception: could not apply the changes

Relevant info.

I don't have concrete steps to reproduce this issue as I failed to reproduced myself on another machine. But here is the relevant info I have about the issue.

  • We add the route like ndb.routes.create(**{"dst": "default", "gateway": "10.10.2.1", "oif": 2, "priority": 0, "table": 254}).commit(), this produces the error. However, if we try creating the same route but with priority 1 it works perfectly.
  • Not including the priority has the same issue ndb.routes.create(**{"dst": "default", "gateway": "10.10.2.1", "oif": 2, "table": 254}).commit().
  • I tested this on 2 machines, and 1 failed and 1 worked. The one that failed is running Ubuntu Core with an ARM processor, the one that worked is running regular Ubuntu on an Intel processor.
  • Version 0.6.9 does not have the issue.

If you need any more info let me know.

Thanks

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

    • Status

      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions