Comment 1 for bug 1485584

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Looking at it myself, I found this out:

On /usr/lib/python2.7/dist-packages/maasserver/models/macaddress.py line 331, I changed:

interface = get_one(PhysicalInterface.objects.filter(mac=self))

For

interface = PhysicalInterface.objects.filter(mac=self)

And trying to reploy, I'd get (on regiond.log):
            update_host_maps=update_host_maps)
          File "/usr/lib/python2.7/dist-packages/maasserver/models/macaddress.py", line 334, in claim_static_ips
            return interface.claim_static_ips(
        exceptions.AttributeError: 'QuerySet' object has no attribute 'claim_static_ips'

and on maas.log:

Aug 17 20:34:17 trusty-maas9 maas.macaddress: [ERROR] [<PhysicalInterface: name=eth0, type=physical, mac=74:d4:35:89:b9:cd>, <PhysicalInterface:
 name=eth0, type=physical, mac=74:d4:35:89:b9:cd>, <PhysicalInterface: name=eth0, type=physical, mac=74:d4:35:89:b9:cd>, <PhysicalInterface: nam
e=eth0, type=physical, mac=74:d4:35:89:b9:cd>]

The big question, why would it return multiple eth0's since there's only one interface per node, or per that specific mac.