Enlistment fails on IPv6: DataError: cannot AND inet values of different sizes
Bug #1339631 reported by
Jeroen T. Vermeulen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Jeroen T. Vermeulen |
Bug Description
Newell got this error while enlisting a node on a dual-stack IPv4/IPv6 network. The failure happens in the find_nodegroup query which we predicted would have this problem. The function takes the node's IP address from an incoming HTTP request, and tries to mask it using each cluster interface's netmask.
In this situation, it seems that the HTTP request had a remote address on IPv6, but the cluster interfaces were IPv4. The "AND" operation between the IPv6 address and the IPv4 netmask leads to and SQL error.
Full traceback: http://
Related branches
lp:~jtv/maas/bug-1339631
- Graham Binns (community): Approve
-
Diff: 320 lines (+127/-93)3 files modifiedsrc/maasserver/tests/test_forms.py (+2/-2)
src/maasserver/utils/__init__.py (+39/-42)
src/maasserver/utils/tests/test_utils.py (+86/-49)
Changed in maas: | |
status: | In Progress → Fix Committed |
tags: | added: needs-qa |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.