Ask Your Question

jh's profile - activity

2014-09-26 00:41:20 -0500 received badge  Taxonomist
2014-09-04 09:02:23 -0500 received badge  Good Question (source)
2014-05-21 06:36:50 -0500 received badge  Popular Question (source)
2014-05-21 06:36:50 -0500 received badge  Famous Question (source)
2014-05-21 06:36:50 -0500 received badge  Notable Question (source)
2014-01-08 10:39:03 -0500 commented question Starting MAAS RC service

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

2014-01-08 10:21:12 -0500 asked a question Starting MAAS RC service

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)
2013-12-29 12:15:13 -0500 received badge  Famous Question (source)
2013-12-16 09:37:49 -0500 received badge  Scholar (source)
2013-12-16 09:37:39 -0500 commented answer NeutronClientException when booting instances

Thanks, that link helped to resolve the issue. I added [securitygroup] firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver to /etc/neutron/plugins/openvswitch/ovs_quantum_plugin.ini on the nova-cloud-controller/0 node. That fixed the issue.

2013-12-16 09:33:41 -0500 received badge  Notable Question (source)
2013-12-13 16:34:02 -0500 received badge  Nice Question (source)
2013-12-13 15:03:59 -0500 received badge  Popular Question (source)
2013-12-09 20:28:27 -0500 received badge  Student (source)
2013-12-09 15:46:00 -0500 asked a question NeutronClientException when booting instances

I get errors when trying to create/boot instances. The instance goes into an ERROR state. If I log in to the hypervisor where the instance is trying to be created and look at the /var/log/nova/nova-compute.log log file, I see the trace that is attached below.

The main issue seems to come from a problem with Neutron, see NeutronClientException: 404 Not Found in the trace below.

I'm trying to figure out the best steps to debug this further. Please answer if you have any idea. More information can also be provided.

2013-12-09 15:22:56.745 31508 AUDIT nova.compute.manager [req-60c35c7a-dc7a-43ce-86a2-4948d8aaf304 ea08504867304a46a54adff2a5687128 1a470b4681b74b0182601efc257175ac] [instance: 4b585137-aa20-43f4-802d-d3a12013-12-09 15:23:00.787 31508 TRACE nova.compute.manager [instance: 4b585137-aa20-43f4-802d-d3a1f8ca2dba]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2063, in spawn
2013-12-09 15:23:00.787 31508 TRACE nova.compute.manager [instance: 4b585137-aa20-43f4-802d-d3a1f8ca2dba]     admin_pass=admin_password)
2013-12-09 15:23:00.787 31508 TRACE nova.compute.manager [instance: 4b585137-aa20-43f4-802d-d3a1f8ca2dba]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2441, in _create_image
2013-12-09 15:23:00.787 31508 TRACE nova.compute.manager [instance: 4b585137-aa20-43f4-802d-d3a1f8ca2dba]     net = netutils.get_injected_network_template(network_info)
2013-12-09 15:23:00.787 31508 TRACE nova.compute.manager [instance: 4b585137-aa20-43f4-802d-d3a1f8ca2dba]   File "/usr/lib/python2.7/dist-packages/nova/virt/netutils.py", line 74, in get_injected_network_template
2013-12-09 15:23:00.787 31508 TRACE nova.compute.manager [instance: 4b585137-aa20-43f4-802d-d3a1f8ca2dba]     if not (network_info and template):
2013-12-09 15:23:00.787 31508 TRACE nova.compute.manager [instance: 4b585137-aa20-43f4-802d-d3a1f8ca2dba]   File "/usr/lib/python2.7/dist-packages/nova/network/model.py", line 379, in __len__
2013-12-09 15:23:00.787 31508 TRACE nova.compute.manager [instance: 4b585137-aa20-43f4-802d-d3a1f8ca2dba]     return self._sync_wrapper(fn, *args, **kwargs)
2013-12-09 15:23:00.787 31508 TRACE nova.compute.manager [instance: 4b585137-aa20-43f4-802d-d3a1f8ca2dba]   File "/usr/lib/python2.7/dist-packages/nova/network/model.py", line 366, in _sync_wrapper
2013-12-09 15:23:00.787 31508 TRACE nova.compute.manager [instance: 4b585137-aa20-43f4-802d-d3a1f8ca2dba]     self.wait()
2013-12-09 15:23:00.787 31508 TRACE nova.compute.manager [instance: 4b585137-aa20-43f4-802d-d3a1f8ca2dba]   File "/usr/lib/python2.7/dist-packages/nova/network/model.py", line 398, in wait
2013-12-09 15:23:00.787 31508 TRACE nova.compute.manager [instance: 4b585137-aa20-43f4-802d-d3a1f8ca2dba]     self[:] = self._gt.wait()
2013-12-09 15:23:00.787 31508 TRACE nova.compute.manager [instance: 4b585137-aa20-43f4-802d-d3a1f8ca2dba]   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in wait
2013-12-09 15:23:00.787 31508 TRACE nova.compute.manager [instance: 4b585137-aa20-43f4-802d-d3a1f8ca2dba]     return self._exit_event.wait()
2013-12-09 15:23:00.787 31508 TRACE nova.compute.manager [instance: 4b585137-aa20-43f4-802d-d3a1f8ca2dba]   File "/usr/lib/python2.7/dist-packages/eventlet/event.py", line 120, in wait
2013-12-09 15:23:00.787 31508 TRACE nova.compute.manager [instance: 4b585137-aa20-43f4-802d-d3a1f8ca2dba]     current.throw(*self._exc)
2013-12-09 15:23:00.787 31508 TRACE nova.compute.manager [instance: 4b585137-aa20-43f4-802d-d3a1f8ca2dba]   File "/usr/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main
2013-12-09 15:23:00.787 31508 TRACE nova.compute.manager [instance: 4b585137-aa20-43f4-802d-d3a1f8ca2dba]     result = function(*args, **kwargs)
2013-12-09 15:23:00.787 31508 TRACE nova.compute.manager [instance: 4b585137-aa20-43f4-802d-d3a1f8ca2dba]   File "/usr ...
(more)