LXD not getting IP address, MAAS 2.2b3 throwing django.db.utils.IntegrityError and AssertionError

Bug #1673204 reported by Krzysztof Klimonda
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Gavin Panella

Bug Description

It's a brand-new MAAS 2.2b3 installation, and I'm deploying OpenStack cluster with Juju. It just threw django.db.utils.IntegrityError: duplicate key value violates unique constraint "maasserver_staticipaddress_ip_key", and later AssertionError: Retry context not active. (see attached file), with the result being lxd not receiving IP.

Related branches

Revision history for this message
Krzysztof Klimonda (kklimonda) wrote :
Gavin Panella (allenap)
Changed in maas:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Gavin Panella (allenap)
Revision history for this message
Gavin Panella (allenap) wrote :

I've been puzzled by the "Retry context not active" failures... until I remembered that we have a separate transactional retry arrangement for web requests. It's composed of the same parts but ended up quite a lot more convoluted because Django says it understands transactions but doesn't really, and its web request machinery is not composed in a way that makes it easy to teach it. Anyway, when I added the retry stack in m.utils.orm I forgot about the web request code — my sanity trying to protect itself — and I didn't add the retry stack there. Time to fix that.

Changed in maas:
status: In Progress → Fix Committed
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.