Starting MAAS RC service

asked 2014-01-08 10:21:12 -0500

jh gravatar image

After a power outage our OpenStack installation went down. First step is trying to get MAAS back up and running, but I'm having trouble doing just that. The RC and the CC are running and can communcation (have network).

In my understanding the MAAS Region Controller API runs as a Django application via WSGI on Apache. Apache runs, but fails on loading the MAAS WSGI script (/usr/share/maas/wsgi.py). Hence the service and the API is never started. RabbitMQ and other services seem to be running on the RC. I have also tried to do:

dpkg-reconfigure maas-region-controller

without any success.

The log below can be found in /var/log/apache/error.log.

Any ideas what I can try?

[Wed Jan 08 11:01:06.312804 2014] [mpm_event:notice] [pid 5725:tid 139810242742144] AH00491: caught SIGTERM, shutting down
[Wed Jan 08 11:01:06.326364 2014] [:error] [pid 5728:tid 139810242742144] mod_wsgi (pid=5728): Target WSGI script '/usr/share/maas/wsgi.py' cannot be loaded as Python module.
[Wed Jan 08 11:01:06.326607 2014] [:error] [pid 5728:tid 139810242742144] mod_wsgi (pid=5728): Exception occurred processing WSGI script '/usr/share/maas/wsgi.py'.
[Wed Jan 08 11:01:06.326846 2014] [:error] [pid 5728:tid 139810242742144] Traceback (most recent call last):
[Wed Jan 08 11:01:06.327054 2014] [:error] [pid 5728:tid 139810242742144]   File "/usr/share/maas/wsgi.py", line 32, in <module>
[Wed Jan 08 11:01:06.327424 2014] [:error] [pid 5728:tid 139810242742144]     start_up()
[Wed Jan 08 11:01:06.327611 2014] [:error] [pid 5728:tid 139810242742144]   File "/usr/lib/python2.7/dist-packages/maasserver/start_up.py", line 70, in start_up
[Wed Jan 08 11:01:06.327934 2014] [:error] [pid 5728:tid 139810242742144]     post_start_up()
[Wed Jan 08 11:01:06.328109 2014] [:error] [pid 5728:tid 139810242742144]   File "/usr/lib/python2.7/dist-packages/maasserver/start_up.py", line 110, in post_start_up
[Wed Jan 08 11:01:06.328320 2014] [:error] [pid 5728:tid 139810242742144]     NodeGroup.objects.refresh_workers()
[Wed Jan 08 11:01:06.328491 2014] [:error] [pid 5728:tid 139810242742144]   File "/usr/lib/python2.7/dist-packages/maasserver/models/nodegroup.py", line 116, in refresh_workers
[Wed Jan 08 11:01:06.328908 2014] [:error] [pid 5728:tid 139810242742144]     refresh_worker(nodegroup)
[Wed Jan 08 11:01:06.329456 2014] [:error] [pid 5727:tid 139810242742144] mod_wsgi (pid=5727): Target WSGI script '/usr/share/maas/wsgi.py' cannot be loaded as Python module.
[Wed Jan 08 11:01:06.329662 2014] [:error] [pid 5727:tid 139810242742144] mod_wsgi (pid=5727): Exception occurred processing WSGI script '/usr/share/maas/wsgi.py'.
[Wed Jan 08 11:01:06.329879 2014] [:error] [pid 5727:tid 139810242742144] Traceback (most recent call last):
[Wed Jan 08 11:01:06.330074 2014] [:error] [pid 5727:tid 139810242742144]   File "/usr/share/maas/wsgi.py", line 32, in <module>
[Wed Jan 08 11:01:06.330389 2014] [:error] [pid 5727:tid 139810242742144]     start_up()
[Wed Jan 08 11:01:06.330567 2014] [:error] [pid 5727:tid 139810242742144]   File ...
(more)
edit retag flag offensive close delete

Comments

I'm not sure if AskUbuntu.com might be a better place to ask questions about MAAS. I put the question there as well: http://askubuntu.com/questions/402311/starting-maas-regional-controller-service-and-api

jh ( 2014-01-08 10:39:03 -0500 )edit