Enlistment fails on IPv6: DataError: cannot AND inet values of different sizes

Bug #1339631 reported by Jeroen T. Vermeulen
6
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://paste.ubuntu.com/7769133/

Tags: ipv6 needs-qa

Related branches

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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.