from celery.log:
[2014-02-26 18:43:01,409: CRITICAL/MainProcess] Can't decode message body: ImproperlyConfigured('Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.',) (type:u'application/x-python-serialize' encoding:u'binary' raw:"'\\x80\\x02}q\\x01(U\\x07expiresq\\x02NU\\x03utcq\\x03\\x88U\\x04argsq\\x04]q\\x05X\\x03\\x00\\x00\\x00amtq\\x06aU\\x05chordq\\x07NU\\tcallbacksq\\x08NU\\x08errbacksq\\tNU\\x07tasksetq\\nNU\\x02idq\\x0bU$3f297762-60bb-448d-8694-ba594757d937q\\x0cU\\x07retriesq\\rK\\x00U\\x04taskq\\x0eU!provisioningserver.tasks.power_onq\\x0fU\\ttimelimitq\\x10NN\\x86U\\x03etaq\\x11NU\\x06kwargsq\\x12}q\\x13(X\\x08\\x00\\x00\\x00usernameq\\x14X\\x00\\x00\\x00\\x00X\\t\\x00\\x00\\x00ipmipowerq\\x15X\\x13\\x00\\x00\\x00/usr/sbin/ipmipowerq\\x16X\\x08\\x00\\x00\\x00ipmitoolq\\x17X\\x11\\x00\\x00\\x00/usr/bin/ipmitoolq\\x18X\\t\\x00\\x00\\x00fence_cduq\\x19X\\x13\\x00\\x00\\x00/usr/sbin/fence_cduq\\x1aX\\r\\x00\\x00\\x00power_addressq\\x1bX\\x17\\x00\\x00\\x00qemu://localhost/systemq\\x1cX\\x08\\x00\\x00\\x00power_idq\\x1dX)\\x00\\x00\\x00node-0e2f2410-9f05-11e3-86b2-00ee4c62088dq\\x1eX\\x13\\x00\\x00\\x00ipmi_chassis_configq\\x1fX\\x1d\\x00\\x00\\x00/usr/sbin/ipmi-chassis-configq... (789b)"')
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/kombu/messaging.py", line 583, in _receive_callback
decoded = None if on_m else message.decode()
File "/usr/lib/python2.7/dist-packages/kombu/message.py", line 123, in decode
self.content_encoding, accept=self.accept)
File "/usr/lib/python2.7/dist-packages/kombu/serialization.py", line 165, in loads
return decode(data)
File "/usr/lib/python2.7/dist-packages/kombu/serialization.py", line 49, in pickle_loads
return load(BytesIO(s))
File "/usr/lib/python2.7/dist-packages/maasserver/fields.py", line 31, in <module>
from django.db.models import (
File "/usr/lib/python2.7/dist-packages/django/db/models/__init__.py", line 5, in <module>
from django.db.models.query import Q
File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 17, in <module>
from django.db.models.deletion import Collector
File "/usr/lib/python2.7/dist-packages/django/db/models/deletion.py", line 4, in <module>
from django.db.models import signals, sql
File "/usr/lib/python2.7/dist-packages/django/db/models/sql/__init__.py", line 4, in <module>
from django.db.models.sql.subqueries import *
File "/usr/lib/python2.7/dist-packages/django/db/models/sql/subqueries.py", line 12, in <module>
from django.db.models.sql.query import Query
File "/usr/lib/python2.7/dist-packages/django/db/models/sql/query.py", line 22, in <module>
from django.db.models.sql import aggregates as base_aggregates_module
File "/usr/lib/python2.7/dist-packages/django/db/models/sql/aggregates.py", line 9, in <module>
ordinal_aggregate_field = IntegerField()
File "/usr/lib/python2.7/dist-packages/django/db/models/fields/__init__.py", line 116, in __init__
self.db_tablespace = db_tablespace or settings.DEFAULT_INDEX_TABLESPACE
File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 54, in __getattr__
self._setup(name)
File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 47, in _setup
% (desc, ENVIRONMENT_VARIABLE))
ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
sudo service maas-cluster-celery restart seems to fix it.
This seems to happen after I restart the celery server manually via 'sudo service maas-cluster-celery restart'.