[Maas-devel] "Static IP Address with this Ip already exists." with 1.6+bzr2496
Julian Edwards
julian.edwards at canonical.com
Mon Jul 7 07:24:42 UTC 2014
On 07/07/14 15:05, Julian Edwards wrote:
> On 07/07/14 12:58, Julian Edwards wrote:
>>> It doesn't matter anymore, since a simple bootstrap + deploy reproduces
>>> it for me.
>>
>> Can you give me the exact commands you're running please and I'll copy
>> here. Also can you let me know exactly how your cluster interface is
>> configured (a screenshot will suffice).
>
> Right I just re-created this in a test harness, Django appears to be
> doing something very odd:
>
>
> (Pdb) self.all()
> [<StaticIPAddress: <StaticIPAddress: <10.0.0.96:type=AUTO>>>]
> (Pdb) self.filter(ip__gte=range_low, ip__lte=range_high)
> []
> (Pdb) range_low
> '10.0.0.1'
> (Pdb) range_high
> '10.0.0.255'
>
> The failure of the filter leaves the same IP open to re-assignment.
>
Ok got to the bottom of this:
https://bugs.launchpad.net/maas/+bug/1338452
It's a Django bug, we'll need to use cursors when using > and <
operators with IP addresses.
More information about the Maas-devel
mailing list