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

Reported by Raphaël Badin on 2012-04-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
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) on 2012-04-18
Changed in maas:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers