Circular import breaks when maas is run in a wsgi container.

Bug #985106 reported by Raphaël Badin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Raphaël Badin

Bug Description

When MAAS is run in a WSGI container (apache), it breaks with http://pastebin.ubuntu.com/935735/.

This is due to the recently introduced import "from maasserver.provisioning import check_profiles" in src/maasserver/middleware.py. This file (middleware.py) is imported by Django and this definitely looks like a circular import problem. Note that this only happens in wsgi mode (not on a dev instance).

Related branches

Raphaël Badin (rvb)
Changed in maas:
status: In Progress → 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.